@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary-blue: #0066FF;
    --primary-light: #3D8BFF;
    --primary-dark: #0047B3;
    --accent-cyan: #00D4FF;
    --accent-purple: #7C3AED;
    --accent-green: #10B981;
    --accent-orange: #FF6B35;
    --accent-pink: #EC4899;
    --accent-yellow: #FBBF24;
    --bg-main: #F8FAFC;
    --bg-card: #FFFFFF;
    --bg-hover: #F1F5F9;
    --bg-dark: #0F172A;
    --border-color: #E2E8F0;
    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --text-light: #94A3B8;
    --shadow-xs: 0 1px 2px rgba(0, 102, 255, 0.05);
    --shadow-sm: 0 2px 8px rgba(0, 102, 255, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 102, 255, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 102, 255, 0.16);
    --shadow-xl: 0 16px 48px rgba(0, 102, 255, 0.2);
    --shadow-2xl: 0 24px 64px rgba(0, 102, 255, 0.25);
    --radius-xs: 6px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    text-decoration: none !important;
}

button, .btn, a.btn {
    text-decoration: none !important;
}

.system-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #F8FAFC 0%, #EFF6FF 100%);
}

/* ================================================
   HYPER ISLAND NAVIGATION
   ================================================ */

.hyper-island-nav {
    position: sticky;
    top: 5px;
    z-index: 9999;
    margin: 0 auto;
    width: calc(100% - 4rem);
    max-width: 1600px;
    padding: 0;
    animation: slideDownNav 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideDownNav {
    0% {
        opacity: 0;
        transform: translateY(-40px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.nav-island-container {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(0, 102, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 102, 255, 0.12),
                0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    padding: 0.75rem 1.5rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2rem;
    transition: var(--transition);
}

.hyper-island-nav.scrolled .nav-island-container {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 12px 48px rgba(0, 102, 255, 0.18),
                0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

/* Brand Section */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.nav-brand:hover {
    transform: translateY(-1px);
}

.nav-logo-wrapper {
    position: relative;
}

.nav-logo {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-cyan) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 900;
    font-size: 1.4rem;
    box-shadow: 0 8px 16px rgba(0, 102, 255, 0.35),
                0 0 0 2px rgba(255, 255, 255, 0.5);
    transition: var(--transition);
    letter-spacing: -1px;
}

.nav-logo:hover {
    transform: scale(1.05) rotate(-2deg);
    box-shadow: 0 12px 24px rgba(0, 102, 255, 0.45);
}

.nav-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.nav-info h3 {
    font-size: 1.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.nav-info p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 500;
}

/* Menu Section */
.nav-menu-hyper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex: 1;
}

.nav-item-hyper {
    position: relative;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    overflow: hidden;
    white-space: nowrap;
}

.nav-item-hyper::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 102, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.nav-item-hyper:hover::before {
    left: 100%;
}

.nav-item-hyper:hover {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.08), rgba(0, 212, 255, 0.08));
    color: var(--primary-blue);
    transform: translateY(-2px);
}

.nav-item-hyper.active {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-cyan));
    color: white;
    box-shadow: 0 4px 16px rgba(0, 102, 255, 0.3);
}

.nav-item-hyper.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: white;
    border-radius: 4px 4px 0 0;
}

.nav-item-hyper i {
    font-size: 1.1rem;
}

/* Actions Section */
.nav-actions-hyper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-profile-hyper {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.05), rgba(0, 212, 255, 0.05));
    border: 1px solid rgba(0, 102, 255, 0.1);
    cursor: pointer;
    transition: var(--transition);
}

.nav-profile-hyper:hover {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-cyan));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.3);
}

.profile-avatar-hyper {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
    border: 2px solid white;
}

.profile-info-hyper {
    display: flex;
    flex-direction: column;
    min-width: 120px;
}

.profile-name-hyper {
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
}

.profile-role-hyper {
    font-size: 0.75rem;
    opacity: 0.8;
}

.nav-profile-hyper:hover .profile-role-hyper {
    opacity: 1;
}

.btn-logout-hyper {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.btn-logout-hyper:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.4);
}

/* ================================================
   MAIN CONTENT AREA
   ================================================ */

.main-content-hyper {
    flex: 1;
    padding: 2.5rem;
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
}

.content-header-hyper {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.8));
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 102, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.content-header-hyper::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.page-title-hyper {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.75rem;
    letter-spacing: -1px;
}

.page-subtitle-hyper {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 500;
}

/* ================================================
   STAT CARDS - HYPER MODERN
   ================================================ */

.stats-grid-hyper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card-hyper {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.stat-card-hyper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-blue), var(--accent-cyan));
    transform: scaleY(0);
    transition: transform 0.4s ease;
    transform-origin: bottom;
}

.stat-card-hyper:hover::before {
    transform: scaleY(1);
}

.stat-card-hyper:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.stat-icon-hyper {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.stat-card-hyper:hover .stat-icon-hyper {
    transform: scale(1.1) rotate(5deg);
}

.stat-icon-hyper.blue { 
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(0, 212, 255, 0.1));
    color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.2);
}

.stat-icon-hyper.green { 
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.1));
    color: var(--accent-green);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.stat-icon-hyper.orange { 
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(251, 191, 36, 0.1));
    color: var(--accent-orange);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2);
}

.stat-icon-hyper.purple { 
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(236, 72, 153, 0.1));
    color: var(--accent-purple);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
}

.stat-number-hyper {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.stat-label-hyper {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-change-hyper {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    margin-top: 0.75rem;
}

.stat-change-hyper.up { 
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
}

.stat-change-hyper.down { 
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
}

/* ================================================
   CARD MODERN - HYPER STYLED
   ================================================ */

.card-hyper {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
    overflow: hidden;
    transition: var(--transition);
}

.card-hyper:hover {
    box-shadow: var(--shadow-lg);
}

.card-header-hyper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2.5rem;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.03), rgba(0, 212, 255, 0.03));
    border-bottom: 2px solid var(--border-color);
}

.card-title-hyper {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 1rem;
    letter-spacing: -0.5px;
}

.card-title-hyper i {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-cyan));
    color: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

.card-body-hyper {
    padding: 2.5rem;
}

/* ================================================
   BUTTONS - HYPER MODERN
   ================================================ */

.btn-hyper {
    padding: 0.85rem 2rem;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    border: none;
    text-decoration: none !important;
    box-shadow: var(--shadow-sm);
}

.btn-hyper:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary-hyper {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-cyan));
    color: white;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

.btn-primary-hyper:hover {
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.4);
}

.btn-secondary-hyper {
    background: var(--bg-hover);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary-hyper:hover {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.btn-success-hyper {
    background: linear-gradient(135deg, var(--accent-green), #059669);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-danger-hyper {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.btn-warning-hyper {
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-yellow));
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* ================================================
   TABLE - HYPER MODERN
   ================================================ */

.table-container-hyper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
}

.table-hyper {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table-hyper thead th {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.05), rgba(0, 212, 255, 0.05));
    padding: 1.2rem 1.5rem;
    text-align: left;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}

.table-hyper tbody tr {
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.table-hyper tbody tr:hover {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.02), rgba(0, 212, 255, 0.02));
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0, 102, 255, 0.08);
}

.table-hyper tbody td {
    padding: 1.2rem 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ================================================
   FORM - HYPER MODERN
   ================================================ */

.form-group-hyper {
    margin-bottom: 1.8rem;
}

.form-label-hyper {
    display: block;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.7rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.form-control-hyper {
    width: 100%;
    padding: 1rem 1.3rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-main);
    font-family: inherit;
}

.form-control-hyper:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
    transform: translateY(-1px);
}

textarea.form-control-hyper {
    resize: vertical;
    min-height: 140px;
}

/* ================================================
   BADGE - HYPER MODERN
   ================================================ */

.badge-hyper {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary-hyper { 
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(0, 212, 255, 0.1));
    color: var(--primary-blue);
}

.badge-success-hyper { 
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.1));
    color: var(--accent-green);
}

.badge-warning-hyper { 
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(251, 191, 36, 0.1));
    color: var(--accent-orange);
}

.badge-danger-hyper { 
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.1));
    color: #EF4444;
}

/* ================================================
   ALERT - HYPER MODERN
   ================================================ */

.alert-hyper {
    padding: 1.2rem 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    border-left: 4px solid;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideIn 0.4s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.alert-success-hyper {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.08));
    border-color: var(--accent-green);
    color: var(--accent-green);
}

.alert-danger-hyper {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.08));
    border-color: #EF4444;
    color: #EF4444;
}

.alert-warning-hyper {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(251, 191, 36, 0.08));
    border-color: var(--accent-orange);
    color: var(--accent-orange);
}

.alert-info-hyper {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(0, 212, 255, 0.08));
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */

@media (max-width: 1440px) {
    .hyper-island-nav {
        width: calc(100% - 3rem);
    }
    
    .nav-menu-hyper {
        gap: 0.3rem;
    }
    
    .nav-item-hyper {
        padding: 0.65rem 1.2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 1200px) {
    .nav-item-hyper span {
        display: none;
    }
    
    .nav-item-hyper {
        padding: 0.75rem;
        justify-content: center;
    }
    
    .profile-info-hyper {
        display: none;
    }
}

@media (max-width: 768px) {
    .hyper-island-nav {
        width: calc(100% - 1.5rem);
        top: 8px;
    }
    
    .nav-island-container {
        grid-template-columns: auto 1fr;
        gap: 1rem;
        padding: 0.6rem 1rem;
    }
    
    .nav-menu-hyper {
        display: none;
    }
    
    .nav-actions-hyper {
        grid-column: 1 / -1;
        justify-content: space-between;
        width: 100%;
        padding-top: 0.5rem;
        border-top: 1px solid var(--border-color);
    }
    
    .main-content-hyper {
        padding: 1.5rem;
    }
    
    .page-title-hyper {
        font-size: 1.8rem;
    }
    
    .stats-grid-hyper {
        grid-template-columns: 1fr;
    }
}

body > .user-fixed-hyper {
    position: fixed;
    left: 50%;
    bottom: 0px;
    transform: translateX(-50%);

    z-index: 99999;

    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);

    padding: 0.6rem 0.8rem;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 102, 255, 0.12);

    display: flex;
    align-items: center;
    gap: 5rem;

    width: fit-content;
}