/* =============================================
   DESIGN SYSTEM & GLOBAL STYLES
   ============================================= */
:root {
    /* Primary Colors */
    --primary-bg: #0f1118;
    --secondary-bg: #161a24;
    --accent-glow: #6366f1;
    --accent-glow-hover: #4f46e5;
    --accent-success: #10b981;
    --accent-warning: #f59e0b;
    --accent-danger: #ef4444;
    --accent-info: #3b82f6;

    /* Text Colors */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Spacing & Borders */
    --border-color: rgba(226, 232, 240, 0.1);
    --glass-bg: rgba(22, 26, 36, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;

    /* Transitions */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes slideInDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideInUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* =============================================
   HEADER STYLES
   ============================================= */
.main-header {
    padding: 2.5rem 2rem 1.5rem;
    background: linear-gradient(180deg, #0f1118 0%, rgba(15, 17, 24, 0) 100%);
    z-index: 100;
    animation: slideInDown 0.6s ease-out;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-glow) 0%, #a855f7 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    box-shadow: var(--shadow-glow);
    position: relative;
}

.logo-icon::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--accent-glow), #a855f7);
    border-radius: inherit;
    z-index: -1;
    filter: blur(8px);
    opacity: 0.5;
}

.logo-text h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo-text h1 span {
    background: linear-gradient(135deg, #ffffff, #a5b4fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px rgba(165, 180, 252, 0.3);
}

.logo-text p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 99px;
    color: var(--accent-success);
    font-size: 0.85rem;
    font-weight: 600;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* =============================================
   NAVIGATION BAR
   ============================================= */
.main-nav {
    margin: 0 2rem;
    padding: 8px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    max-width: fit-content;
    margin: 0 auto 1.5rem;
    z-index: 100;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    animation: fadeIn 1s ease-out;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 24px;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-item:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
    background: var(--accent-glow);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.nav-item i {
    font-size: 1.1rem;
}

/* =============================================
   DROPDOWN MENUS
   ============================================= */
.nav-dropdown {
    position: relative;
    list-style: none;
}

.dropdown-icon {
    font-size: 0.75rem !important;
    margin-left: 8px;
    opacity: 0.6;
    transition: transform var(--transition);
}

.nav-dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 8px;
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    min-width: 220px;
    padding: 8px;
    margin-top: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 15px 45px rgba(0,0,0,0.5);
    z-index: 1000;
}

.dropdown-content::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 24px;
    border: 8px solid transparent;
    border-bottom-color: var(--glass-border);
}

.nav-dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.dropdown-content a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    padding-left: 24px;
}

.dropdown-content a i {
    color: var(--accent-glow);
    font-size: 1rem;
}

/* =============================================
   CONTENT AREA
   ============================================= */
.content-area {
    flex: 1;
    position: relative;
    padding: 0 2rem 2rem;
    animation: slideInUp 0.8s ease-out;
}

.iframe-wrapper {
    height: 100%;
    border-radius: var(--radius-lg);
    background: var(--secondary-bg);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
}

.main-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* =============================================
   FOOTER
   ============================================= */
.main-footer {
    padding: 1.5rem 2rem;
    background: var(--primary-bg);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-glow);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .main-nav {
        width: calc(100% - 4rem);
        max-width: none;
        overflow-x: auto;
    }
}

@media (max-width: 768px) {
    .logo-area h1 { font-size: 1.4rem; }
    .logo-area p { display: none; }
    .status-indicator { display: none; }
    .nav-item { padding: 10px 16px; font-size: 0.85rem; }
}
