
:root {
    --primary: #0284c7;
    --primary-dark: #0f172a;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: system-ui, -apple-system, sans-serif; }
body { background: var(--bg); color: var(--text); min-height: 100vh; display: flex; flex-direction: column; }

header {
    background: var(--primary-dark);
    color: #fff;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--primary);
}

.logo { font-size: 1.2rem; font-weight: 800; color: #38bdf8; text-decoration: none; }

/* Menu Dropdown Standard */
.dropdown { position: relative; display: inline-block; }
.dropbtn { background: #334155; color: white; padding: 8px 16px; font-size: 0.9rem; border: none; border-radius: 6px; cursor: pointer; font-weight: 600; }
.dropdown-content { display: none; position: absolute; right: 0; background-color: #ffffff; min-width: 200px; box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); z-index: 10; border-radius: 6px; overflow: hidden; }
.dropdown-content a { color: var(--text); padding: 12px 16px; text-decoration: none; display: block; font-size: 0.85rem; font-weight: 600; }
.dropdown-content a:hover { background-color: #f1f5f9; color: var(--primary); }
.dropdown:hover .dropdown-content { display: block; }
.dropdown:hover .dropbtn { background: #475569; }

main { flex: 1; max-width: 1200px; width: 100%; margin: 2rem auto; padding: 0 1rem; }

.card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; margin-bottom: 1.5rem; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.btn { display: inline-block; padding: 8px 16px; border-radius: 6px; font-weight: 700; text-decoration: none; border: none; cursor: pointer; font-size: 0.85rem; transition: background 0.2s; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: #0369a1; }
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-warning { background: var(--warning); color: #000; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 15px; margin-bottom: 1.5rem; }
.stat-card { background: #fff; padding: 1.2rem; border-radius: 8px; border: 1px solid var(--border); border-left: 4px solid var(--primary); }
.stat-card h3 { font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; margin-bottom: 0.5rem; }
.stat-card .number { font-size: 1.8rem; font-weight: 800; color: var(--primary-dark); }

table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: 0.85rem; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); }
th { background: #f1f5f9; color: #475569; font-weight: 700; }

input, select { width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: 6px; margin-top: 5px; margin-bottom: 15px; font-size: 0.9rem; }
label { font-size: 0.85rem; font-weight: 700; color: #475569; }

footer { background: var(--primary-dark); color: var(--text-muted); text-align: center; padding: 1.5rem; font-size: 0.85rem; border-top: 1px solid #334155; margin-top: auto; }
footer span { color: #38bdf8; font-weight: bold; }
