:root {
    --navy: #0f1b2d;
    --navy-light: #16263f;
    --cyan: #22d3ee;
    --cyan-dark: #0891b2;
    --bg: #f4f6f9;
    --text: #1b2431;
    --muted: #6b7688;
    --danger: #e5484d;
    --radius: 10px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

.topbar {
    background: var(--navy);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 28px;
}

.topbar .brand { font-weight: 700; font-size: 1.15rem; letter-spacing: .3px; }
.topbar nav { display: flex; align-items: center; gap: 16px; }
.topbar .who { color: #cbd5e1; font-size: .9rem; }

.container {
    max-width: 960px;
    margin: 32px auto;
    padding: 0 20px 60px;
}

.card {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
    margin-bottom: 24px;
}

h1 { font-size: 1.5rem; margin-top: 0; }
h2 { font-size: 1.2rem; }

.login-wrap {
    max-width: 380px;
    margin: 10vh auto;
}

label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: var(--muted); }
input[type=text], input[type=password], input[type=number], input[type=file], select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dbe1ea;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: .95rem;
}

.btn {
    display: inline-block;
    background: var(--cyan-dark);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-size: .95rem;
    text-decoration: none;
}
.btn:hover { background: var(--cyan); color: var(--navy); }
.btn-ghost { background: transparent; border: 1px solid #445; color: white; }
.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #c93b3f; }

table { width: 100%; border-collapse: collapse; margin-top: 10px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #eef1f5; font-size: .9rem; }
th { color: var(--muted); font-weight: 600; }

.alert { padding: 12px 14px; border-radius: 8px; margin-bottom: 18px; font-size: .9rem; }
.alert-error { background: #fdecec; color: #a3262a; }
.alert-success { background: #e7f8ee; color: #157347; }

.muted { color: var(--muted); font-size: .85rem; }
.actions a, .actions button { margin-right: 8px; }
