@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-primary: #050508;
    --card-bg: rgba(10, 10, 15, 0.7);
    --card-border: rgba(255, 255, 255, 0.05);
    --card-border-glow: rgba(16, 185, 129, 0.25);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    /* Green Theme Palette */
    --theme-green: #10b981;
    --theme-green-hover: #059669;
    --theme-green-glow: rgba(16, 185, 129, 0.35);
    
    /* Discord Brand Palette */
    --discord-blurple: #5865F2;
    --discord-blurple-hover: #4752c4;
    --discord-glow: rgba(88, 101, 242, 0.25);
    
    /* Premium Glows */
    --glow-emerald: 0 0 20px rgba(16, 185, 129, 0.2);
    --glow-rose: 0 0 20px rgba(244, 63, 94, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    margin: 0;
    padding: 0;
}

body.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

/* ==========================================================================
   60 FPS ULTRA-PERFORMANT GPU-ACCELERATED BACKDROP
   ========================================================================== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Static GPU-cached radial gradients replace CPU-heavy blurred moving div layers */
    background: 
        radial-gradient(circle at 5% 5%, rgba(16, 185, 129, 0.16) 0%, transparent 40%),
        radial-gradient(circle at 95% 95%, rgba(5, 150, 105, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.03) 0%, transparent 50%);
    pointer-events: none;
    transform: translateZ(0); /* Forces hardware acceleration */
}

/* Glassmorphic Panel Container (Login) */
.panel-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    width: 100%;
    max-width: 480px;
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    
    /* Hardware acceleration properties for fluid movements */
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

.panel-card:hover {
    border-color: var(--card-border-glow);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55), 
                0 0 40px rgba(16, 185, 129, 0.05);
}

/* Logo and Branding header */
.brand-header {
    margin-bottom: 2.5rem;
}

.brand-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--theme-green) 0%, var(--theme-green-hover) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    box-shadow: var(--theme-green-glow);
    position: relative;
    overflow: hidden;
}

.brand-icon::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, rgba(255,255,255,0) 45%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0) 55%);
    transform: rotate(45deg);
    animation: shine 5s infinite linear;
}

@keyframes shine {
    0% { transform: translate(-100%, -100%) rotate(45deg); }
    100% { transform: translate(100%, 100%) rotate(45deg); }
}

.brand-icon svg {
    width: 44px;
    height: 44px;
    fill: #ffffff;
}

.brand-title {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 40%, #a7f3d0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.brand-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Active Profile Panel elements */
.profile-section {
    margin-bottom: 2.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.avatar-wrapper {
    position: relative;
    margin-bottom: 1.2rem;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #0f0f15;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.avatar-glow {
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    z-index: -1;
    background: linear-gradient(135deg, var(--theme-green), #059669);
    filter: blur(6px);
    opacity: 0.8;
}

.profile-name {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.profile-tag {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: monospace;
    background: rgba(255,255,255,0.03);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.05);
}

/* Status Cards */
.status-container {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 1.2rem;
    margin-bottom: 2rem;
    text-align: left;
}

.status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
}

.status-row:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.status-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-badge {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.status-badge.success {
    background: rgba(16, 185, 129, 0.08);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.15);
    box-shadow: var(--glow-emerald);
}

.status-badge.danger {
    background: rgba(244, 63, 94, 0.08);
    color: #f43f5e;
    border: 1px solid rgba(244, 63, 94, 0.15);
    box-shadow: var(--glow-rose);
}

/* Interactive Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1.1rem 2rem;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    border: none;
    outline: none;
    transform: translateZ(0);
}

.btn-discord {
    background: var(--discord-blurple);
    color: #ffffff;
    box-shadow: var(--discord-glow);
}

.btn-discord:hover {
    background: var(--discord-blurple-hover);
    transform: translateY(-2px) translateZ(0);
    box-shadow: 0 12px 28px rgba(88, 101, 242, 0.3);
}

.btn-discord:active {
    transform: translateY(1px) translateZ(0);
}

.btn-green {
    background: var(--theme-green);
    color: #ffffff;
    box-shadow: var(--theme-green-glow);
}

.btn-green:hover {
    background: var(--theme-green-hover);
    transform: translateY(-2px) translateZ(0);
    box-shadow: 0 12px 28px rgba(16, 185, 129, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.btn-logout {
    margin-top: 1rem;
    background: rgba(244, 63, 94, 0.06);
    color: #f43f5e;
    border: 1px solid rgba(244, 63, 94, 0.12);
}

.btn-logout:hover {
    background: rgba(244, 63, 94, 0.12);
    color: #ff4d6d;
    border-color: rgba(244, 63, 94, 0.2);
}

/* Custom Alert Messages */
.alert {
    background: rgba(244, 63, 94, 0.06);
    border: 1px solid rgba(244, 63, 94, 0.15);
    color: #f43f5e;
    padding: 1rem 1.25rem;
    border-radius: 14px;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-align: left;
    box-shadow: var(--glow-rose);
}

.alert svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Info Box / Server Detail Box */
.info-box {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.info-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.info-text a {
    color: var(--theme-green);
    text-decoration: none;
    font-weight: 600;
}

.info-text a:hover {
    text-decoration: underline;
}

/* Micro-animations */
.fade-in {
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* ==========================================================================
   OPTIPANEL PREMIUM NAVBAR & ADMIN GRID (DASHBOARD)
   ========================================================================== */

/* Top Navigation Bar */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4rem;
    background: rgba(5, 5, 8, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    z-index: 100;
    transform: translateZ(0);
}

@media (max-width: 768px) {
    .navbar {
        padding: 1.25rem 2rem;
    }
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.nav-logo-icon {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--theme-green) 0%, var(--theme-green-hover) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.35);
}

.nav-logo-icon::before {
    content: 'A';
    color: #ffffff;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: -0.5px;
}

.nav-logo-text {
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.nav-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-badge {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 0.45rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.profile-badge-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid var(--theme-green);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.profile-badge-info {
    display: flex;
    flex-direction: column;
}

.profile-badge-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.profile-badge-role {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--theme-green);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.1rem;
}

.nav-logout-btn {
    color: var(--theme-green);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
}

.nav-logout-btn:hover {
    color: #ff4d6d;
    background: rgba(244, 63, 94, 0.06);
    transform: scale(1.05);
}

/* Dashboard Container & Grid */
.dashboard-container {
    width: 100%;
    max-width: 1180px;
    margin: 140px auto 4rem auto;
    padding: 0 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

.welcome-title {
    font-size: 2.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 40%, #d1fae5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.6rem;
    letter-spacing: -0.5px;
}

.welcome-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 3.5rem;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
}

@media (max-width: 992px) {
    .admin-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }
    .dashboard-container {
        margin-top: 120px;
    }
}

.admin-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    padding: 3.5rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    
    /* Hardware acceleration */
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

.admin-card:hover {
    border-color: rgba(16, 185, 129, 0.25);
    background: rgba(14, 14, 22, 0.6);
    transform: translateY(-5px) translateZ(0);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 
                0 0 25px rgba(16, 185, 129, 0.04);
}

.admin-card-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.06);
    color: var(--theme-green);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(16, 185, 129, 0.12);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateZ(0);
}

.admin-card:hover .admin-card-icon-wrapper {
    background: var(--theme-green);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.35);
    border-color: var(--theme-green);
}

.admin-card-icon-wrapper svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.admin-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.admin-card-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}
