* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

body {
    background: #f6f2fb;
    color: #222;
}

a {
    text-decoration: none;
}

.container {
    width: 92%;
    max-width: 1250px;
    margin: 30px auto;
}

.topbar {
    background: linear-gradient(135deg, #7b4dff, #d94fff);
    color: white;
    padding: 18px 24px;
    border-radius: 18px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.brand {
    font-size: 28px;
    font-weight: 700;
}

.subtitle {
    font-size: 14px;
    opacity: 0.95;
}

.card {
    background: white;
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 8px 24px rgba(65, 27, 112, 0.08);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 18px;
    color: #3e2a5c;
}

.muted {
    color: #666;
    font-size: 14px;
}

.btn {
    display: inline-block;
    padding: 12px 18px;
    background: linear-gradient(135deg, #7b4dff, #d94fff);
    color: white;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 700;
}

.btn-outline {
    display: inline-block;
    padding: 11px 16px;
    border: 2px solid #7b4dff;
    color: #7b4dff;
    border-radius: 14px;
    font-weight: 700;
    background: white;
    cursor: pointer;
}

.form-group {
    margin-bottom: 16px;
}

label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
}

input, select, textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d8d2e8;
    border-radius: 12px;
    font-size: 15px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

th, td {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f0e8ff;
    color: #6a33cc;
    font-size: 12px;
    font-weight: 700;
}

.list-card {
    border: 1px solid #ece6f7;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 14px;
}

.auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-card {
    width: 100%;
    max-width: 430px;
    background: white;
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(80, 40, 130, 0.12);
}

.auth-title {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 8px;
    color: #34204f;
}

.auth-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 24px;
}

.msg {
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 14px;
}

.msg-error {
    background: #ffe8ea;
    color: #b42318;
}

.msg-success {
    background: #e9fff0;
    color: #157347;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.small {
    font-size: 13px;
}

@media (max-width: 900px) {
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
}