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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f4f6f8;
    color: #1f2933;
    line-height: 1.5;
}

.navbar {
    background: #1f2933;
    color: #fff;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar a {
    color: #fff;
    text-decoration: none;
    margin-left: 1.25rem;
    font-size: 0.95rem;
}

.navbar a:hover { text-decoration: underline; }

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

.hero {
    max-width: 720px;
    margin: 4rem auto;
    text-align: center;
    padding: 0 1.5rem;
}

.hero h1 { font-size: 2.4rem; margin-bottom: 1rem; }
.hero p { font-size: 1.1rem; color: #52606d; margin-bottom: 2rem; }

.btn {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    padding: 0.65rem 1.4rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
}

.btn:hover { background: #1d4ed8; }
.btn-danger { background: #dc2626; }
.btn-danger:hover { background: #b91c1c; }

.container {
    max-width: 900px;
    margin: 2.5rem auto;
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.form-group { margin-bottom: 1.1rem; }
label { display: block; margin-bottom: 0.35rem; font-weight: 600; font-size: 0.9rem; }

input[type=text], input[type=email], input[type=password], select {
    width: 100%;
    padding: 0.6rem 0.7rem;
    border: 1px solid #cbd2d9;
    border-radius: 6px;
    font-size: 0.95rem;
}

table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
th, td { text-align: left; padding: 0.7rem 0.6rem; border-bottom: 1px solid #e4e7eb; font-size: 0.92rem; }
th { color: #52606d; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; }

.badge {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-admin { background: #fef3c7; color: #92400e; }
.badge-user { background: #dbeafe; color: #1e40af; }

.alert {
    padding: 0.8rem 1rem;
    border-radius: 6px;
    margin-bottom: 1.2rem;
    font-size: 0.92rem;
}
.alert-error { background: #fee2e2; color: #991b1b; }
.alert-success { background: #dcfce7; color: #166534; }

.flex-between { display: flex; justify-content: space-between; align-items: center; }
