* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f6f8;
    color: #17202a;
}

.topbar {
    min-height: 64px;
    background: #fff;
    border-bottom: 1px solid #dfe4e8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
}

.brand {
    font-size: 22px;
    font-weight: 700;
}
.brand span { font-weight: 400; }

nav a {
    color: #263238;
    text-decoration: none;
    margin-left: 22px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 42px 24px;
}

.hero, .auth-card {
    background: #fff;
    border-radius: 12px;
    padding: 36px;
    box-shadow: 0 4px 20px rgba(0,0,0,.06);
}

h1 { margin-top: 0; }

.lead, .muted { color: #66737d; }

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.card {
    display: block;
    color: inherit;
    text-decoration: none;
    border: 1px solid #e1e6ea;
    border-radius: 10px;
    padding: 22px;
}
.card:hover { border-color: #9aa8b2; }

.auth-card {
    max-width: 460px;
    margin: 30px auto;
}

label {
    display: block;
    font-weight: 600;
    margin: 18px 0;
}

input {
    width: 100%;
    margin-top: 7px;
    padding: 11px 12px;
    border: 1px solid #c9d1d6;
    border-radius: 6px;
    font: inherit;
}

button, .button {
    display: inline-block;
    border: 0;
    border-radius: 6px;
    padding: 11px 18px;
    background: #17202a;
    color: white;
    text-decoration: none;
    cursor: pointer;
}

.alert {
    padding: 12px 14px;
    border-radius: 6px;
    margin-bottom: 18px;
}
.alert.error { background: #fdecec; color: #9b1c1c; }

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 28px 0;
}

.stats div {
    background: #fff;
    border-radius: 10px;
    padding: 22px;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.stats strong, .stats span { display: block; }
.stats strong { font-size: 30px; }
.stats span { color: #66737d; margin-top: 5px; }

.table-wrap {
    background: #fff;
    border-radius: 10px;
    overflow: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}
th, td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #e7ebee;
}
th { background: #f8fafb; }

footer {
    text-align: center;
    color: #87939b;
    padding: 30px;
}

@media (max-width: 700px) {
    .topbar { padding: 0 16px; }
    .container { padding: 24px 14px; }
    .stats { grid-template-columns: repeat(2, 1fr); }
}
