:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --danger: #dc2626;
    --danger-dark: #b91c1c;
    --bg-light: #f4f6f9;
    --rounded: 10px;
    --shadow: 0 2px 14px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg-light);
    font-family: "Segoe UI", Arial, sans-serif;
    color: #333;
}

.container {
    max-width: 1100px;
    margin: 30px auto;
    padding: 25px 30px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.card-box {
    background: #fff;
    padding: 18px;
    border-radius: var(--rounded);
    box-shadow: var(--shadow);
}

/* headings */
h1, h2, h3 {
    color: #1e3a8a;
    margin-bottom: 12px;
    font-weight: 600;
}
h2::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 22px;
    background: var(--primary);
    margin-right: 10px;
    border-radius: 4px;
}

/* links */
a { color: var(--primary); font-weight: 500; text-decoration: none; }
a:hover { text-decoration: underline; }

.container > p a {
    padding: 6px 12px;
    background: #e2e8f0;
    border-radius: 6px;
    margin-right: 5px;
}
.container > p a:hover {
    background: #cbd5e1;
    text-decoration: none;
}

/* forms */
form {
    background: #f9fafb;
    border: 1px solid #dbe1e8;
    padding: 18px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}
label {
    display: block;
    margin-top: 14px;
    margin-bottom: 5px;
    color: #374151;
    font-weight: 500;
}
input, select, textarea {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #cdd5df;
    border-radius: 6px;
    background: #ffffff;
    color: #333;
    outline: none;
    transition: 0.15s ease;
}
input:focus, select:focus, textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(59,130,246,0.25);
}

/* buttons */
button, .btn-custom {
    padding: 9px 18px;
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.15s ease;
}
button:hover, .btn-custom:hover {
    background: var(--primary-dark);
}
button.del {
    background: var(--danger) !important;
}
button.del:hover {
    background: var(--danger-dark) !important;
}
.btn-light-gray {
    background: #e5e7eb;
    color: #111827;
}
.btn-light-gray:hover {
    background: #d1d5db;
}

/* tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 18px;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
}
th {
    background: var(--primary);
    color: white;
    text-align: left;
    padding: 10px 12px;
    font-size: 14px;
}
td {
    padding: 10px 12px;
    font-size: 14px;
    border-bottom: 1px solid #e5e7eb;
}
tr:nth-child(even) {
    background: #f9fafb;
}
tbody tr:hover {
    background: #e8f0fd;
}
.table-compact th, .table-compact td {
    padding: 7px 10px;
    font-size: 13px;
}

/* status pills */
.status-pending {
    background: #fef3c7;
    color: #92400e;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
}
.status-approved {
    background: #dcfce7;
    color: #166534;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
}
.status-rejected {
    background: #fee2e2;
    color: #991b1b;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
}

/* alerts */
.err {
    background: #fee2e2;
    color: #b91c1c;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 12px;
    border: 1px solid #fecaca;
}
.success {
    background: #dcfce7;
    color: #166534;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 12px;
    border: 1px solid #bbf7d0;
}

/* login page */
.login-bg {
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-box {
    width: 380px;
    background: #fff;
    padding: 28px;
    border-radius: 14px;
    box-shadow: var(--shadow);
}
.login-box h2 {
    text-align: center;
    margin-bottom: 18px;
}
