:root {
    --bg-color: #f8fafd;
    --surface: #ffffff;
    --primary: #0b57d0;
    --primary-hover: #0842a0;
    --text-main: #1f1f1f;
    --text-muted: #444746;
    --border: #c7c7c7;
    --border-light: #e0e2e0;
    --danger: #b3261e;
    --success: #146c2e;
    --warning: #f29900;
    --radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; background-color: var(--bg-color); color: var(--text-main); line-height: 1.5; }
.hidden { display: none !important; }

/* --- Értesítések --- */
.toast { position: fixed; top: 20px; right: 20px; padding: 12px 24px; background: var(--text-main); color: white; border-radius: 8px; box-shadow: var(--shadow); z-index: 9999; transition: opacity 0.3s; }
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }

/* --- Layout Utils --- */
.mt-2 { margin-top: 12px; }
.mt-4 { margin-top: 24px; }
.mb-0 { margin-bottom: 0 !important; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); font-size: 0.9rem; }
.text-success { color: var(--success); font-weight: 500; }
.text-danger { color: var(--danger); font-weight: 500; }
.flex-between { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }

.grid-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3-col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.align-end { align-items: flex-end; }
@media (max-width: 900px) { 
    .grid-2-col, .grid-3-col { grid-template-columns: 1fr; } 
}

.divider { border: 0; height: 1px; background: var(--border-light); margin: 40px 0; }
.border-dashed { border: 2px dashed var(--border-light) !important; background: transparent !important; box-shadow: none !important; }

/* --- Gombok és Formok --- */
.btn { display: inline-block; padding: 10px 20px; border: none; border-radius: 20px; font-size: 0.9rem; font-weight: 500; cursor: pointer; transition: background 0.2s; width: 100%; text-align: center;}
.btn-primary { background-color: var(--primary); color: white; }
.btn-primary:hover { background-color: var(--primary-hover); }
.btn-success { background-color: var(--success); color: white; }
.btn-success:hover { background-color: #0f5123; }
.btn-text { background: transparent; color: var(--text-muted); }
.btn-text:hover { background: #f1f3f4; color: var(--text-main); }
.btn-sm { padding: 6px 12px; font-size: 0.8rem; width: auto; }

.input-group { margin-bottom: 20px; text-align: left; }
.input-group label { display: block; font-size: 0.85rem; font-weight: 500; color: var(--text-muted); margin-bottom: 6px; }
.input-group input, .form-select { width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: 8px; font-size: 1rem; outline: none; transition: border-color 0.2s; background: var(--surface); color: var(--text-main); }
.input-group input:focus, .form-select:focus { border-color: var(--primary); }

/* --- Haladásjelző (Progress Bar) --- */
.progress-container { width: 100%; background-color: var(--border-light); border-radius: 8px; overflow: hidden; height: 8px; margin: 12px 0; }
.progress-bar { height: 100%; background-color: var(--primary); transition: width 0.4s ease; }
.progress-bar.success { background-color: var(--success); }
.progress-bar.warning { background-color: var(--warning); }

/* --- Auth Nézet --- */
#auth-view { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.auth-card { background: var(--surface); padding: 40px; border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; max-width: 400px; text-align: center; }
.brand-title { font-size: 1.5rem; color: var(--primary); margin-bottom: 30px; }
.auth-card h2 { font-size: 1.25rem; margin-bottom: 8px; }
.subtitle { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 24px; }

/* --- Dashboard Elrendezés --- */
.layout-dashboard { display: flex; height: 100vh; overflow: hidden; }
.sidebar { width: 260px; background: var(--surface); border-right: 1px solid var(--border-light); display: flex; flex-direction: column; }
.sidebar-brand { padding: 24px; font-size: 1.25rem; color: var(--primary); font-weight: 600; }
.sidebar-nav { flex-grow: 1; padding: 0 12px; }
.sidebar-nav a { display: block; padding: 12px 16px; color: var(--text-main); text-decoration: none; border-radius: 8px; margin-bottom: 4px; font-weight: 500; }
.sidebar-nav a:hover { background: #f1f3f4; }
.sidebar-nav a.active { background: #e8f0fe; color: var(--primary); }
.sidebar-footer { padding: 24px; border-top: 1px solid var(--border-light); }
.content { flex-grow: 1; display: flex; flex-direction: column; background: var(--bg-color); overflow: hidden; }
.content-header { height: 70px; background: var(--surface); border-bottom: 1px solid var(--border-light); display: flex; align-items: center; justify-content: space-between; padding: 0 40px; flex-shrink: 0; }
.content-header h2 { font-size: 1.25rem; font-weight: 400; }
.user-profile { font-size: 0.9rem; color: var(--text-muted); }
.content-body { padding: 40px; overflow-y: auto; flex-grow: 1; }

/* --- Kártyák és Táblázatok --- */
.card { background: var(--surface); border-radius: var(--radius); padding: 24px; border: 1px solid var(--border-light); }
.card h3 { margin-bottom: 16px; font-weight: 500; font-size: 1.1rem; }
.card h4 { margin-bottom: 12px; font-weight: 500; font-size: 1rem; color: var(--primary); }

.table-container { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { text-align: left; padding: 12px; border-bottom: 2px solid var(--border-light); color: var(--text-muted); font-weight: 500; font-size: 0.85rem; text-transform: uppercase; }
.data-table td { padding: 16px 12px; border-bottom: 1px solid var(--border-light); font-size: 0.95rem; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background-color: #fcfcfc; }

/* --- Dashboard Kártyák (Áttekintés) --- */
.mb-4 { margin-bottom: 24px; }
.text-primary { color: var(--primary); font-weight: 600; }

.stat-card {
    text-align: center;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    display: block;
    margin-bottom: 12px;
}

.stat-card h2 {
    font-size: 2.2rem;
    font-weight: 600;
    margin: 0;
}

.border-left-success { border-left: 4px solid var(--success) !important; }
.border-left-danger { border-left: 4px solid var(--danger) !important; }
.border-left-primary { border-left: 4px solid var(--primary) !important; }