/* ============================================================
   MineCMS - Main Stylesheet
   Theme: Minecraft Light / Modern
   ============================================================ */

/* ---- CSS Variables / Design Tokens ---- */
:root {
    /* Minecraft-inspired palette */
    --mc-grass:       #5B8731;
    --mc-grass-light: #7CB342;
    --mc-grass-dark:  #3E6B1E;
    --mc-dirt:        #866526;
    --mc-dirt-light:  #A67C4A;
    --mc-wood:        #9B7D4D;
    --mc-stone:       #8B8B8B;
    --mc-stone-light: #ACACAC;
    --mc-sky:         #78A7FF;
    --mc-sky-light:   #B9D9FF;
    --mc-sky-pale:    #E3EFFF;
    --mc-water:       #3F76E4;
    --mc-gold:        #FFD700;
    --mc-xp:          #7EFC20;
    --mc-diamond:     #2DD4BF;
    --mc-redstone:    #E74C3C;
    --mc-creeper:     #49B04D;
    --mc-enderman:    #7C3AED;

    /* UI Colors */
    --bg-primary:     #F5F0E8;
    --bg-secondary:   #FFFFFF;
    --bg-card:        rgba(255, 255, 255, 0.85);
    --bg-glass:       rgba(255, 255, 255, 0.6);
    --text-primary:   #2D2D2D;
    --text-secondary: #5A5A5A;
    --text-muted:     #8B8B8B;
    --border-color:   #E0D8CC;
    --border-light:   #EDE8DF;
    --shadow-sm:      0 1px 3px rgba(0,0,0,0.06);
    --shadow-md:      0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg:      0 8px 30px rgba(0,0,0,0.12);
    --shadow-glow:    0 0 20px rgba(91,135,49,0.15);

    /* Status */
    --status-online:  #49B04D;
    --status-offline: #E74C3C;
    --status-warning: #F59E0B;

    /* Spacing */
    --space-xs:  0.25rem;
    --space-sm:  0.5rem;
    --space-md:  1rem;
    --space-lg:  1.5rem;
    --space-xl:  2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50%;

    /* Fonts */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Sidebar */
    --sidebar-width: 260px;
    --sidebar-bg: #1a2332;
    --sidebar-text: #c4cdd5;
    --sidebar-accent: var(--mc-grass-light);
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: var(--mc-grass);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover {
    color: var(--mc-grass-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

/* ---- Container ---- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

/* ---- Section ---- */
.section {
    padding: var(--space-3xl) 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: var(--space-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.title-icon {
    font-size: 1.8rem;
}

/* ============================================================
   PARALLAX HERO
   ============================================================ */
.parallax-hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    will-change: transform;
}

/* Sky gradient */
.parallax-sky {
    background: linear-gradient(
        180deg,
        #87CEEB 0%,
        #B9D9FF 30%,
        #E3EFFF 60%,
        #FFF5E6 85%,
        #FFE4B5 100%
    );
}

/* Clouds - Minecraft blocky style */
.parallax-clouds {
    background: url('data:image/svg+xml,\
    <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 200">\
        <rect x="100" y="50" width="160" height="32" rx="0" fill="rgba(255,255,255,0.9)"/>\
        <rect x="120" y="34" width="120" height="16" rx="0" fill="rgba(255,255,255,0.85)"/>\
        <rect x="140" y="82" width="80" height="16" rx="0" fill="rgba(255,255,255,0.8)"/>\
        <rect x="244" y="50" width="32" height="32" rx="0" fill="rgba(255,255,255,0.85)"/>\
        <rect x="500" y="70" width="128" height="32" rx="0" fill="rgba(255,255,255,0.9)"/>\
        <rect x="520" y="54" width="96" height="16" rx="0" fill="rgba(255,255,255,0.85)"/>\
        <rect x="532" y="102" width="64" height="16" rx="0" fill="rgba(255,255,255,0.8)"/>\
        <rect x="612" y="70" width="32" height="32" rx="0" fill="rgba(255,255,255,0.85)"/>\
        <rect x="850" y="40" width="192" height="32" rx="0" fill="rgba(255,255,255,0.9)"/>\
        <rect x="866" y="24" width="144" height="16" rx="0" fill="rgba(255,255,255,0.85)"/>\
        <rect x="882" y="72" width="96" height="16" rx="0" fill="rgba(255,255,255,0.8)"/>\
        <rect x="1026" y="40" width="32" height="32" rx="0" fill="rgba(255,255,255,0.85)"/>\
    </svg>') repeat-x;
    background-size: 1200px 200px;
    background-position: center 10%;
    animation: cloudDrift 60s linear infinite;
}

@keyframes cloudDrift {
    from { background-position-x: 0; }
    to { background-position-x: 1200px; }
}

/* Mountains / Hills */
.parallax-mountains {
    background: url('data:image/svg+xml,\
    <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400" preserveAspectRatio="none">\
        <polygon points="0,400 150,180 300,280 450,120 600,250 750,160 900,220 1050,140 1200,300 1200,400" fill="%236B8E3D" opacity="0.6"/>\
        <polygon points="0,400 100,250 250,320 400,200 550,300 700,220 850,280 1000,190 1200,350 1200,400" fill="%235B8731" opacity="0.8"/>\
    </svg>') no-repeat;
    background-size: 100% 50%;
    background-position: bottom;
}

/* Trees */
.parallax-trees {
    background: url('data:image/svg+xml,\
    <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 300" preserveAspectRatio="none">\
        <rect x="0" y="200" width="1200" height="100" fill="%235B8731"/>\
        <polygon points="80,200 110,80 140,200" fill="%233E6B1E"/>\
        <rect x="103" y="200" width="14" height="30" fill="%23866526"/>\
        <polygon points="250,200 290,60 330,200" fill="%23497029"/>\
        <rect x="282" y="200" width="16" height="35" fill="%23866526"/>\
        <polygon points="450,200 480,100 510,200" fill="%233E6B1E"/>\
        <rect x="473" y="200" width="14" height="28" fill="%23866526"/>\
        <polygon points="620,200 660,50 700,200" fill="%23497029"/>\
        <rect x="652" y="200" width="16" height="35" fill="%23866526"/>\
        <polygon points="850,200 880,90 910,200" fill="%233E6B1E"/>\
        <rect x="873" y="200" width="14" height="30" fill="%23866526"/>\
        <polygon points="1020,200 1060,70 1100,200" fill="%23497029"/>\
        <rect x="1052" y="200" width="16" height="35" fill="%23866526"/>\
    </svg>') no-repeat;
    background-size: 100% 40%;
    background-position: bottom;
}

/* Ground */
.parallax-ground {
    background: linear-gradient(
        180deg,
        transparent 75%,
        #5B8731 75%,
        #5B8731 78%,
        #866526 78%,
        #866526 85%,
        #7B5B22 85%
    );
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: var(--space-xl);
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    padding: var(--space-xs) var(--space-lg);
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--mc-grass-dark);
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-md);
    animation: fadeInDown 0.8s ease;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    color: #FFFFFF;
    text-shadow: 
        3px 3px 0 var(--mc-grass-dark),
        0 0 40px rgba(0,0,0,0.3);
    margin-bottom: var(--space-md);
    animation: fadeInUp 0.8s ease 0.2s both;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.95);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    max-width: 600px;
    margin: 0 auto var(--space-lg);
    animation: fadeInUp 0.8s ease 0.4s both;
}

/* Server Status in Hero */
.server-status-hero {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-xl);
    box-shadow: var(--shadow-md);
    animation: fadeInUp 0.8s ease 0.5s both;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
}
.status-dot.online {
    background: var(--status-online);
    box-shadow: 0 0 8px var(--status-online);
    animation: pulse-green 2s infinite;
}
.status-dot.offline {
    background: var(--status-offline);
    box-shadow: 0 0 8px var(--status-offline);
}

@keyframes pulse-green {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

.status-text {
    font-size: 0.9rem;
    color: var(--text-primary);
}

/* Hero Buttons */
.hero-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s both;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
    color: rgba(255,255,255,0.8);
    font-size: 0.8rem;
    animation: fadeInUp 1s ease 1s both;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    margin: 8px auto 0;
    border-right: 2px solid rgba(255,255,255,0.8);
    border-bottom: 2px solid rgba(255,255,255,0.8);
    transform: rotate(45deg);
    animation: scrollBounce 2s ease infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: rotate(45deg) translate(0, 0); }
    50% { transform: rotate(45deg) translate(5px, 5px); }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    line-height: 1.4;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, var(--mc-grass-light), var(--mc-grass));
    color: #fff;
    box-shadow: 0 4px 15px rgba(91,135,49,0.3);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--mc-grass), var(--mc-grass-dark));
    color: #fff;
    box-shadow: 0 6px 20px rgba(91,135,49,0.4);
}

.btn-secondary {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}
.btn-secondary:hover {
    background: #fff;
    color: var(--mc-grass-dark);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
}
.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #fff;
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 0.9rem 2rem;
    font-size: 1.05rem;
}

.btn-icon {
    font-size: 1.1em;
}

/* ============================================================
   GLASS CARDS
   ============================================================ */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.glass-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--mc-grass-light);
}

/* ============================================================
   INFO GRID (Homepage)
   ============================================================ */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-lg);
}

.info-card {
    text-align: center;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.info-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.card-detail {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: var(--space-sm);
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    font-weight: 600;
}
.status-badge.online {
    background: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}
.status-badge.offline {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

/* Player Count */
.player-count {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin: var(--space-sm) 0;
}
.count-big {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--mc-grass);
}
.count-sep {
    font-size: 1.5rem;
    color: var(--text-muted);
}
.count-max {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* Player Bar */
.player-bar {
    width: 100%;
    height: 8px;
    background: var(--border-light);
    border-radius: 4px;
    overflow: hidden;
    margin-top: var(--space-sm);
}
.player-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--mc-grass-light), var(--mc-grass));
    border-radius: 4px;
    transition: width 1s ease;
}

/* Server IP */
.server-ip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin: var(--space-sm) 0;
}
.server-ip code {
    font-size: 1.1rem;
    font-weight: 600;
    background: var(--bg-primary);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    color: var(--mc-grass-dark);
}
.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: var(--space-xs);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}
.copy-btn:hover {
    background: var(--bg-primary);
    transform: scale(1.1);
}

.card-detail.copied {
    color: var(--mc-grass);
    font-weight: 600;
}

/* MOTD */
.motd-text {
    font-size: 1rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* ============================================================
   PLAYERS GRID (Homepage)
   ============================================================ */
.players-section {
    background: var(--bg-secondary);
}

.players-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: center;
}

.player-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    min-width: 180px;
}

.player-head {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    image-rendering: pixelated;
    border: 2px solid var(--border-color);
}

.player-name {
    font-weight: 600;
    font-size: 0.95rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    text-align: center;
    padding: var(--space-xl) 0;
    font-size: 0.85rem;
}
.site-footer strong {
    color: var(--mc-grass-light);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
}

.form-group small {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

.form-control {
    width: 100%;
    padding: 0.65rem 1rem;
    font-family: var(--font-main);
    font-size: 0.95rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: all 0.2s ease;
    outline: none;
}

.form-control:focus {
    border-color: var(--mc-grass-light);
    box-shadow: 0 0 0 3px rgba(124,179,66,0.15);
}

.form-control::placeholder {
    color: var(--text-muted);
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8"><path d="M1 1l5 5 5-5" stroke="%238B8B8B" stroke-width="1.5" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

/* ============================================================
   ALERTS / FLASH MESSAGES
   ============================================================ */
.alert {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    animation: fadeInDown 0.4s ease;
}

.alert-success {
    background: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.alert-error {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

.alert-warning {
    background: #FFFBEB;
    color: #92400E;
    border: 1px solid #FDE68A;
}

.alert-info {
    background: #EFF6FF;
    color: #1E40AF;
    border: 1px solid #BFDBFE;
}

/* ============================================================
   INSTALL WIZARD
   ============================================================ */
.install-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--mc-sky-pale) 0%, var(--bg-primary) 50%, #f0e6d3 100%);
    padding: var(--space-xl);
}

.install-container {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    max-width: 640px;
    width: 100%;
    overflow: hidden;
}

.install-header {
    background: linear-gradient(135deg, var(--mc-grass), var(--mc-grass-dark));
    color: #fff;
    padding: var(--space-xl) var(--space-2xl);
    text-align: center;
}

.install-header h1 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: var(--space-xs);
}

.install-header p {
    opacity: 0.9;
    font-size: 0.9rem;
}

/* Steps Indicator */
.install-steps {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-lg) var(--space-2xl) 0;
}

.step-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.step-item.active {
    color: var(--mc-grass);
    font-weight: 700;
}

.step-item.done {
    color: var(--mc-grass-dark);
}

.step-number {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    border: 2px solid var(--border-color);
    background: var(--bg-secondary);
}

.step-item.active .step-number {
    background: var(--mc-grass);
    color: #fff;
    border-color: var(--mc-grass);
}

.step-item.done .step-number {
    background: var(--mc-grass-dark);
    color: #fff;
    border-color: var(--mc-grass-dark);
}

.step-separator {
    width: 30px;
    height: 2px;
    background: var(--border-color);
    align-self: center;
}

.install-body {
    padding: var(--space-xl) var(--space-2xl) var(--space-2xl);
}

.install-body h2 {
    font-size: 1.3rem;
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.install-body p.lead {
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    font-size: 0.95rem;
}

/* Test Connection Button */
.test-connection {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    font-size: 0.85rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font-main);
    font-weight: 500;
    transition: all 0.2s;
    margin-bottom: var(--space-lg);
}
.test-connection:hover {
    border-color: var(--mc-grass);
    color: var(--mc-grass);
}

.test-result {
    font-size: 0.85rem;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-md);
    display: none;
}
.test-result.success {
    display: block;
    background: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}
.test-result.error {
    display: block;
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--mc-sky-pale) 0%, var(--bg-primary) 100%);
    padding: var(--space-xl);
}

.login-container {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    max-width: 440px;
    width: 100%;
    overflow: hidden;
}

.login-header {
    background: linear-gradient(135deg, var(--mc-grass), var(--mc-grass-dark));
    color: #fff;
    padding: var(--space-2xl);
    text-align: center;
}

.login-header h1 {
    color: #fff;
    font-size: 1.6rem;
    margin-bottom: var(--space-xs);
}

.login-body {
    padding: var(--space-2xl);
}

.login-footer {
    text-align: center;
    padding: 0 var(--space-2xl) var(--space-2xl);
}

.login-footer a {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================================
   ADMIN LAYOUT
   ============================================================ */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.sidebar-brand {
    padding: var(--space-xl);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--mc-grass-light), var(--mc-grass));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.sidebar-brand-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.sidebar-nav {
    padding: var(--space-md);
    flex: 1;
}

.nav-section {
    margin-bottom: var(--space-lg);
}

.nav-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.3);
    padding: 0 var(--space-md);
    margin-bottom: var(--space-sm);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 0.6rem var(--space-md);
    border-radius: var(--radius-md);
    color: var(--sidebar-text);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
    margin-bottom: 2px;
}

.nav-link:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.nav-link.active {
    background: rgba(124,179,66,0.15);
    color: var(--sidebar-accent);
}

.nav-link-icon {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: var(--space-lg);
    border-top: 1px solid rgba(255,255,255,0.08);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    cursor: default;
}

.sidebar-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--mc-grass);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.sidebar-user-info {
    flex: 1;
    min-width: 0;
}

.sidebar-user-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Admin Content Area */
.admin-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: var(--space-2xl);
    background: var(--bg-primary);
    min-height: 100vh;
}

/* Top Bar */
.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-2xl);
}

.admin-topbar h1 {
    font-size: 1.6rem;
    font-weight: 800;
}

.topbar-actions {
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

/* ============================================================
   DASHBOARD
   ============================================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.stat-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: flex-start;
    gap: var(--space-lg);
    transition: all 0.3s ease;
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-icon.green  { background: #ECFDF5; }
.stat-icon.blue   { background: #EFF6FF; }
.stat-icon.gold   { background: #FFFBEB; }
.stat-icon.purple { background: #F5F3FF; }

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: var(--space-xs);
}

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

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-lg);
}

.dashboard-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.dashboard-card-header {
    padding: var(--space-lg) var(--space-xl);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dashboard-card-header h3 {
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.dashboard-card-body {
    padding: var(--space-xl);
}

/* Chart container */
.chart-container {
    position: relative;
    width: 100%;
    height: 250px;
}

/* Online Players List */
.online-player-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border-light);
}
.online-player-item:last-child {
    border-bottom: none;
}

.online-player-item img {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    image-rendering: pixelated;
}

.online-player-item span {
    font-weight: 500;
    font-size: 0.9rem;
}

/* ============================================================
   DATA TABLES
   ============================================================ */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead th {
    text-align: left;
    padding: var(--space-md) var(--space-lg);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border-light);
    background: var(--bg-primary);
}

.data-table tbody td {
    padding: var(--space-md) var(--space-lg);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.data-table tbody tr:hover {
    background: rgba(124,179,66,0.04);
}

.data-table .player-cell {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.data-table .player-cell img {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    image-rendering: pixelated;
}

/* Pagination */
.pagination {
    display: flex;
    gap: var(--space-xs);
    justify-content: center;
    margin-top: var(--space-xl);
}

.pagination a, .pagination span {
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
}

.pagination a:hover {
    border-color: var(--mc-grass);
    color: var(--mc-grass);
}

.pagination .active {
    background: var(--mc-grass);
    color: #fff;
    border-color: var(--mc-grass);
}

/* ============================================================
   PLAYER PROFILE
   ============================================================ */
.profile-header {
    display: flex;
    gap: var(--space-2xl);
    align-items: flex-start;
    margin-bottom: var(--space-2xl);
}

.profile-skin {
    flex-shrink: 0;
}

.profile-skin img {
    width: 128px;
    image-rendering: pixelated;
    border-radius: var(--radius-lg);
    border: 3px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.profile-info h2 {
    font-size: 1.8rem;
    margin-bottom: var(--space-xs);
}

.profile-uuid {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: monospace;
    margin-bottom: var(--space-md);
}

.profile-meta {
    display: flex;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.meta-item {
    font-size: 0.85rem;
}
.meta-item strong {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.profile-actions {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

/* Profile stats grid */
.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
}

/* ============================================================
   RCON CONSOLE
   ============================================================ */
.console-container {
    background: #1a1a2e;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid #2d2d44;
}

.console-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: #12121f;
    border-bottom: 1px solid #2d2d44;
}

.console-dot {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
}
.console-dot.red { background: #ff5f57; }
.console-dot.yellow { background: #febc2e; }
.console-dot.green { background: #28c840; }

.console-title {
    margin-left: var(--space-md);
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 500;
}

.console-output {
    height: 400px;
    overflow-y: auto;
    padding: var(--space-lg);
    font-family: 'Fira Code', 'Cascadia Code', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #e5e7eb;
}

.console-output .cmd-line {
    color: var(--mc-xp);
}

.console-output .response-line {
    color: #9ca3af;
}

.console-output .error-line {
    color: #ef4444;
}

.console-input-wrap {
    display: flex;
    border-top: 1px solid #2d2d44;
    background: #12121f;
}

.console-prompt {
    padding: var(--space-md) var(--space-lg);
    color: var(--mc-xp);
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    user-select: none;
}

.console-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #e5e7eb;
    font-family: 'Fira Code', 'Cascadia Code', monospace;
    font-size: 0.85rem;
    padding: var(--space-md);
    outline: none;
}

.console-input::placeholder {
    color: #4b5563;
}

/* ============================================================
   SEARCH / FILTERS
   ============================================================ */
.search-bar {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.search-input-wrap {
    flex: 1;
    position: relative;
}

.search-input-wrap .search-icon {
    position: absolute;
    left: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: var(--text-muted);
}

.search-input-wrap input {
    padding-left: 2.5rem;
}

/* ============================================================
   SETTINGS PAGE
   ============================================================ */
.settings-section {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    margin-bottom: var(--space-lg);
    overflow: hidden;
}

.settings-section-header {
    padding: var(--space-lg) var(--space-xl);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.settings-section-header h3 {
    font-size: 1rem;
    font-weight: 700;
}

.settings-section-body {
    padding: var(--space-xl);
}

/* ============================================================
   BADGES / TAGS
   ============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: var(--radius-xl);
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-admin {
    background: #FEF3C7;
    color: #92400E;
}

.badge-moderator {
    background: #E0E7FF;
    color: #3730A3;
}

.badge-viewer {
    background: #F3F4F6;
    color: #6B7280;
}

.badge-online {
    background: #ECFDF5;
    color: #065F46;
}

.badge-offline {
    background: #F3F4F6;
    color: #6B7280;
}

.badge-banned {
    background: #FEF2F2;
    color: #991B1B;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
    text-align: center;
    padding: var(--space-3xl) var(--space-xl);
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.empty-state p {
    font-size: 0.9rem;
    max-width: 400px;
    margin: 0 auto;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }
    .admin-sidebar.open {
        transform: translateX(0);
    }
    .admin-content {
        margin-left: 0;
        padding: var(--space-lg);
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .profile-meta {
        justify-content: center;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .info-grid {
        grid-template-columns: 1fr;
    }
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--status-online); }
.text-danger { color: var(--status-offline); }
.text-warning { color: var(--status-warning); }
.mt-1 { margin-top: var(--space-md); }
.mt-2 { margin-top: var(--space-xl); }
.mb-1 { margin-bottom: var(--space-md); }
.mb-2 { margin-bottom: var(--space-xl); }
.d-flex { display: flex; }
.gap-1 { gap: var(--space-md); }
.gap-2 { gap: var(--space-xl); }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-100 { width: 100%; }
