/* ============================================================
   FoxxGuard Web Panel – public/style.css
   Modern Glassmorphism & Cyberpunk Neon Theme
   ============================================================ */

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

:root {
    --bg-main: #060913;
    --bg-card: rgba(13, 20, 38, 0.45);
    --border-card: rgba(255, 255, 255, 0.08);
    --neon-blue: #00f2fe;
    --neon-purple: #4facfe;
    --text-primary: #f1f5f9;
    --text-muted: #94a3b8;
    --accent-red: #ff3366;
    --accent-green: #00ff87;
    --font-sans: 'Outfit', sans-serif;
    --glow: 0 0 20px rgba(0, 242, 254, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-main);
    background-image: radial-gradient(circle at 10% 20%, rgba(79, 172, 254, 0.08) 0%, transparent 45%),
                      radial-gradient(circle at 90% 80%, rgba(0, 242, 254, 0.08) 0%, transparent 45%);
    color: var(--text-primary);
    font-family: var(--font-sans);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Glassmorphism containers */
.glass-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-panel:hover {
    border-color: rgba(0, 242, 254, 0.2);
    box-shadow: 0 12px 40px 0 rgba(0, 242, 254, 0.05);
}

/* Auth Pages (Login & Register) */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    padding: 24px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    padding: 40px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--neon-purple) 0%, var(--neon-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.form-input {
    background: rgba(6, 9, 19, 0.6);
    border: 1px solid var(--border-card);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: var(--glow);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--neon-purple) 0%, var(--neon-blue) 100%);
    border: none;
    border-radius: 8px;
    padding: 14px 20px;
    color: #fff;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.45);
}

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

.btn-danger {
    background: rgba(255, 51, 102, 0.15);
    border: 1px solid var(--accent-red);
    border-radius: 8px;
    padding: 10px 16px;
    color: var(--accent-red);
    font-family: var(--font-sans);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: var(--accent-red);
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 51, 102, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-card);
    border-radius: 8px;
    padding: 10px 16px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* Alert Boxes */
.alert-box {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.alert-danger {
    background: rgba(255, 51, 102, 0.1);
    border: 1px solid rgba(255, 51, 102, 0.3);
    color: #ff668f;
}

.alert-success {
    background: rgba(0, 255, 135, 0.1);
    border: 1px solid rgba(0, 255, 135, 0.3);
    color: #66ffaf;
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--neon-blue);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Dashboard Layout */
.dashboard-container {
    display: flex;
    flex-grow: 1;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: rgba(6, 9, 19, 0.8);
    border-right: 1px solid var(--border-card);
    display: flex;
    flex-direction: column;
    padding: 30px 20px;
    flex-shrink: 0;
}

.sidebar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, var(--neon-purple) 0%, var(--neon-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 40px;
    text-align: center;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.nav-item:hover, .nav-item.active {
    color: var(--text-primary);
    background: rgba(79, 172, 254, 0.1);
    border-left: 3px solid var(--neon-blue);
}

.sidebar-footer {
    border-top: 1px solid var(--border-card);
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.user-info {
    font-size: 0.9rem;
}

.user-info .username {
    font-weight: 700;
}

.user-info .role {
    font-size: 0.75rem;
    color: var(--neon-blue);
    text-transform: uppercase;
    font-weight: 700;
}

/* Main Dashboard Area */
.main-content {
    flex-grow: 1;
    padding: 40px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-title h2 {
    font-size: 1.8rem;
    font-weight: 800;
}

.header-title p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Server Selector Dropdown */
.server-selector-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.server-select {
    background: rgba(13, 20, 38, 0.6);
    border: 1px solid var(--border-card);
    color: var(--text-primary);
    padding: 10px 20px;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    outline: none;
    cursor: pointer;
}

.server-select:focus {
    border-color: var(--neon-blue);
}

/* Stats Cards Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.stat-card {
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-val {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    margin-top: 8px;
}

.stat-val.online { color: var(--neon-blue); }
.stat-val.bans { color: var(--accent-red); }
.stat-val.alerts { color: #f59e0b; }

.stat-card h3 {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Section Grid */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
}

/* Tables */
.table-wrapper {
    overflow-x: auto;
    margin-top: 15px;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th, td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-card);
    font-size: 0.9rem;
}

th {
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-badge.danger {
    background: rgba(255, 51, 102, 0.15);
    color: var(--accent-red);
}

.status-badge.success {
    background: rgba(0, 255, 135, 0.15);
    color: var(--accent-green);
}

/* Modal and Forms */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 9, 19, 0.75);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    width: 100%;
    max-width: 500px;
    padding: 30px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
}

.modal-close {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-close:hover {
    color: var(--text-primary);
}

/* Tab Panels */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Settings elements */
.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }
}
