* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    background: #0f172a;
    color: #111827;
}

.topbar {
    background: linear-gradient(135deg, #111827, #1e293b);
    color: white;
    padding: 22px 36px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.logo {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: .5px;
}

.nav {
    background: #020617;
    padding: 12px 36px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.nav a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 10px;
    transition: .2s;
}

.nav a:hover {
    background: #1e293b;
    color: white;
}

.container {
    max-width: 1200px;
    margin: 28px auto;
    background: #ffffff;
    padding: 28px;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0,0,0,.25);
}

h2 {
    margin-top: 0;
    font-size: 28px;
    color: #0f172a;
}

h3 {
    color: #1e293b;
    margin-top: 28px;
}

.muted {
    color: #64748b;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
}

.card {
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    padding: 22px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 20px rgba(15,23,42,.06);
}

.block {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 12px;
}

label {
    display: block;
    font-weight: 700;
    color: #334155;
    margin-top: 12px;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 14px;
    margin: 6px 0 14px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-size: 15px;
    background: #ffffff;
    outline: none;
    transition: .2s;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 4px rgba(220,38,38,.12);
}

textarea {
    min-height: 90px;
    resize: vertical;
}

button,
.btn {
    background: #dc2626;
    color: white;
    border: none;
    padding: 11px 16px;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin: 3px;
    font-weight: 700;
    transition: .2s;
}

button:hover,
.btn:hover {
    background: #b91c1c;
    transform: translateY(-1px);
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 18px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
}

th {
    background: #f1f5f9;
    color: #334155;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

th,
td {
    border-bottom: 1px solid #e2e8f0;
    padding: 13px 14px;
    text-align: left;
    vertical-align: top;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: #f8fafc;
}

.status {
    display: inline-block;
    background: #e0f2fe;
    color: #0369a1;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

hr {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 28px 0;
}

a {
    color: #dc2626;
}

@media (max-width: 768px) {
    .topbar {
        padding: 18px 20px;
    }

    .nav {
        padding: 10px 20px;
    }

    .container {
        margin: 16px;
        padding: 18px;
        border-radius: 14px;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    h2 {
        font-size: 24px;
    }
}