/* ========================================
   DEVLOUNGE CONTROL — DESIGN SYSTEM
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
    --bg-primary: #050510;
    --bg-secondary: #0d0d20;
    --bg-tertiary: #161632;
    --bg-glass: rgba(255, 255, 255, 0.03);
    --bg-glass-strong: rgba(255, 255, 255, 0.06);

    --accent-primary: #f82a5e;
    /* Admin Pink */
    --accent-secondary: #ff9d00;
    --accent-cyan: #00e5ff;

    --text-primary: #ffffff;
    --text-secondary: #a0a0c0;
    --text-muted: #606080;

    --border-glass: 1px solid rgba(255, 255, 255, 0.1);
    --radius-md: 12px;
    --radius-lg: 16px;
    --font-sans: 'Inter', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    min-height: 100vh;
    overflow-x: hidden;
}

.bg-animated {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 0% 0%, #1a0b2e 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, #0d1a2e 0%, transparent 50%);
    z-index: -1;
}

.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    font-size: 2rem;
}

h1 {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    border: var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.view {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

.view.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Auth */
.central-card {
    max-width: 400px;
    margin: 100px auto;
    text-align: center;
}

.central-card h3 {
    margin-bottom: 12px;
}

.central-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

/* Forms */
.form-group {
    margin-bottom: 16px;
    text-align: left;
}

.input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.input:focus {
    border-color: var(--accent-primary);
}

.btn {
    padding: 12px 24px;
    border-radius: var(--radius-md);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), #ff4d7a);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(248, 42, 94, 0.4);
}

/* Dashboard Grid */
.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.subtitle {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin: -4px 0 20px 0;
}

.settings-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: var(--bg-glass-strong);
    border-radius: var(--radius-md);
}

.setting-item label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.setting-item input {
    width: 80px;
    text-align: center;
    padding: 6px;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.stat-card {
    padding: 20px;
    background: var(--bg-glass-strong);
    border-radius: var(--radius-md);
    text-align: center;
}

.stat-card .label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.stat-card .value {
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--accent-cyan);
}

/* Table */
.table-container {
    overflow-x: auto;
    margin-top: 20px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    padding: 12px;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.data-table td {
    padding: 16px 12px;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    background: var(--bg-tertiary);
}

/* User chip */
.user-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-glass);
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.85rem;
}

.avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.7rem;
}

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
}

.toast {
    background: var(--bg-secondary);
    border-left: 4px solid var(--accent-primary);
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 0.85rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}