:root {
    --bg: #f5f6f8;
    --card: #ffffff;
    --muted: #6b6f78;
    --text: #1f2430;
    --accent: #3b82f6;
    --accent-2: #60a5fa;
    --danger: #e05277;
    --border: rgba(0, 0, 0, 0.08);
    --shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Figtree', sans-serif;
    background: var(--bg);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    line-height: 1.6;
    padding: 32px 20px;
}

.container {
    background-color: var(--card);
    padding: 28px 32px;
    border-radius: 14px;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 1100px;
    text-align: left;
    border: 1px solid var(--border);
}

h2, h3 {
    margin: 0 0 16px;
    color: #0f172a;
    font-weight: 700;
}

p {
    margin-top: 16px;
    color: var(--muted);
    font-size: 0.95em;
}

p a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

p a:hover {
    color: #7fd8f7;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-weight: 600;
    letter-spacing: 0.2px;
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 1em;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(76, 201, 240, 0.18);
}

button, .btn {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #f8fafc;
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 700;
    width: 100%;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

button:hover, .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.25);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-danger:hover {
    box-shadow: 0 10px 25px rgba(224, 82, 119, 0.35);
}

.btn-secondary {
    background: rgba(59, 130, 246, 0.08);
    color: var(--text);
}

.alert {
    padding: 12px 14px;
    margin-bottom: 15px;
    border-radius: 8px;
    text-align: left;
    font-size: 0.95em;
    border: 1px solid var(--border);
}

.alert-danger {
    background-color: rgba(224, 82, 119, 0.12);
    color: #6f1f35;
    border-color: rgba(224, 82, 119, 0.3);
}

.alert-success {
    background-color: rgba(52, 211, 153, 0.15);
    color: #065f46;
    border-color: rgba(16, 185, 129, 0.35);
}

.fade-out {
    opacity: 0;
    transition: opacity 0.6s ease;
}

/* Tables */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin-top: 18px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    color: var(--text);
    min-width: 0;
    table-layout: auto;
}

table th, table td {
    border-bottom: 1px solid var(--border);
    padding: 12px 14px;
    text-align: left;
    vertical-align: middle;
}

table th {
    background-color: rgba(59, 130, 246, 0.08);
    color: #0f172a;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8em;
}

table tbody tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.02);
}

table tbody tr:hover {
    background-color: rgba(59, 130, 246, 0.06);
}

.btn-update {
    background: var(--accent);
    color: #f8fafc;
    padding: 9px 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95em;
    transition: transform 0.15s ease;
    margin-top: 8px;
}

.btn-update:hover {
    transform: translateY(-1px);
}

.section-spaced {
    margin-top: 20px;
    padding-top: 4px;
}

.section-spaced + .section-spaced {
    margin-top: 28px;
}

/* Checkbox and radio button styling */
input[type="checkbox"] {
    margin-right: 8px;
}

label {
    display: inline-block;
    margin-bottom: 6px;
}

.inline-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.12);
    color: #0f172a;
    font-weight: 600;
    font-size: 0.92em;
}

.badge.soft {
    background: rgba(59, 130, 246, 0.08);
}

.text-muted {
    color: var(--muted);
}

select {
    min-width: 64px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #fff;
    font-weight: 600;
}

@media (min-width: 1024px) {
    body {
        padding: 48px 40px;
    }
    .container {
        padding: 32px 38px;
        max-width: 1200px;
    }
    table th, table td {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    body {
        padding: 20px 14px;
    }
    .container {
        padding: 22px 20px;
        max-width: 100%;
    }
    h2, h3 {
        font-size: 1.4em;
    }
    button, .btn {
        width: 100%;
    }
    table {
        font-size: 0.95em;
    }
}
