* {
    box-sizing: border-box;
}

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

a {
    color: #0f62fe;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 430px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.08);
    padding: 32px;
}

.setup-card {
    max-width: 560px;
}

.login-card h1 {
    margin: 0 0 8px;
    font-size: 28px;
}

.login-card p {
    color: #627386;
    margin-top: 0;
}

label {
    display: block;
    font-weight: 700;
    margin: 16px 0 6px;
}

input, select, textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #ccd4dd;
    border-radius: 8px;
    font-size: 15px;
}

button {
    margin-top: 20px;
    width: 100%;
    border: 0;
    background: #111827;
    color: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
}

button:hover {
    background: #263244;
}

.alert {
    padding: 12px 14px;
    border-radius: 8px;
    margin: 16px 0;
}

.alert-error {
    background: #fff1f2;
    color: #be123c;
    border: 1px solid #fecdd3;
}

.alert-success {
    background: #ecfdf3;
    color: #027a48;
    border: 1px solid #abefc6;
}

.topbar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 16px 24px;
    background: #111827;
    color: #fff;
}

.topbar a {
    color: #fff;
    margin-left: 16px;
}

.muted {
    color: #8a99aa;
    font-size: 13px;
    margin-left: 8px;
}

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

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

.card {
    background: #fff;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 3px 14px rgba(0,0,0,0.05);
}

.card span {
    display: block;
    color: #627386;
    margin-bottom: 12px;
}

.card strong {
    display: block;
    font-size: 32px;
}

.card.warning strong {
    color: #d97706;
}

.card.danger strong {
    color: #dc2626;
}

.panel {
    background: #fff;
    border-radius: 14px;
    margin-top: 22px;
    padding: 20px;
    box-shadow: 0 3px 14px rgba(0,0,0,0.05);
}

.panel h2 {
    margin-top: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    text-align: left;
    padding: 11px 10px;
    border-bottom: 1px solid #e5e7eb;
}

th {
    background: #f9fafb;
    font-weight: 700;
}

@media (max-width: 800px) {
    .grid-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 520px) {
    .grid-cards {
        grid-template-columns: 1fr;
    }
}
