@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap');

:root {
    --bg: #050507; /* Darker black for contrast */
    --card-bg: rgba(20, 20, 25, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    
    /* Brand Colors */
    --primary: #5865F2;
    --primary-glow: rgba(88, 101, 242, 0.5);
    
    --danger: #ed4245;
    --danger-glow: rgba(237, 66, 69, 0.5);
    
    --success: #2ecc71; /* Brighter Green */
    --success-glow: rgba(46, 204, 113, 0.5);
    
    --text: #ffffff;
    --text-mute: #a1a1aa;
}

* { box-sizing: border-box; }

/* Prevent flashing content */
body {
    opacity: 1; /* Default state */
    transition: opacity 0.5s ease;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    /* Subtle grid pattern */
    background-image: 
        radial-gradient(at 0% 0%, rgba(88, 101, 242, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(237, 66, 69, 0.1) 0px, transparent 50%),
        radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 30px 30px;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- NAVBAR --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(5, 5, 7, 0.8); /* More transparency */
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.server-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
    text-shadow: 0 0 20px rgba(255,255,255,0.2);
}

.server-logo {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.1);
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

/* --- BUTTONS (THE GLOW) --- */
.btn {
    background: var(--primary);
    color: white;
    padding: 12px 28px;
    border-radius: 12px; /* Softer corners */
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* The Glow Magic */
    box-shadow: 0 0 0 rgba(0,0,0,0), 0 0 0 rgba(0,0,0,0), inset 0 1px 0 rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}

/* Primary Button Hover */
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -10px var(--primary-glow);
    filter: brightness(1.1);
}

/* Danger Button (Red Glow) */
.btn-danger {
    background: var(--danger);
}
.btn-danger:hover {
    box-shadow: 0 10px 30px -10px var(--danger-glow);
}

/* Outline Button (Subtle) */
.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-mute);
}
.btn-outline:hover {
    border-color: var(--text);
    color: var(--text);
    background: rgba(255,255,255,0.05);
    box-shadow: 0 5px 20px -5px rgba(255,255,255,0.1);
}

/* --- LAYOUT --- */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 2rem;
    width: 100%;
    flex: 1;
    animation: fadeIn 0.6s ease-out;
}

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

/* --- CARDS --- */
.card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px; /* Modern rounded look */
    padding: 2.5rem;
    margin-bottom: 24px;
    backdrop-filter: blur(20px); /* Heavy blur */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* --- FORMS & INPUTS --- */
input, textarea {
    width: 100%;
    padding: 16px;
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    margin-top: 8px;
    transition: all 0.2s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0,0,0,0.6);
    box-shadow: 0 0 0 4px rgba(88, 101, 242, 0.15);
}

/* --- HERO --- */
.hero { text-align: center; padding: 6rem 0; }
.hero h1 { 
    font-size: 3.5rem; 
    margin-bottom: 1rem; 
    font-weight: 800;
    /* Text Gradient */
    background: linear-gradient(to bottom right, #ffffff, #a1a1aa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.hero p {
    font-size: 1.2rem;
    color: var(--text-mute);
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
    line-height: 1.6;
}

/* --- TABLES --- */
table { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 1rem; }
th { 
    text-align: left; 
    color: var(--text-mute); 
    padding: 16px; 
    border-bottom: 1px solid var(--glass-border);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
td { padding: 16px; border-bottom: 1px solid var(--glass-border); color: #eee; }
tr:last-child td { border-bottom: none; }

/* Badges */
.badge { 
    padding: 6px 10px; 
    border-radius: 6px; 
    font-size: 0.75rem; 
    font-weight: 700; 
    letter-spacing: 0.05em;
}
.bg-ban { background: rgba(237, 66, 69, 0.15); color: #ff5f62; border: 1px solid rgba(237, 66, 69, 0.2); }
.bg-kick { background: rgba(240, 178, 50, 0.15); color: #ffcd4d; border: 1px solid rgba(240, 178, 50, 0.2); }

/* Mobile Responsive */
@media (max-width: 600px) {
    .hero h1 { font-size: 2.5rem; }
    .container { padding: 1.5rem; }
    .card { padding: 1.5rem; }
}

/* --- CURSOR GLOW EFFECT --- */
#cursor-glow {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(88, 101, 242, 0.08), transparent 60%);
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%); /* Centers the glow on the mouse */
    pointer-events: none; /* Lets clicks pass through */
    z-index: -1; /* Behind the content */
    transition: opacity 0.3s ease, transform 0.1s ease-out;
    opacity: 1;
    mix-blend-mode: screen; /* Blends nicely with dark bg */
}

/* When hiding */
#cursor-glow.hidden {
    opacity: 0;
}

/* --- BACKGROUND FLOATING EMOJIS --- */
.floating-emoji {
    position: fixed;
    bottom: -150px; /* Start below screen */
    z-index: -5; /* Way behind everything */
    pointer-events: none;
    opacity: 0.6; /* Subtle visibility */
    animation: floatUp linear infinite;
    filter: drop-shadow(0 0 10px rgba(88, 101, 242, 0.2)); /* Slight glow */
}

@keyframes floatUp {
    0% {
        transform: translateY(0) rotate(0deg) scale(0.8);
        opacity: 0;
    }
    10% {
        opacity: 0.15; /* Fade in */
    }
    90% {
        opacity: 0.15; /* Stay visible */
    }
    100% {
        transform: translateY(-120vh) rotate(360deg) scale(1); /* Move way up */
        opacity: 0;
    }
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    
    /* 1. Layout Adjustments */
    .container {
        padding: 1.5rem 1rem; /* Less padding on sides */
    }
    
    .navbar {
        padding: 1rem;
    }
    
    .hero h1 {
        font-size: 2.2rem; /* Smaller title so it doesn't wrap ugly */
    }
    
    .hero p {
        font-size: 1rem;
    }

    /* 2. Fix Broken Tables */
    /* This forces the table to scroll internally */
    .card {
        padding: 1.5rem;
        overflow-x: auto; /* Adds scrollbar if content is too wide */
    }
    
    table {
        min-width: 600px; /* Force table to keep its shape, user scrolls to see it */
    }

    /* 3. Stack Buttons */
    .hero div {
        flex-direction: column;
        width: 100%;
    }
    
    .btn, .btn-outline {
        width: 100%; /* Full width buttons on phone */
        justify-content: center;
        text-align: center;
    }

    /* 4. Disable Desktop Effects (Performance/UX) */
    #cursor-glow {
        display: none !important; /* No mouse glow on touch screens */
    }
    
    .floating-emoji {
        opacity: 0.1; /* Dim background emojis so text is readable */
    }
}