/* ========================================
   BEE PANEL - STRICT YELLOW & BLACK THEME
   With Advanced Animations
   ======================================== */

/* CSS Variables */
:root {
    /* Primary Colors - Yellow & Black */
    --accent-color: #FFD700;
    --accent-hover: #FFC000;
    --accent-dark: #E6C200;
    --accent-light: #FFE44D;
    --accent-glow: rgba(255, 215, 0, 0.3);
    --accent-pulse: rgba(255, 215, 0, 0.15);
    
    /* Dark Theme */
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-dark: #0d0d0d;
    --bg-card: #151515;
    --bg-card-hover: #1a1a1a;
    --bg-input: #1a1a1a;
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --text-muted: #888888;
    --text-dark: #0a0a0a;
    
    /* Border */
    --border-color: #2a2a2a;
    --border-light: #333333;
    
    /* Status Colors */
    --success: #22c55e;
    --warning: #eab308;
    --danger: #ef4444;
    --info: #3b82f6;
    
    /* Sizes */
    --sidebar-width: 260px;
    --header-height: 60px;
    --radius: 8px;
    --radius-lg: 12px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-accent: 0 0 20px var(--accent-glow);
    
    /* Animation timings */
    --transition-fast: 0.15s;
    --transition-normal: 0.3s;
    --transition-slow: 0.5s;
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ========================================
   DISABLE INTRO ANIMATIONS ON NAVIGATION
   ======================================== */

/* Skip intro animations for in-session navigation */
body.no-intro-animations .sidebar,
body.no-intro-animations .menu-item,
body.no-intro-animations .menu-divider,
body.no-intro-animations .sidebar-footer,
body.no-intro-animations .main-content,
body.no-intro-animations .page-header,
body.no-intro-animations .header-actions,
body.no-intro-animations .content-card,
body.no-intro-animations .stat-card,
body.no-intro-animations .server-card,
body.no-intro-animations .server-nav,
body.no-intro-animations .console-container,
body.no-intro-animations .form-group,
body.no-intro-animations .form-divider,
body.no-intro-animations .form-actions,
body.no-intro-animations .data-table tbody tr,
body.no-intro-animations .toggle-item,
body.no-intro-animations .checkbox-card,
body.no-intro-animations .list-item,
body.no-intro-animations .egg-card,
body.no-intro-animations .file-item,
body.no-intro-animations .breadcrumb-item,
body.no-intro-animations .auth-card,
body.no-intro-animations .auth-header h1,
body.no-intro-animations .auth-header p,
body.no-intro-animations .auth-form .form-group,
body.no-intro-animations .auth-form .btn,
body.no-intro-animations .auth-footer,
body.no-intro-animations .auth-features,
body.no-intro-animations .auth-features li {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
}

/* Keep hover animations working */
body.no-intro-animations .server-card:hover,
body.no-intro-animations .stat-card:hover,
body.no-intro-animations .content-card:hover,
body.no-intro-animations .btn:hover,
body.no-intro-animations .menu-item a:hover {
    transform: translateY(-5px);
}

body.no-intro-animations .btn:hover {
    transform: translateY(-2px);
}

/* ========================================
   GLOBAL ANIMATIONS KEYFRAMES
   ======================================== */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes fadeInDown {
    from { 
        opacity: 0; 
        transform: translateY(-20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes fadeInLeft {
    from { 
        opacity: 0; 
        transform: translateX(-20px); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

@keyframes fadeInRight {
    from { 
        opacity: 0; 
        transform: translateX(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

@keyframes scaleIn {
    from { 
        opacity: 0; 
        transform: scale(0.9); 
    }
    to { 
        opacity: 1; 
        transform: scale(1); 
    }
}

@keyframes scaleInBounce {
    0% { 
        opacity: 0; 
        transform: scale(0.5); 
    }
    70% { 
        transform: scale(1.05); 
    }
    100% { 
        opacity: 1; 
        transform: scale(1); 
    }
}

@keyframes slideInLeft {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes pulseScale {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px var(--accent-glow); }
    50% { box-shadow: 0 0 20px var(--accent-glow), 0 0 40px var(--accent-pulse); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 0.5;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes beeWing {
    0%, 100% { transform: rotate(-5deg) scaleY(1); }
    50% { transform: rotate(5deg) scaleY(0.9); }
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes borderGlow {
    0%, 100% { border-color: var(--border-color); }
    50% { border-color: var(--accent-color); }
}

@keyframes progressStripe {
    0% { background-position: 0 0; }
    100% { background-position: 40px 0; }
}

@keyframes countUp {
    from { 
        opacity: 0;
        transform: translateY(10px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes iconPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Page load animation */
body.page-loading {
    opacity: 0;
}

body.page-loaded {
    opacity: 1;
    animation: fadeIn 0.4s var(--ease-smooth);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

a:hover {
    color: var(--accent-hover);
}

/* Animated underline for links */
.animated-link {
    position: relative;
}

.animated-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width var(--transition-normal) var(--ease-smooth);
}

.animated-link:hover::after {
    width: 100%;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 4px;
    transition: background var(--transition-fast);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* ========================================
   SIDEBAR (Animated)
   ======================================== */

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    animation: slideInLeft 0.5s var(--ease-smooth);
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--accent-color);
    font-size: 1.5rem;
    font-weight: 700;
    transition: transform var(--transition-normal);
}

.logo:hover {
    transform: scale(1.02);
}

.logo i {
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
}

.sidebar-menu {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
    list-style: none;
}

.menu-item {
    animation: fadeInLeft 0.4s var(--ease-smooth) backwards;
}

.menu-item:nth-child(1) { animation-delay: 0.05s; }
.menu-item:nth-child(2) { animation-delay: 0.1s; }
.menu-item:nth-child(3) { animation-delay: 0.15s; }
.menu-item:nth-child(4) { animation-delay: 0.2s; }
.menu-item:nth-child(5) { animation-delay: 0.25s; }
.menu-item:nth-child(6) { animation-delay: 0.3s; }
.menu-item:nth-child(7) { animation-delay: 0.35s; }
.menu-item:nth-child(8) { animation-delay: 0.4s; }
.menu-item:nth-child(9) { animation-delay: 0.45s; }
.menu-item:nth-child(10) { animation-delay: 0.5s; }

.menu-item a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    color: var(--text-secondary);
    transition: all var(--transition-normal) var(--ease-smooth);
    border-left: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

/* Ripple effect on menu items */
.menu-item a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.menu-item a:hover::before {
    width: 300px;
    height: 300px;
}

.menu-item a:hover {
    background: var(--bg-card);
    color: var(--accent-color);
    padding-left: 2rem;
}

.menu-item.active a {
    background: rgba(255, 215, 0, 0.1);
    color: var(--accent-color);
    border-left-color: var(--accent-color);
}

.menu-item i {
    width: 20px;
    text-align: center;
    transition: transform var(--transition-normal) var(--ease-bounce);
}

.menu-item a:hover i {
    transform: scale(1.2);
}

.menu-divider {
    padding: 1rem 1.5rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    animation: fadeIn 0.5s var(--ease-smooth) backwards;
    animation-delay: 0.3s;
}

.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: fadeInUp 0.5s var(--ease-smooth) backwards;
    animation-delay: 0.4s;
}

.user-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: var(--accent-color);
    color: var(--text-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-normal) var(--ease-bounce), box-shadow var(--transition-normal);
}

.user-avatar:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 15px var(--accent-glow);
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-details .username {
    font-weight: 600;
    font-size: 0.9rem;
}

.user-details .role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.logout-btn {
    padding: 0.5rem;
    color: var(--text-muted);
    transition: all var(--transition-normal) var(--ease-smooth);
}

.logout-btn:hover {
    color: var(--danger);
    transform: translateX(3px);
}

/* ========================================
   MAIN CONTENT (Animated)
   ======================================== */

.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    padding: 2rem;
    background: var(--bg-primary);
    animation: fadeIn 0.5s var(--ease-smooth);
}

.main-content.full-width {
    margin-left: 0;
}

/* Page Header */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
    animation: fadeInDown 0.5s var(--ease-smooth);
}

.page-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.page-header h1 i {
    color: var(--accent-color);
    transition: transform var(--transition-normal) var(--ease-bounce);
}

.page-header:hover h1 i {
    transform: rotate(-10deg) scale(1.1);
}

.page-header p {
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.back-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: var(--radius);
    color: var(--text-secondary);
    transition: all var(--transition-normal) var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.back-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    border-radius: var(--radius);
    transform: translateX(-100%);
    transition: transform var(--transition-normal) var(--ease-smooth);
    z-index: 0;
}

.back-link i {
    position: relative;
    z-index: 1;
    transition: transform var(--transition-normal);
}

.back-link:hover {
    color: var(--text-dark);
}

.back-link:hover::after {
    transform: translateX(0);
}

.back-link:hover i {
    transform: translateX(-3px);
}

.header-info h1 {
    margin-bottom: 0;
}

.header-actions {
    display: flex;
    gap: 0.5rem;
    animation: fadeInRight 0.5s var(--ease-smooth);
}

/* ========================================
   BUTTONS (Animated)
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition-normal) var(--ease-smooth);
    background: var(--bg-card);
    color: var(--text-primary);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

/* Button ripple effect */
.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

.btn:active::after {
    animation: ripple 0.5s ease-out;
}

.btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn i {
    transition: transform var(--transition-fast) var(--ease-bounce);
}

.btn:hover i {
    transform: scale(1.15);
}

.btn-primary {
    background: var(--accent-color);
    color: var(--text-dark);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.btn-primary:hover {
    background: var(--accent-hover);
    color: var(--text-dark);
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.35);
    transform: translateY(-3px);
}

.btn-primary:active {
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.2);
}

.btn-success {
    background: var(--success);
    color: white;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.2);
}

.btn-success:hover {
    background: #16a34a;
    box-shadow: 0 6px 25px rgba(34, 197, 94, 0.35);
}

.btn-warning {
    background: var(--warning);
    color: var(--text-dark);
    box-shadow: 0 4px 15px rgba(234, 179, 8, 0.2);
}

.btn-warning:hover {
    background: #ca8a04;
    box-shadow: 0 6px 25px rgba(234, 179, 8, 0.35);
}

.btn-danger {
    background: var(--danger);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
    background: #dc2626;
    box-shadow: 0 6px 25px rgba(239, 68, 68, 0.35);
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

.btn-group {
    display: flex;
    gap: 0.375rem;
}

.btn-group-vertical {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Loading button state */
.btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn.loading i {
    animation: rotate 1s linear infinite;
}

/* ========================================
   CARDS (Animated)
   ======================================== */

.content-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all var(--transition-normal) var(--ease-smooth);
    animation: fadeInUp 0.5s var(--ease-smooth) backwards;
}

.content-card:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow-md);
}

.content-card.full-width {
    grid-column: 1 / -1;
}

/* Staggered card animations */
.content-card:nth-child(1) { animation-delay: 0.1s; }
.content-card:nth-child(2) { animation-delay: 0.15s; }
.content-card:nth-child(3) { animation-delay: 0.2s; }
.content-card:nth-child(4) { animation-delay: 0.25s; }
.content-card:nth-child(5) { animation-delay: 0.3s; }
.content-card:nth-child(6) { animation-delay: 0.35s; }

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

.card-title i {
    color: var(--accent-color);
    transition: transform var(--transition-normal) var(--ease-bounce);
}

.content-card:hover .card-title i {
    transform: rotate(-5deg) scale(1.1);
}

.card-description {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.card-link {
    display: block;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid var(--border-color);
    color: var(--accent-color);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.card-link:hover {
    color: var(--accent-hover);
    padding-left: 0.5rem;
}

.card-link i {
    transition: transform var(--transition-fast);
}

.card-link:hover i {
    transform: translateX(5px);
}

.card-actions {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* ========================================
   STATS GRID (Animated)
   ======================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all var(--transition-normal) var(--ease-smooth);
    animation: scaleIn 0.5s var(--ease-out-back) backwards;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 40%, rgba(255, 215, 0, 0.03) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.stat-card:hover::before {
    opacity: 1;
}

/* Staggered stat card animations */
.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.15s; }
.stat-card:nth-child(3) { animation-delay: 0.2s; }
.stat-card:nth-child(4) { animation-delay: 0.25s; }
.stat-card:nth-child(5) { animation-delay: 0.3s; }
.stat-card:nth-child(6) { animation-delay: 0.35s; }

.stat-card:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-accent);
    transform: translateY(-5px);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 1.5rem;
    transition: all var(--transition-normal) var(--ease-bounce);
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(-5deg);
    background: rgba(255, 215, 0, 0.15);
}

.stat-icon.running {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
}

.stat-card:hover .stat-icon.running {
    background: rgba(34, 197, 94, 0.15);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: transform var(--transition-fast);
}

.stat-card:hover .stat-value {
    transform: scale(1.05);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ========================================
   SERVERS GRID (Animated)
   ======================================== */

.servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
}

.server-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal) var(--ease-smooth);
    animation: fadeInUp 0.5s var(--ease-out-back) backwards;
    position: relative;
}

/* Prevent scrollbars on hover */
.server-card,
.server-card * {
    overflow: visible;
}

.server-card {
    overflow: hidden;
}

/* Staggered server card animations */
.server-card:nth-child(1) { animation-delay: 0.05s; }
.server-card:nth-child(2) { animation-delay: 0.1s; }
.server-card:nth-child(3) { animation-delay: 0.15s; }
.server-card:nth-child(4) { animation-delay: 0.2s; }
.server-card:nth-child(5) { animation-delay: 0.25s; }
.server-card:nth-child(6) { animation-delay: 0.3s; }
.server-card:nth-child(7) { animation-delay: 0.35s; }
.server-card:nth-child(8) { animation-delay: 0.4s; }

.server-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.03), transparent);
    transition: left 0.5s ease;
}

.server-card:hover::before {
    left: 100%;
}

.server-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), var(--shadow-accent);
}

.server-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border-color);
}

.server-type {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    background: var(--accent-color);
    color: var(--text-dark);
    border-radius: 4px;
    transition: all var(--transition-fast);
}

.server-card:hover .server-type {
    transform: scale(1.05);
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.server-body {
    padding: 1.25rem;
}

.server-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: color var(--transition-fast);
}

.server-card:hover .server-name {
    color: var(--accent-color);
}

.server-info {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.server-info .separator {
    margin: 0 0.5rem;
}

.server-address {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.server-address code {
    background: var(--bg-dark);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-family: monospace;
    transition: all var(--transition-fast);
}

.server-card:hover .server-address code {
    background: rgba(255, 215, 0, 0.1);
    color: var(--accent-color);
}

.server-resources {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--bg-dark);
    border-top: 1px solid var(--border-color);
}

.resource {
    display: flex;
    flex-direction: column;
}

.resource-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-muted);
}

.resource-value {
    font-size: 0.85rem;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.server-card:hover .resource-value {
    color: var(--accent-color);
}

.server-actions {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border-color);
}

/* ========================================
   STATUS BADGES (Animated)
   ======================================== */

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 999px;
    transition: all var(--transition-fast);
}

.status-badge:hover {
    transform: scale(1.05);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-running, .server-status.status-running {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
}

.status-running .status-dot {
    background: var(--success);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

.status-stopped, .server-status.status-stopped {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.status-stopped .status-dot {
    background: var(--danger);
    animation: none;
}

.status-starting, .status-stopping {
    background: rgba(234, 179, 8, 0.1);
    color: var(--warning);
}

.status-starting .status-dot, .status-stopping .status-dot {
    background: var(--warning);
}

.status-unhealthy {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.status-unhealthy .status-dot {
    background: #ef4444;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ========================================
   TABLES (Animated)
   ======================================== */

.table-container {
    overflow-x: auto;
    animation: fadeIn 0.4s var(--ease-smooth);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 0.875rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    background: var(--bg-dark);
    transition: color var(--transition-fast);
}

.data-table th:hover {
    color: var(--accent-color);
}

.data-table tbody tr {
    transition: all var(--transition-normal) var(--ease-smooth);
    animation: fadeInUp 0.4s var(--ease-smooth) backwards;
}

/* Staggered row animations */
.data-table tbody tr:nth-child(1) { animation-delay: 0.05s; }
.data-table tbody tr:nth-child(2) { animation-delay: 0.08s; }
.data-table tbody tr:nth-child(3) { animation-delay: 0.11s; }
.data-table tbody tr:nth-child(4) { animation-delay: 0.14s; }
.data-table tbody tr:nth-child(5) { animation-delay: 0.17s; }
.data-table tbody tr:nth-child(6) { animation-delay: 0.2s; }
.data-table tbody tr:nth-child(7) { animation-delay: 0.23s; }
.data-table tbody tr:nth-child(8) { animation-delay: 0.26s; }
.data-table tbody tr:nth-child(9) { animation-delay: 0.29s; }
.data-table tbody tr:nth-child(10) { animation-delay: 0.32s; }

.data-table tbody tr:hover {
    background: var(--bg-card-hover);
    transform: scale(1.005);
}

.data-table tbody tr:hover td:first-child {
    border-left: 3px solid var(--accent-color);
}

.data-table code {
    background: var(--bg-dark);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.85rem;
    transition: all var(--transition-fast);
}

.data-table tr:hover code {
    background: rgba(255, 215, 0, 0.1);
    color: var(--accent-color);
}

.actions-cell {
    white-space: nowrap;
}

.actions-cell .btn {
    opacity: 0.7;
    transition: all var(--transition-fast);
}

.data-table tr:hover .actions-cell .btn {
    opacity: 1;
}

/* ========================================
   FORMS (Animated)
   ======================================== */

.form {
    max-width: 100%;
}

.form-group {
    margin-bottom: 1.25rem;
    animation: fadeInUp 0.4s var(--ease-smooth) backwards;
}

/* Staggered form group animations */
.form-group:nth-child(1) { animation-delay: 0.05s; }
.form-group:nth-child(2) { animation-delay: 0.1s; }
.form-group:nth-child(3) { animation-delay: 0.15s; }
.form-group:nth-child(4) { animation-delay: 0.2s; }
.form-group:nth-child(5) { animation-delay: 0.25s; }
.form-group:nth-child(6) { animation-delay: 0.3s; }

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.form-group:focus-within label {
    color: var(--accent-color);
}

.form-group label i {
    margin-right: 0.375rem;
    color: var(--accent-color);
    transition: transform var(--transition-fast) var(--ease-bounce);
}

.form-group:focus-within label i {
    transform: scale(1.2) rotate(-5deg);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    transition: all var(--transition-normal) var(--ease-smooth);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: var(--border-light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px var(--accent-glow);
    transform: scale(1.01);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
    transition: opacity var(--transition-fast);
}

.form-group input:focus::placeholder,
.form-group textarea:focus::placeholder {
    opacity: 0.5;
}

.form-help {
    display: block;
    margin-top: 0.375rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.form-group:focus-within .form-help {
    color: var(--text-secondary);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.form-divider {
    margin: 1.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-color);
    animation: fadeInLeft 0.4s var(--ease-smooth);
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    animation: fadeInUp 0.5s var(--ease-smooth) 0.3s backwards;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

/* Range inputs (Animated) */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: var(--bg-dark);
    border-radius: 4px;
    border: none;
    padding: 0;
    transition: background var(--transition-fast);
}

input[type="range"]:hover {
    background: var(--border-color);
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-normal) var(--ease-bounce);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.5);
}

input[type="range"]:active::-webkit-slider-thumb {
    transform: scale(0.95);
}

.range-values {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.range-current {
    color: var(--accent-color);
    font-weight: 600;
    transition: transform var(--transition-fast);
}

.range-current.changed {
    animation: countUp 0.3s var(--ease-bounce);
}

/* Checkbox cards (Animated) */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.checkbox-card {
    display: block;
    padding: 1rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition-normal) var(--ease-smooth);
    animation: scaleIn 0.4s var(--ease-out-back) backwards;
}

.checkbox-card:nth-child(1) { animation-delay: 0.05s; }
.checkbox-card:nth-child(2) { animation-delay: 0.1s; }
.checkbox-card:nth-child(3) { animation-delay: 0.15s; }
.checkbox-card:nth-child(4) { animation-delay: 0.2s; }
.checkbox-card:nth-child(5) { animation-delay: 0.25s; }
.checkbox-card:nth-child(6) { animation-delay: 0.3s; }

.checkbox-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.checkbox-card input {
    display: none;
}

.checkbox-card input:checked + .checkbox-content {
    color: var(--accent-color);
}

.checkbox-card input:checked ~ .checkbox-card,
.checkbox-card:has(input:checked) {
    border-color: var(--accent-color);
    background: rgba(255, 215, 0, 0.05);
    box-shadow: var(--shadow-accent);
}

.checkbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

.checkbox-content i {
    font-size: 1.5rem;
    color: var(--accent-color);
    transition: transform var(--transition-normal) var(--ease-bounce);
}

.checkbox-card:hover .checkbox-content i {
    transform: scale(1.15) rotate(-5deg);
}

.checkbox-title {
    font-weight: 600;
    font-size: 0.9rem;
}

.checkbox-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Toggle switches (Animated) */
.toggle-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toggle-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-dark);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition-normal) var(--ease-smooth);
    animation: fadeInLeft 0.4s var(--ease-smooth) backwards;
}

.toggle-item:nth-child(1) { animation-delay: 0.05s; }
.toggle-item:nth-child(2) { animation-delay: 0.1s; }
.toggle-item:nth-child(3) { animation-delay: 0.15s; }
.toggle-item:nth-child(4) { animation-delay: 0.2s; }
.toggle-item:nth-child(5) { animation-delay: 0.25s; }

.toggle-item:hover {
    background: var(--bg-card-hover);
    transform: translateX(5px);
}

.toggle-item input {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 44px;
    height: 24px;
    background: var(--border-color);
    border-radius: 12px;
    transition: all var(--transition-normal) var(--ease-smooth);
    flex-shrink: 0;
}

.toggle-slider::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: var(--text-primary);
    border-radius: 50%;
    transition: all var(--transition-normal) var(--ease-bounce);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.toggle-item:hover .toggle-slider::after {
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.toggle-item input:checked + .toggle-slider {
    background: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-glow);
}

.toggle-item input:checked + .toggle-slider::after {
    transform: translateX(20px);
    background: var(--text-dark);
}

.toggle-label {
    display: flex;
    flex-direction: column;
}

.toggle-label strong {
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.toggle-item:hover .toggle-label strong {
    color: var(--accent-color);
}

.toggle-label span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ========================================
   SERVER NAVIGATION (Animated)
   ======================================== */

.server-nav {
    display: flex;
    gap: 0.25rem;
    padding: 0.5rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    overflow-x: auto;
    animation: fadeInDown 0.4s var(--ease-smooth);
}

.server-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    color: var(--text-secondary);
    border-radius: var(--radius);
    white-space: nowrap;
    transition: all var(--transition-normal) var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.server-nav .nav-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: all var(--transition-normal) var(--ease-smooth);
    transform: translateX(-50%);
}

.server-nav .nav-item:hover::before {
    width: 80%;
}

.server-nav .nav-item:hover {
    background: var(--bg-dark);
    color: var(--text-primary);
}

.server-nav .nav-item.active {
    background: var(--accent-color);
    color: var(--text-dark);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.server-nav .nav-item.active::before {
    display: none;
}

.server-nav .nav-item i {
    font-size: 0.9rem;
    transition: transform var(--transition-fast) var(--ease-bounce);
}

.server-nav .nav-item:hover i {
    transform: scale(1.15);
}

/* AI Assistant Nav Item */
.server-nav .nav-item.ai-nav-item {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(255, 152, 0, 0.1));
    border: 1px solid rgba(255, 193, 7, 0.3);
    position: relative;
    overflow: hidden;
}

.server-nav .nav-item.ai-nav-item::before {
    background: linear-gradient(135deg, var(--primary-color), #ff9800);
}

.server-nav .nav-item.ai-nav-item::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 193, 7, 0.1),
        transparent
    );
    transform: rotate(45deg);
    animation: ai-shine 3s infinite;
}

@keyframes ai-shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.server-nav .nav-item.ai-nav-item:hover {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.25), rgba(255, 152, 0, 0.2));
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.3);
}

.server-nav .nav-item.ai-nav-item i {
    color: var(--primary-color);
}

.server-nav .nav-item.ai-nav-item.active {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.3), rgba(255, 152, 0, 0.25));
}

/* ========================================
   CONSOLE (Animated)
   ======================================== */

.console-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    animation: fadeInUp 0.5s var(--ease-smooth);
}

.console-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border-color);
}

.console-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.console-title i {
    color: var(--accent-color);
    animation: pulse 2s infinite;
}

.console-output {
    height: 400px;
    overflow-y: auto;
    padding: 1rem;
    font-family: 'JetBrains Mono', 'Consolas', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    background: #0a0a0a;
}

.console-output .log-line {
    margin: 0;
    padding: 0.125rem 0;
}

.console-output .log-error {
    color: var(--danger);
}

.console-output .log-warn {
    color: var(--warning);
}

.console-output .log-info {
    color: var(--info);
}

.console-output .log-command {
    color: var(--accent-color);
}

.console-loading, .console-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 100%;
    color: var(--text-muted);
}

.console-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-dark);
    border-top: 1px solid var(--border-color);
}

.console-prompt {
    color: var(--accent-color);
    font-family: monospace;
    font-weight: 700;
}

.console-input input {
    flex: 1;
    padding: 0.625rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: monospace;
}

.console-input input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.console-stats {
    display: flex;
    gap: 2rem;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    margin-top: 1rem;
}

.console-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.console-stats .stat-item i {
    color: var(--accent-color);
}

/* ========================================
   FILE BROWSER (Animated)
   ======================================== */

.file-browser-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
    animation: fadeInDown 0.4s var(--ease-smooth);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.9rem;
}

.breadcrumb-item {
    color: var(--text-secondary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all var(--transition-normal) var(--ease-smooth);
    animation: fadeInLeft 0.3s var(--ease-smooth) backwards;
}

.breadcrumb-item:nth-child(1) { animation-delay: 0.05s; }
.breadcrumb-item:nth-child(2) { animation-delay: 0.1s; }
.breadcrumb-item:nth-child(3) { animation-delay: 0.15s; }
.breadcrumb-item:nth-child(4) { animation-delay: 0.2s; }
.breadcrumb-item:nth-child(5) { animation-delay: 0.25s; }

.breadcrumb-item:hover {
    background: var(--bg-dark);
    color: var(--accent-color);
    transform: translateY(-2px);
}

.breadcrumb-separator {
    color: var(--text-muted);
}

.file-list {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    animation: fadeIn 0.4s var(--ease-smooth);
}

.file-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-normal) var(--ease-smooth);
    animation: fadeInUp 0.3s var(--ease-smooth) backwards;
}

.file-item:nth-child(1) { animation-delay: 0.02s; }
.file-item:nth-child(2) { animation-delay: 0.04s; }
.file-item:nth-child(3) { animation-delay: 0.06s; }
.file-item:nth-child(4) { animation-delay: 0.08s; }
.file-item:nth-child(5) { animation-delay: 0.1s; }
.file-item:nth-child(6) { animation-delay: 0.12s; }
.file-item:nth-child(7) { animation-delay: 0.14s; }
.file-item:nth-child(8) { animation-delay: 0.16s; }
.file-item:nth-child(9) { animation-delay: 0.18s; }
.file-item:nth-child(10) { animation-delay: 0.2s; }

.file-item:last-child {
    border-bottom: none;
}

.file-item:hover {
    background: var(--bg-dark);
    padding-left: 1.5rem;
}

.file-link {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.file-item:hover .file-link {
    color: var(--accent-color);
}

.file-link i {
    color: var(--text-muted);
    width: 20px;
    text-align: center;
    transition: all var(--transition-fast) var(--ease-bounce);
}

.file-item:hover .file-link i {
    transform: scale(1.2);
}

.file-folder .file-link i {
    color: var(--accent-color);
}

.file-info {
    display: flex;
    gap: 2rem;
    margin-right: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.file-actions {
    display: flex;
    gap: 0.25rem;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.file-item:hover .file-actions {
    opacity: 1;
}

/* ========================================
   BADGES (Animated)
   ======================================== */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--bg-dark);
    border-radius: 4px;
    transition: all var(--transition-fast);
}

.badge:hover {
    transform: scale(1.05);
}

.badge-accent {
    background: var(--accent-color);
    color: var(--text-dark);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.badge-accent:hover {
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.5);
}

.badge-success {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
}

.badge-warning {
    background: rgba(234, 179, 8, 0.1);
    color: var(--warning);
}

.badge-muted {
    background: var(--bg-dark);
    color: var(--text-muted);
}

.resource-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    background: var(--bg-dark);
    border-radius: 4px;
}

.resource-badge i {
    color: var(--accent-color);
}

/* ========================================
   EMPTY STATE (Animated)
   ======================================== */

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    animation: fadeIn 0.5s var(--ease-smooth);
}

.empty-state.small {
    padding: 2rem;
}

.empty-state i {
    font-size: 4rem;
    color: var(--border-light);
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

.empty-state h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    animation: fadeInUp 0.5s var(--ease-smooth) 0.1s backwards;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.5s var(--ease-smooth) 0.2s backwards;
}

.empty-state .btn {
    animation: fadeInUp 0.5s var(--ease-smooth) 0.3s backwards;
}

/* ========================================
   LIMITS / PROGRESS BARS (Animated)
   ======================================== */

.user-limits {
    display: flex;
    gap: 2rem;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.5s var(--ease-smooth);
}

.limits-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.limit-item {
    flex: 1;
    min-width: 200px;
    animation: fadeInLeft 0.4s var(--ease-smooth) backwards;
}

.limit-item:nth-child(1) { animation-delay: 0.05s; }
.limit-item:nth-child(2) { animation-delay: 0.1s; }
.limit-item:nth-child(3) { animation-delay: 0.15s; }
.limit-item:nth-child(4) { animation-delay: 0.2s; }

.limit-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.limit-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.limit-value {
    font-size: 0.85rem;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.limit-item:hover .limit-value {
    color: var(--accent-color);
}

.limit-bar, .progress-bar {
    height: 8px;
    background: var(--bg-dark);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.limit-fill, .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-light));
    border-radius: 4px;
    transition: width 0.8s var(--ease-smooth);
    position: relative;
}

/* Animated progress bar shine effect */
.limit-fill::after, .progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%
    );
    animation: shimmer 2s infinite;
}

/* Progress bar stripes for active state */
.progress-fill.active {
    background-image: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
    background-size: 40px 40px;
    animation: progressStripe 1s linear infinite;
}

/* ========================================
   INFO GRID
   ======================================== */

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.info-value {
    font-size: 0.95rem;
    font-weight: 500;
}

.info-value code {
    background: var(--bg-dark);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-family: monospace;
}

.docker-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

/* ========================================
   LIST ITEMS (Animated)
   ======================================== */

.list-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--bg-dark);
    border-radius: var(--radius);
    color: var(--text-primary);
    transition: all var(--transition-normal) var(--ease-smooth);
    animation: fadeInLeft 0.4s var(--ease-smooth) backwards;
    border-left: 3px solid transparent;
}

.list-item:nth-child(1) { animation-delay: 0.05s; }
.list-item:nth-child(2) { animation-delay: 0.1s; }
.list-item:nth-child(3) { animation-delay: 0.15s; }
.list-item:nth-child(4) { animation-delay: 0.2s; }
.list-item:nth-child(5) { animation-delay: 0.25s; }
.list-item:nth-child(6) { animation-delay: 0.3s; }

.list-item:hover {
    background: var(--bg-card-hover);
    border-left-color: var(--accent-color);
    transform: translateX(5px);
}

.item-avatar {
    width: 36px;
    height: 36px;
    background: var(--accent-color);
    color: var(--text-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal) var(--ease-bounce);
}

.list-item:hover .item-avatar {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.item-status {
    width: 12px;
    height: 12px;
}

.item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.item-title {
    font-weight: 500;
    transition: color var(--transition-fast);
}

.list-item:hover .item-title {
    color: var(--accent-color);
}

.item-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ========================================
   ADMIN GRID
   ======================================== */

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

/* ========================================
   EGGS (Animated)
   ======================================== */

.eggs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.egg-card {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal) var(--ease-smooth);
    animation: fadeInUp 0.5s var(--ease-out-back) backwards;
    position: relative;
}

.egg-card:nth-child(1) { animation-delay: 0.05s; }
.egg-card:nth-child(2) { animation-delay: 0.1s; }
.egg-card:nth-child(3) { animation-delay: 0.15s; }
.egg-card:nth-child(4) { animation-delay: 0.2s; }
.egg-card:nth-child(5) { animation-delay: 0.25s; }
.egg-card:nth-child(6) { animation-delay: 0.3s; }

.egg-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.05), transparent);
    transition: left 0.6s ease;
}

.egg-card:hover::before {
    left: 100%;
}

.egg-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2), var(--shadow-accent);
}

.egg-card.inactive {
    opacity: 0.6;
}

.egg-card.inactive:hover {
    opacity: 0.8;
}

.egg-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-card);
}

.egg-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    color: var(--text-dark);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all var(--transition-normal) var(--ease-bounce);
}

.egg-card:hover .egg-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.egg-body {
    padding: 1rem;
}

.egg-body h3 {
    margin-bottom: 0.5rem;
    transition: color var(--transition-fast);
}

.egg-card:hover .egg-body h3 {
    color: var(--accent-color);
}

.egg-description {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.egg-meta, .egg-defaults {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.egg-meta i, .egg-defaults i {
    color: var(--accent-color);
    transition: transform var(--transition-fast);
}

.egg-card:hover .egg-meta i,
.egg-card:hover .egg-defaults i {
    transform: scale(1.15);
}

.egg-actions {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    border-top: 1px solid var(--border-color);
}

.egg-actions .btn {
    opacity: 0.7;
    transition: all var(--transition-fast);
}

.egg-card:hover .egg-actions .btn {
    opacity: 1;
}

/* ========================================
   DANGER ZONE (Animated)
   ======================================== */

.danger-zone {
    border-color: var(--danger);
    animation: borderGlow 2s ease-in-out infinite;
}

@keyframes dangerPulse {
    0%, 100% { border-color: var(--danger); }
    50% { border-color: rgba(239, 68, 68, 0.5); }
}

.danger-zone .card-title {
    color: var(--danger);
}

.danger-zone .card-title i {
    color: var(--danger);
    animation: shake 0.5s ease-in-out infinite;
    animation-play-state: paused;
}

.danger-zone:hover .card-title i {
    animation-play-state: running;
}

.danger-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-dark);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    transition: all var(--transition-normal) var(--ease-smooth);
    border-left: 3px solid transparent;
}

.danger-action:hover {
    background: rgba(239, 68, 68, 0.05);
    border-left-color: var(--danger);
    transform: translateX(5px);
}

.danger-action:last-child {
    margin-bottom: 0;
}

.danger-info strong {
    display: block;
    margin-bottom: 0.25rem;
    transition: color var(--transition-fast);
}

.danger-action:hover .danger-info strong {
    color: var(--danger);
}

.danger-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ========================================
   FLASH MESSAGES (Animated)
   ======================================== */

.flash-messages {
    margin-bottom: 1.5rem;
}

.flash-message {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
    animation: slideInDown 0.4s var(--ease-out-back);
    transition: all var(--transition-normal) var(--ease-smooth);
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.flash-message:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.flash-message i {
    font-size: 1.25rem;
    animation: iconPop 0.5s var(--ease-bounce) 0.2s backwards;
}

.flash-message span {
    flex: 1;
}

.flash-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0.25rem;
    opacity: 0.7;
    transition: all var(--transition-fast);
}

.flash-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.flash-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
}

.flash-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--danger);
    color: var(--danger);
    animation: slideInDown 0.4s var(--ease-out-back), shake 0.5s var(--ease-bounce) 0.4s;
}

.flash-warning {
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid var(--warning);
    color: var(--warning);
}

.flash-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid var(--info);
    color: var(--info);
}

/* ========================================
   ALERTS (Animated)
   ======================================== */

.alert {
    padding: 1rem;
    border-radius: var(--radius);
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: fadeInUp 0.4s var(--ease-smooth);
    transition: all var(--transition-normal);
}

.alert:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.alert i {
    animation: pulse 2s infinite;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
    border-left: 4px solid var(--success);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border-left: 4px solid var(--danger);
}

/* ========================================
   AUTH PAGES (Animated)
   ======================================== */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 215, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 215, 0, 0.05) 0%, transparent 50%),
        var(--bg-primary);
    animation: fadeIn 0.5s var(--ease-smooth);
}

/* Animated background particles */
.auth-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, var(--accent-glow) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, var(--accent-glow) 1px, transparent 1px);
    background-size: 100px 100px;
    animation: float 20s ease-in-out infinite;
    opacity: 0.3;
    pointer-events: none;
}

.auth-container {
    display: flex;
    gap: 4rem;
    max-width: 1000px;
    width: 100%;
    align-items: center;
    position: relative;
    z-index: 1;
}

.auth-card {
    flex: 1;
    max-width: 400px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    animation: scaleInBounce 0.6s var(--ease-out-back);
    transition: all var(--transition-normal);
}

.auth-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), var(--shadow-accent);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    width: 70px;
    height: 70px;
    background: var(--accent-color);
    color: var(--text-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
    transition: transform var(--transition-normal) var(--ease-bounce);
}

.auth-logo:hover {
    transform: scale(1.1) rotate(10deg);
}

.auth-logo i {
    animation: beeWing 0.3s ease-in-out infinite;
}

.auth-header h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
    animation: fadeInUp 0.5s var(--ease-smooth) 0.2s backwards;
}

.auth-header p {
    color: var(--text-muted);
    animation: fadeInUp 0.5s var(--ease-smooth) 0.3s backwards;
}

.auth-form {
    margin-bottom: 1.5rem;
}

.auth-form .form-group {
    animation: fadeInUp 0.5s var(--ease-smooth) backwards;
}

.auth-form .form-group:nth-child(1) { animation-delay: 0.3s; }
.auth-form .form-group:nth-child(2) { animation-delay: 0.4s; }
.auth-form .form-group:nth-child(3) { animation-delay: 0.5s; }

.auth-form .btn {
    animation: fadeInUp 0.5s var(--ease-smooth) 0.6s backwards;
}

.auth-footer {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    animation: fadeIn 0.5s var(--ease-smooth) 0.7s backwards;
}

.auth-footer p {
    color: var(--text-muted);
}

.auth-features {
    flex: 1;
    max-width: 400px;
    animation: fadeInRight 0.6s var(--ease-smooth);
}

.auth-features h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.auth-features ul {
    list-style: none;
}

.auth-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    animation: fadeInLeft 0.5s var(--ease-smooth) backwards;
    transition: all var(--transition-fast);
}

.auth-features li:nth-child(1) { animation-delay: 0.2s; }
.auth-features li:nth-child(2) { animation-delay: 0.3s; }
.auth-features li:nth-child(3) { animation-delay: 0.4s; }
.auth-features li:nth-child(4) { animation-delay: 0.5s; }
.auth-features li:nth-child(5) { animation-delay: 0.6s; }

.auth-features li:hover {
    padding-left: 1rem;
    color: var(--accent-color);
}

.auth-features li i {
    color: var(--accent-color);
    transition: transform var(--transition-fast) var(--ease-bounce);
}

.auth-features li:hover i {
    transform: scale(1.2) rotate(-5deg);
}

/* Checkbox styling for auth */
.checkbox-group {
    margin: 1rem 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

/* ========================================
   ERROR PAGES
   ======================================== */

.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    padding: 2rem;
}

.error-code {
    font-size: 8rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1;
    text-shadow: var(--shadow-accent);
}

.error-page h1 {
    font-size: 2rem;
    margin: 1rem 0;
}

.error-page p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* ========================================
   QUICK COMMAND
   ======================================== */

.quick-command {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.command-input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: monospace;
}

.command-input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.command-output {
    background: var(--bg-dark);
    border-radius: var(--radius);
    padding: 1rem;
    font-family: monospace;
    font-size: 0.85rem;
    max-height: 200px;
    overflow-y: auto;
}

.command-output pre {
    margin: 0;
    white-space: pre-wrap;
}

/* ========================================
   RESOURCE STATS
   ======================================== */

.resource-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.resource-stat {
    padding: 1rem;
    background: var(--bg-dark);
    border-radius: var(--radius);
}

.resource-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.resource-name {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ========================================
   SERVER OVERVIEW
   ======================================== */

.server-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

/* ========================================
   TASKS
   ======================================== */

.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-dark);
    border-radius: var(--radius);
}

.task-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    color: var(--text-dark);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.task-info {
    flex: 1;
}

.task-info h4 {
    margin-bottom: 0.25rem;
}

.task-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.task-type {
    background: var(--bg-card);
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-right: 0.5rem;
}

.task-info code {
    font-size: 0.8rem;
}

.task-schedule {
    margin-top: 0.25rem;
}

.task-status {
    margin-right: 1rem;
}

.task-actions {
    display: flex;
    gap: 0.25rem;
}

.cron-examples {
    list-style: none;
    margin-top: 1rem;
}

.cron-examples li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.cron-examples code {
    background: var(--bg-dark);
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-family: monospace;
    margin-right: 0.5rem;
}

/* ========================================
   PAGINATION
   ======================================== */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.page-info {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ========================================
   MISC
   ======================================== */

.pull-image-form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.pull-image-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
}

.loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    padding: 1rem;
}

.form-warning {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid var(--warning);
    border-radius: var(--radius);
    margin: 1rem 0;
}

.form-warning i {
    color: var(--warning);
    margin-top: 0.25rem;
}

.server-transfer-info {
    padding: 1rem;
    background: var(--bg-dark);
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

.server-transfer-info h3 {
    margin-bottom: 0.25rem;
}

.server-transfer-info p {
    color: var(--text-muted);
    margin: 0;
}

.security-checklist {
    list-style: none;
}

.security-checklist li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.text-success {
    color: var(--success);
}

.env-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.env-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--bg-dark);
    border-radius: var(--radius);
}

.env-name {
    font-family: monospace;
    color: var(--accent-color);
}

.env-value {
    font-family: monospace;
    color: var(--text-muted);
}

.user-link, .server-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

.user-link:hover, .server-link:hover {
    color: var(--accent-color);
}

/* ========================================
   CUSTOM MODAL SYSTEM
   ======================================== */

#bee-modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    pointer-events: none;
}

.bee-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bee-modal.bee-modal-active {
    opacity: 1;
}

.bee-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.bee-modal-dialog {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow: hidden;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-lg), 0 0 40px rgba(0, 0, 0, 0.5);
}

.bee-modal.bee-modal-active .bee-modal-dialog {
    transform: translateY(0) scale(1);
}

.bee-modal-dialog.bee-modal-danger {
    border-color: var(--danger);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(239, 68, 68, 0.2);
}

.bee-modal-dialog.bee-modal-select {
    max-width: 400px;
}

.bee-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.bee-modal-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.bee-modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-muted);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
}

.bee-modal-close:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.bee-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    max-height: 60vh;
}

.bee-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

/* Modal Alert */
.bee-modal-alert {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.bee-modal-alert i {
    font-size: 3rem;
}

.bee-modal-alert.bee-modal-success i { color: var(--success); }
.bee-modal-alert.bee-modal-error i { color: var(--danger); }
.bee-modal-alert.bee-modal-warning i { color: var(--warning); }
.bee-modal-alert.bee-modal-info i { color: var(--info); }

.bee-modal-alert p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Modal Confirm */
.bee-modal-confirm {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.bee-modal-confirm i {
    font-size: 3rem;
    color: var(--warning);
}

.bee-modal-confirm p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Modal Prompt */
.bee-modal-prompt p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.bee-modal-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.2s;
}

.bee-modal-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.bee-modal-input.valid {
    border-color: var(--success);
}

.bee-modal-input.invalid {
    border-color: var(--danger);
}

/* Delete Confirmation Modal */
.bee-modal-delete-confirm {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.delete-warning {
    text-align: center;
    padding: 1.5rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius);
}

.delete-warning i {
    font-size: 2.5rem;
    color: var(--danger);
    margin-bottom: 1rem;
}

.delete-warning p {
    margin: 0.5rem 0;
    color: var(--text-secondary);
}

.delete-warning strong {
    color: var(--text-primary);
}

.delete-warning .warning-text {
    font-size: 0.875rem;
    color: var(--danger);
}

.delete-code-section {
    text-align: center;
}

.delete-code-section > p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.delete-code-display {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    background: var(--bg-dark);
    border: 2px dashed var(--border-light);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 1rem;
}

.delete-code-display:hover {
    border-color: var(--accent-color);
    background: var(--bg-secondary);
}

.delete-code-display.copied {
    border-color: var(--success);
    background: rgba(34, 197, 94, 0.1);
}

.delete-code {
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.25rem;
    color: var(--accent-color);
}

.delete-code-display i {
    color: var(--text-muted);
    transition: color 0.2s;
}

.delete-code-display.copied i {
    color: var(--success);
}

.delete-code-input {
    text-align: center;
    font-family: 'Courier New', monospace;
    font-size: 1.25rem;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
}

.code-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Modal Select */
.bee-modal-select-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bee-modal-search {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.bee-modal-search:focus {
    outline: none;
    border-color: var(--accent-color);
}

.bee-select-options {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
}

.bee-select-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    cursor: pointer;
    transition: all 0.15s;
    border-bottom: 1px solid var(--border-color);
}

.bee-select-option:last-child {
    border-bottom: none;
}

.bee-select-option:hover:not(.disabled) {
    background: var(--bg-card-hover);
}

.bee-select-option.selected {
    background: rgba(255, 215, 0, 0.1);
}

.bee-select-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.bee-select-option i:first-child {
    width: 20px;
    text-align: center;
    color: var(--accent-color);
}

.option-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.option-label {
    font-weight: 500;
    color: var(--text-primary);
}

.option-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.125rem;
}

.option-check {
    color: var(--accent-color);
}

/* ========================================
   CUSTOM SELECT DROPDOWNS
   ======================================== */

.bee-select-wrapper {
    position: relative;
    width: 100%;
}

.bee-custom-select {
    position: relative;
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
}

.bee-custom-select:hover {
    border-color: var(--border-light);
}

.bee-custom-select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.bee-custom-select.open {
    border-color: var(--accent-color);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.bee-select-selected {
    padding: 0.75rem 1rem;
    padding-right: 2.5rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bee-select-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.75rem;
    transition: transform 0.2s;
    pointer-events: none;
}

.bee-custom-select.open .bee-select-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.bee-select-dropdown {
    position: absolute;
    top: 100%;
    left: -1px;
    right: -1px;
    background: var(--bg-card);
    border: 1px solid var(--accent-color);
    border-top: none;
    border-bottom-left-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    box-shadow: var(--shadow-md);
}

.bee-custom-select.open .bee-select-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.bee-select-dropdown .bee-select-option {
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    transition: all 0.15s;
    border-bottom: 1px solid var(--border-color);
}

.bee-select-dropdown .bee-select-option:last-child {
    border-bottom: none;
}

.bee-select-dropdown .bee-select-option:hover:not(.disabled) {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.bee-select-dropdown .bee-select-option.selected {
    background: rgba(255, 215, 0, 0.1);
    color: var(--accent-color);
}

.bee-select-dropdown .bee-select-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) and (min-width: 769px) {
    .sidebar {
        width: 70px;
        overflow: hidden;
    }
    
    .sidebar-header .logo span,
    .menu-item span,
    .menu-divider span,
    .user-details {
        display: none;
    }
    
    .sidebar-header {
        padding: 1rem;
        justify-content: center;
    }
    
    .menu-item a {
        justify-content: center;
        padding: 1rem;
    }
    
    .sidebar-footer {
        flex-direction: column;
        padding: 1rem;
    }
    
    .main-content {
        margin-left: 70px;
    }
    
    .auth-container {
        flex-direction: column;
    }
    
    .auth-features {
        display: none;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 1rem;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .servers-grid {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .server-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 0.5rem;
    }
    
    .console-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .user-limits {
        flex-direction: column;
    }
    
    .resource-stats {
        grid-template-columns: 1fr;
    }
    
    .bee-modal-dialog {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
}

/* ========================================
   ANIMATION UTILITY CLASSES
   ======================================== */

/* Animation states */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s var(--ease-smooth);
}

.animate-on-scroll.animate-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hover animations */
.hover-lift {
    transition: transform var(--transition-normal) var(--ease-smooth), box-shadow var(--transition-normal);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.hover-glow {
    transition: box-shadow var(--transition-normal);
}

.hover-glow:hover {
    box-shadow: var(--shadow-accent);
}

.hover-scale {
    transition: transform var(--transition-normal) var(--ease-bounce);
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-rotate {
    transition: transform var(--transition-normal) var(--ease-bounce);
}

.hover-rotate:hover {
    transform: rotate(5deg);
}

/* Animation modifiers */
.animation-delay-1 { animation-delay: 0.1s !important; }
.animation-delay-2 { animation-delay: 0.2s !important; }
.animation-delay-3 { animation-delay: 0.3s !important; }
.animation-delay-4 { animation-delay: 0.4s !important; }
.animation-delay-5 { animation-delay: 0.5s !important; }

/* Continuous animations */
.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-bounce {
    animation: bounce 2s ease-in-out infinite;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

.animate-spin {
    animation: rotate 1s linear infinite;
}

.animate-shake {
    animation: shake 0.5s ease-in-out;
}

/* Icon animations */
.icon-animated {
    transition: transform var(--transition-fast) var(--ease-bounce);
}

.icon-animated:hover {
    transform: scale(1.2) rotate(-5deg);
}

/* Skeleton loading animation */
.skeleton {
    background: linear-gradient(90deg, var(--bg-dark) 25%, var(--bg-card-hover) 50%, var(--bg-dark) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius);
}

.skeleton-text {
    height: 1em;
    margin-bottom: 0.5em;
}

.skeleton-title {
    height: 1.5em;
    width: 60%;
    margin-bottom: 0.5em;
}

.skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.skeleton-card {
    height: 200px;
}

/* Loading spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: rotate 0.8s linear infinite;
}

.spinner-sm {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

.spinner-lg {
    width: 60px;
    height: 60px;
    border-width: 4px;
}

/* Ripple effect for buttons */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

/* Typing animation */
.typing-effect {
    overflow: hidden;
    border-right: 2px solid var(--accent-color);
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink 0.75s step-end infinite;
}

/* Gradient text animation */
.gradient-text {
    background: linear-gradient(90deg, var(--accent-color), var(--accent-light), var(--accent-color));
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientMove 3s ease infinite;
}

/* Success checkmark animation */
.success-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.success-checkmark i {
    font-size: 3rem;
    color: var(--success);
    animation: scaleInBounce 0.5s var(--ease-out-back);
}

/* Error X animation */
.error-x {
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.error-x i {
    font-size: 3rem;
    color: var(--danger);
    animation: shake 0.5s var(--ease-bounce);
}

/* Focus ring animation */
.focus-ring {
    transition: box-shadow var(--transition-normal);
}

.focus-ring:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Interactive card with 3D effect */
.card-3d {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform var(--transition-normal) var(--ease-smooth);
}

.card-3d:hover {
    transform: rotateY(5deg) rotateX(5deg) scale(1.02);
}

/* Notification dot pulse */
.notification-dot {
    position: relative;
}

.notification-dot::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: var(--danger);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* Status indicator breathing */
.status-breathing {
    animation: pulse 2s ease-in-out infinite;
}

/* Smooth appearing elements */
.appear {
    animation: fadeInUp 0.5s var(--ease-smooth) forwards;
}

.appear-delay-1 { animation-delay: 0.1s; opacity: 0; }
.appear-delay-2 { animation-delay: 0.2s; opacity: 0; }
.appear-delay-3 { animation-delay: 0.3s; opacity: 0; }
.appear-delay-4 { animation-delay: 0.4s; opacity: 0; }
.appear-delay-5 { animation-delay: 0.5s; opacity: 0; }

/* ========================================
   WORKER TOAST NOTIFICATIONS
   ======================================== */

.worker-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    animation: slideInRight 0.4s var(--ease-out-back);
}

.worker-toast .toast-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 400px;
}

.worker-toast .toast-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.1);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.worker-toast .toast-message {
    flex: 1;
}

.worker-toast .toast-title {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.worker-toast .toast-text {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.worker-toast .toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.2s ease;
}

.worker-toast .toast-close:hover {
    color: var(--text-primary);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Notification badge in sidebar */
.notification-badge {
    background: var(--danger);
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
    margin-left: auto;
    animation: pulse 2s infinite;
}

/* No animations for reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
   MOBILE RESPONSIVE STYLES
   ======================================== */

/* Mobile menu toggle button */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:active {
    background: var(--bg-card-hover);
    border-color: var(--accent-color);
}

.mobile-menu-toggle.active {
    background: var(--accent-color);
    color: var(--text-dark);
}

/* Mobile overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile: < 768px */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-overlay {
        display: block;
        pointer-events: none;
    }
    
    .mobile-overlay.active {
        pointer-events: auto;
    }
    
    /* Sidebar mobile */
    .sidebar {
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        width: 280px !important;
        height: 100vh !important;
        height: 100dvh !important;
        z-index: 1000 !important;
        transform: translateX(-100%) !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: var(--shadow-lg);
        overflow: visible !important;
        animation: none !important;
    }
    
    .sidebar.mobile-open {
        transform: translateX(0) !important;
    }
    
    /* Show all sidebar content on mobile */
    .sidebar-header .logo span,
    .sidebar .menu-item span,
    .sidebar .menu-divider span,
    .sidebar .user-details {
        display: block !important;
    }
    
    .sidebar .menu-item a {
        justify-content: flex-start !important;
        padding: 0.75rem 1.25rem !important;
    }
    
    /* Main content full width */
    .main-content {
        margin-left: 0 !important;
        padding: 1rem;
        padding-top: 70px;
    }
    
    /* Page header */
    .page-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .header-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .header-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Stats */
    .stat-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    /* Server cards */
    .servers-grid {
        grid-template-columns: 1fr;
    }
    
    .server-card {
        padding: 1rem;
    }
    
    /* Tables */
    .data-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .data-table {
        min-width: 600px;
    }
    
    /* Forms */
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-row .form-group {
        flex: 1 1 100%;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Content cards */
    .content-card {
        padding: 1rem;
        border-radius: var(--radius);
    }
    
    /* Server navigation tabs */
    .server-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.5rem;
        margin-bottom: 1rem;
        gap: 0.25rem;
    }
    
    .server-nav-item {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    /* Console */
    .console-output {
        font-size: 0.75rem;
        height: 300px;
    }
    
    .console-input-wrapper input {
        font-size: 0.875rem;
    }
    
    /* File manager */
    .file-browser-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .file-actions {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .file-item {
        padding: 0.75rem;
    }
    
    .file-name {
        font-size: 0.9rem;
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .file-meta {
        display: none;
    }
    
    .breadcrumb {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
    }
    
    .breadcrumb-item {
        flex-shrink: 0;
    }
    
    /* Modals - slide up from bottom on mobile */
    .modal-overlay {
        align-items: flex-end;
    }
    
    .modal-content {
        width: 100%;
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        max-height: 90vh;
        overflow-y: auto;
        animation: slideUpModal 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    @keyframes slideUpModal {
        from {
            opacity: 0;
            transform: translateY(100%);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .modal-header {
        padding: 16px 20px;
        position: sticky;
        top: 0;
        background: var(--bg-card);
        z-index: 1;
        border-radius: 20px 20px 0 0;
    }
    
    .modal-header::before {
        content: '';
        display: block;
        width: 40px;
        height: 4px;
        background: var(--border-light);
        border-radius: 2px;
        margin: 0 auto 12px;
    }
    
    .modal-body {
        padding: 16px 20px;
    }
    
    .modal-footer {
        padding: 16px 20px 24px;
        flex-direction: column;
        gap: 0.75rem;
        position: sticky;
        bottom: 0;
        background: var(--bg-card);
    }
    
    .modal-footer .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Upload modal */
    .file-upload-modal-content {
        width: 100%;
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        max-height: 90vh;
    }
    
    /* Flash messages */
    .flash-messages {
        top: 70px;
        left: 1rem;
        right: 1rem;
    }
    
    .flash-message {
        font-size: 0.875rem;
        padding: 0.75rem 1rem;
    }
    
    /* Auth pages */
    .auth-container {
        padding: 1rem;
    }
    
    .auth-card {
        padding: 1.5rem;
        border-radius: var(--radius-lg);
    }
    
    .auth-header h1 {
        font-size: 1.5rem;
    }
    
    /* Profile page */
    .profile-grid {
        grid-template-columns: 1fr;
    }
    
    /* Admin pages */
    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Workers toast */
    .worker-toast {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
    
    /* User dropdown in sidebar */
    .user-info {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .sidebar-footer {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .logout-btn {
        width: 100%;
        justify-content: center;
        padding: 0.75rem;
    }
}

/* Small phones: < 480px */
@media (max-width: 480px) {
    .main-content {
        padding: 0.75rem;
        padding-top: 65px;
    }
    
    .page-header h1 {
        font-size: 1.25rem;
    }
    
    .stat-card-value {
        font-size: 1.5rem;
    }
    
    .server-card-header h3 {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.875rem;
    }
    
    .btn-sm {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .admin-stats {
        grid-template-columns: 1fr;
    }
    
    .console-output {
        height: 250px;
        font-size: 0.7rem;
    }
    
    /* Dropdown menus */
    .file-dropdown-menu {
        min-width: 180px;
    }
    
    /* Editor */
    .code-editor {
        font-size: 0.8rem;
    }
}

/* Mobile touch improvements */
@media (max-width: 768px) {
    /* Better touch targets */
    button, 
    .btn, 
    a, 
    input[type="submit"],
    input[type="button"],
    .menu-item a,
    .file-item,
    .server-card,
    .clickable {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    /* Ensure buttons are tappable */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Fix iOS input zoom */
    input, 
    select, 
    textarea {
        font-size: 16px !important;
    }
    
    /* Prevent text selection on buttons */
    button, .btn {
        -webkit-user-select: none;
        user-select: none;
    }
}

