/* ========================================
   IKTF ADMIN - AI FACE RECOGNITION DASHBOARD
   Based on THEME folder design
   ======================================== */

:root {
    /* AI Recognition Blue Color Palette */
    --primary-blue: #0d47a1;
    --primary-blue-light: #1565c0;
    --primary-blue-lighter: #1976d2;
    --primary-blue-dark: #0a3d8a;
    --primary-blue-darker: #083580;
    --accent-blue: #2196f3;
    --accent-blue-light: #42a5f5;
    --accent-blue-dark: #1976d2;
    
    /* Header Enhancement Colors */
    --header-border: rgba(13, 71, 161, 0.35);
    --header-glow: rgba(13, 71, 161, 0.15);
    
    /* Neutral Colors */
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #808080;
    --text-accent: #00e676;
    
    /* Status Colors */
    --status-success: #00e676;
    --status-warning: #ffab00;
    --status-error: #ff1744;
    --status-info: #00b0ff;
    
    /* AI Recognition Effects - Blue Theme */
    --glow-primary: 0 0 20px rgba(13, 71, 161, 0.3);
    --glow-accent: 0 0 20px rgba(33, 150, 243, 0.3);
    --glow-light: 0 0 20px rgba(25, 118, 210, 0.3);
    --glow-success: 0 0 20px rgba(0, 230, 118, 0.3);
    
    /* Typography - Adobe Davis Sans */
    --font-primary: "davis-sans", -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: "davis-sans", -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --nav-height: 80px;
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ========================================
   AI RECOGNITION BACKGROUND EFFECTS
   ======================================== */

.ai-recognition-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(circle at 20% 80%, rgba(13, 71, 161, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(33, 150, 243, 0.3) 0%, transparent 50%),
        linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.circuit-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(90deg, rgba(13, 71, 161, 0.3) 1px, transparent 1px),
        linear-gradient(rgba(13, 71, 161, 0.3) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: circuitFlow 20s linear infinite;
}

.mechanical-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(45deg, rgba(33, 150, 243, 0.2) 1px, transparent 1px),
        linear-gradient(-45deg, rgba(33, 150, 243, 0.2) 1px, transparent 1px);
    background-size: 100px 100px;
    animation: mechanicalPulse 15s ease-in-out infinite;
}

.particle-system {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(2px 2px at 20px 30px, rgba(0, 230, 118, 0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(0, 176, 255, 0.3), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(33, 150, 243, 0.3), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(13, 71, 161, 0.3), transparent);
    background-repeat: repeat;
    background-size: 150px 100px;
    animation: particleFloat 25s linear infinite;
}

@keyframes circuitFlow {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(50px) translateY(50px); }
}

@keyframes mechanicalPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

@keyframes particleFloat {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-100px) rotate(360deg); }
}

/* ========================================
   MAIN NAVIGATION
   ======================================== */

.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(8, 8, 8, 0.96);
    backdrop-filter: blur(30px) saturate(1.2);
    border-bottom: 2px solid var(--header-border);
    z-index: 1000;
    transition: var(--transition);
    box-shadow: 
        0 4px 30px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: 100%;
    padding: 0 3rem;
    position: relative;
}

.nav-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        var(--header-glow) 0%, 
        transparent 15%, 
        transparent 85%, 
        rgba(33, 150, 243, 0.08) 100%);
    pointer-events: none;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    position: relative;
    z-index: 2;
}

.nav-logo {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 0 15px rgba(13, 71, 161, 0.6)) brightness(1.05);
    transition: var(--transition);
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.brand-text h1 {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: 3px;
    margin: 0;
    text-shadow: 0 0 12px rgba(13, 71, 161, 0.4);
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-blue-light) 80%, var(--accent-blue-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-text span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.9;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 2;
    padding: 0 2rem;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.875rem 1.75rem;
    text-decoration: none;
    color: var(--text-secondary);
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    min-width: 80px;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
    border-radius: var(--border-radius);
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue));
    transform: translateX(-50%);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-item:hover::before,
.nav-item.active::before {
    opacity: 0.15;
}

.nav-item:hover::after,
.nav-item.active::after {
    width: 60%;
}

.nav-item:hover,
.nav-item.active {
    color: var(--text-primary);
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(13, 71, 161, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.nav-icon {
    width: 26px;
    height: 26px;
    margin-bottom: 0.5rem;
    transition: var(--transition);
    position: relative;
}

.nav-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
    transition: var(--transition);
    filter: drop-shadow(0 0 4px rgba(13, 71, 161, 0.3));
}

.nav-item:hover .nav-icon svg,
.nav-item.active .nav-icon svg {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 0 12px currentColor);
}

.nav-item span {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: var(--transition);
}

.nav-item:hover span,
.nav-item.active span {
    text-shadow: 0 0 8px currentColor;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    position: relative;
    z-index: 2;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.25rem;
    background: rgba(26, 26, 26, 0.85);
    border-radius: var(--border-radius);
    border: 1px solid rgba(13, 71, 161, 0.4);
    backdrop-filter: blur(15px) saturate(1.1);
    transition: var(--transition);
}

.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    color: white;
    box-shadow: 0 0 15px rgba(13, 71, 161, 0.5);
    transition: var(--transition);
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.user-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.user-role {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 23, 68, 0.08);
    border: 1px solid rgba(255, 23, 68, 0.35);
    border-radius: var(--border-radius);
    color: var(--status-error);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.logout-btn:hover {
    background: rgba(255, 23, 68, 0.2);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 23, 68, 0.4);
    border-color: rgba(255, 23, 68, 0.6);
}

.logout-btn svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    transition: var(--transition);
}

.logout-btn:hover svg {
    transform: rotate(15deg) scale(1.1);
}

/* ========================================
   MAIN CONTENT
   ======================================== */

.main-content {
    margin-top: var(--nav-height);
    min-height: calc(100vh - var(--nav-height));
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-container {
    max-width: 800px;
    width: 100%;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid rgba(13, 71, 161, 0.3);
    border-radius: 20px;
    padding: 4rem;
    backdrop-filter: blur(20px) saturate(1.2);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

.dashboard-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue));
    border-radius: 20px 20px 0 0;
}

.dashboard-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 900;
    box-shadow: var(--glow-primary);
}

.dashboard-title {
    font-size: 2.5rem;
    font-weight: 700;
    font-style: normal;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(13, 71, 161, 0.3);
}

.dashboard-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-weight: 400;
    font-style: normal;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid var(--status-success);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 3rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--status-success);
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px var(--status-success);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.welcome-message {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.system-info {
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(13, 71, 161, 0.1);
}

.system-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-family: var(--font-mono);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1200px) {
    .nav-container {
        padding: 0 2rem;
    }
    
    .nav-menu {
        gap: 0.5rem;
        padding: 0 1rem;
    }
    
    .nav-item {
        padding: 0.75rem 1.25rem;
        min-width: 70px;
    }
    
    .nav-item span {
        display: none;
    }
    
    .brand-text h1 {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .brand-text h1 {
        font-size: 1.25rem;
    }
    
    .brand-text span {
        display: none;
    }
    
    .nav-menu {
        gap: 0.25rem;
        padding: 0 0.5rem;
    }
    
    .nav-item {
        padding: 0.5rem 0.75rem;
        min-width: 60px;
    }
    
    .nav-icon {
        width: 22px;
        height: 22px;
    }
    
    .user-details {
        display: none;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .dashboard-container {
        padding: 2rem;
    }
    
    .dashboard-title {
        font-size: 2rem;
    }
}
