/* --- Master Design System | J&J Bot Dashboard --- */

:root {
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.3);
    --bg-dark: #0f172a;
    --sidebar-bg: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --danger: #ef4444;
    --success: #22c55e;
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text-main);
    margin: 0;
    display: flex;
    min-height: 100vh;
}

/* Main Layout Area */
.main-content {
    flex-grow: 1;
    padding: 3rem;
    max-height: 100vh;
    overflow-y: auto;
    width: 100%;
}

/* Titles & Subtitles */
h1 { font-size: 2rem; margin: 0 0 0.5rem 0; font-weight: 700; }
.subtitle { color: var(--text-dim); margin-bottom: 2rem; }

/* Cards & Containers */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s;
}

.stat-card:hover { transform: translateY(-5px); }
.stat-card h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-dim); margin: 0; }
.stat-card .value { font-size: 2.25rem; font-weight: 800; margin-top: 0.5rem; color: var(--primary); }

/* Forms */
.form-group { margin-bottom: 2rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.75rem; color: #f1f5f9; }
input, select, textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    color: white;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.2s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.help-text { font-size: 0.85rem; color: var(--text-dim); margin-top: 8px; line-height: 1.4; }

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
    border: none;
    font-size: 1rem;
}

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: #4f46e5; transform: translateY(-2px); }

/* Tables */
table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 12px; color: var(--text-dim); border-bottom: 1px solid var(--glass-border); font-size: 0.85rem; text-transform: uppercase; }
td { padding: 16px 12px; border-bottom: 1px solid rgba(255,255,255,0.05); }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); }
