* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    background: #f5f7fb;
    color: #222;
}

.layout {
    display: flex;
    height: 100vh;
}

/* =========================
   Sidebar
========================= */

#sidebar {
    width: 240px;
    background: #1f2937;
    color: white;
    display: flex;
    flex-direction: column;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    padding: 24px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

#sidebar nav {
    display: flex;
    flex-direction: column;
    padding: 12px;
}

#sidebar button {
    background: transparent;
    border: none;
    color: #d1d5db;
    text-align: left;
    padding: 14px 16px;
    margin-bottom: 6px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    transition: .2s;
}

#sidebar button:hover {
    background: #374151;
    color: white;
}

/* =========================
   Main Content
========================= */

.content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* =========================
   Header
========================= */

header {
    height: 70px;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    border-bottom: 1px solid #e5e7eb;
}

header input {
    width: 320px;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    font-size: 14px;
}

header input:focus {
    border-color: #2563eb;
}

/* =========================
   Main
========================= */

main {
    flex: 1;
    padding: 30px;
    overflow: auto;
}

/* =========================
   Dashboard Cards
========================= */

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
    gap: 20px;
    margin-top: 25px;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

.card h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.card p {
    color: #6b7280;
}

/* =========================
   Tables
========================= */

table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

th {
    background: #f3f4f6;
    text-align: left;
    padding: 14px;
    font-weight: 600;
}

td {
    padding: 14px;
    border-top: 1px solid #eee;
}

tr:hover {
    background: #f9fafb;
}

/* =========================
   Buttons
========================= */

button {
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    cursor: pointer;
    font-size: 14px;
    transition: .2s;
}

button:hover {
    background: #1d4ed8;
}

/* =========================
   Headings
========================= */

h1 {
    margin-bottom: 20px;
}