/* ═══════════════════════════════════════════
   LampLogs v1.1.0 - Bulletproof Premium Reset
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --bg-main: #06080f;
    --bg-sidebar: #0b0d17;
    --bg-card: #121524;
    --bg-card-hover: #171b2e;
    --bg-input: #1b1f33;
    --accent: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.4);
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --text-muted: #64748b;
    --border: rgba(255, 255, 255, 0.05);
    --sidebar-width: 260px;
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main) !important;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ═══════ Grid Layout ═══════ */
.app-container {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    min-height: 100vh;
}

/* ═══════ Sidebar ═══════ */
.sidebar {
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 1000;
}

.sidebar-brand {
    padding: 32px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 32px;
    height: 32px;
    background: var(--accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px var(--accent-glow);
    flex-shrink: 0;
}

.sidebar-nav {
    flex: 1;
    padding: 10px 16px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-dim);
    text-decoration: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    transition: all 0.2s;
}

.sidebar-link:hover {
    background: var(--bg-card-hover);
    color: #fff;
}

.sidebar-link.active {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.sidebar-link svg {
    width: 18px;
    height: 18px;
    opacity: 0.7;
}

/* ═══════ Main Content ═══════ */
.main-content {
    padding: 40px;
    width: 100%;
    min-width: 0;
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.stat-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.1), transparent);
}

.stat-card .label {
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 700;
}

.stat-card .value {
    font-size: 30px;
    font-weight: 800;
    color: #fff;
}

.grid-2 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    min-width: 0;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ═══════ Tables ═══════ */
.table-area {
    width: 100%;
    border-collapse: collapse;
}

.table-area th {
    text-align: left;
    padding: 12px 16px;
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
}

.table-area td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 14px;
}

.table-area tr:hover td {
    background: var(--bg-card-hover);
    color: #fff;
}

.player-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.player-head {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    image-rendering: pixelated;
}

/* ═══════ Form elements ═══════ */
.btn {
    padding: 10px 18px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-input);
    color: var(--text-main);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
}

.btn-accent {
    background: var(--accent);
    color: #fff;
    border: none;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

@media (max-width: 1200px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .app-container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }
}