/* Design System & Premium Aesthetics for Cerveau Admin Panel */
:root {
    --bg-gradient: radial-gradient(circle at 50% 50%, #1a1b26 0%, #0d0e15 100%);
    --card-bg: rgba(22, 22, 37, 0.7);
    --card-border: rgba(255, 255, 255, 0.06);
    --text-primary: #f8f9fa;
    --text-secondary: #a0aec0;
    --primary-glow: rgba(59, 130, 246, 0.5);
    --success-glow: rgba(16, 185, 129, 0.5);
    --warning-glow: rgba(245, 158, 11, 0.5);
    --danger-glow: rgba(239, 68, 68, 0.5);
}

body {
    font-family: 'Plus Jakarta Sans', 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg-gradient);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #0d0e15;
}
::-webkit-scrollbar-thumb {
    background: #2d3748;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #4a5568;
}

/* Wrapper Layout */
.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
    min-height: 100vh;
}

/* Sidebar */
#sidebar {
    min-width: 280px;
    max-width: 280px;
    background: rgba(15, 16, 26, 0.95);
    backdrop-filter: blur(10px);
    border-right: 1px solid var(--card-border);
    color: var(--text-primary);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

#sidebar.active {
    margin-left: -280px;
}

.sidebar-header {
    padding: 2.5rem 1.5rem;
    border-bottom: 1px solid var(--card-border);
}

.logo-icon {
    font-size: 1.8rem;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 8px rgba(59, 130, 246, 0.4));
}

.logo-text {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #f8f9fa, #a0aec0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

#sidebar ul.components {
    padding: 2rem 1rem;
    flex-grow: 1;
}

#sidebar ul li {
    margin-bottom: 0.5rem;
}

#sidebar ul li a {
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

#sidebar ul li a i {
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

#sidebar ul li a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

#sidebar ul li a:hover i {
    transform: scale(1.1);
}

#sidebar ul li.active a {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.15));
    border-left: 3px solid #3b82f6;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.05);
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--card-border);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Page Content Area */
#content {
    width: 100%;
    padding: 2.5rem;
    transition: all 0.3s ease;
    overflow-y: auto;
}

/* Cards style */
.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 100%);
    pointer-events: none;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.stat-card.card-primary:hover {
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
}

.stat-card.card-purple:hover {
    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.4);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
}

.card-primary .stat-icon {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.card-purple .stat-icon {
    color: #a78bfa;
    background: rgba(139, 92, 246, 0.1);
}

.stat-number {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.35rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Pulsing LED Indicators */
.pulse-indicator {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse 1.5s infinite;
}

.pulse-indicator.danger {
    background-color: #ef4444;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: pulse-danger 1.5s infinite;
}

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

@keyframes pulse-danger {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* Server Status Widget */
.server-item {
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    transition: all 0.2s ease;
}

.server-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Custom Table Style */
.custom-table-container {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(12px);
}

.custom-table {
    margin-bottom: 0;
}

.custom-table th {
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    padding: 1.2rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.custom-table td {
    padding: 1.2rem 1rem;
    vertical-align: middle;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.custom-table tr:last-child td {
    border-bottom: none;
}

.custom-table tbody tr {
    transition: background-color 0.2s ease;
}

.custom-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

/* Badges styling */
.badge {
    padding: 0.5rem 0.85rem;
    font-weight: 600;
    border-radius: 8px;
    font-size: 0.8rem;
}

/* Responsive Media Queries */
@media (max-width: 768px) {
    #sidebar {
        margin-left: -280px;
        position: fixed;
        height: 100vh;
    }
    #sidebar.active {
        margin-left: 0;
    }
    #content {
        padding: 1.5rem;
    }
}

/* Clickable domain links styling */
.hover-link {
    transition: color 0.2s ease;
}
.hover-link:hover {
    color: #3b82f6 !important;
}
