* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f5f5f5;
    color: #333;
}

nav {
    background: #1a1a2e;
    color: #fff;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-brand {
    font-weight: 700;
    font-size: 1.1rem;
}

.nav-links { display: flex; gap: 1rem; }
.nav-links a { color: #ccc; text-decoration: none; }
.nav-links a:hover { color: #fff; }

main {
    max-width: 960px;
    margin: 2rem auto;
    padding: 0 1rem;
}

h1 { margin-bottom: 1rem; }
h2 { margin: 1.5rem 0 0.75rem; }

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.card {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.card-number { font-size: 2.5rem; font-weight: 700; color: #1a1a2e; }
.card-label { color: #666; margin: 0.25rem 0 0.75rem; }
.card a { color: #4361ee; text-decoration: none; }

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

th, td { padding: 0.6rem 0.75rem; text-align: left; border-bottom: 1px solid #eee; }
th { background: #f8f9fa; font-weight: 600; }
td a { color: #4361ee; text-decoration: none; }
code { background: #f0f0f0; padding: 0.15rem 0.4rem; border-radius: 3px; font-size: 0.85em; }

.form-section {
    background: #fff;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.inline-form {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 0.5rem;
}

input[type="text"], input[type="password"], select {
    padding: 0.5rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
}

select { min-width: 200px; }

button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    background: #4361ee;
    color: #fff;
    cursor: pointer;
    font-size: 0.9rem;
}

button:hover { background: #3451de; }

.btn-danger { background: #dc3545; }
.btn-danger:hover { background: #c82333; }
.btn-small { padding: 0.25rem 0.5rem; font-size: 0.8rem; }

.danger-zone {
    margin-top: 2rem;
    padding: 1.25rem;
    border: 2px solid #dc3545;
    border-radius: 8px;
}

.danger-zone h2 { color: #dc3545; margin-top: 0; }

.flashes { margin-bottom: 1rem; }
.flash {
    background: #d4edda;
    color: #155724;
    padding: 0.6rem 1rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

section { margin-bottom: 1.5rem; }

.login-container {
    max-width: 360px;
    margin: 8rem auto;
    text-align: center;
}

.login-container h1 { margin-bottom: 1.5rem; color: #1a1a2e; }

.login-container form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.login-container input { text-align: center; font-size: 1rem; }
