:root {
    --primary: #003366;   /* deep blue */
    --primary-dark: #001f3d;
    --secondary: #ff7a00; /* orange */
    --bg: #f5f7fb;
    --text: #333;
    --border-radius: 10px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
}

header {
    background: var(--primary);
    color: #fff;
    padding: 10px 18px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.nav-brand {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.nav-brand span.logo-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--secondary);
}

.nav-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-links a {
    font-size: 0.9rem;
    padding: 6px 10px;
    border-radius: 999px;
    transition: background 0.2s;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.18);
}

main {
    flex: 1;
    max-width: 1100px;
    width: 100%;
    margin: 18px auto 30px;
    padding: 0 12px;
}

.page-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 18px;
}

.page-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 6px;
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    background: rgba(0,0,0,0.05);
}

.badge-open {
    background: rgba(0, 200, 83, 0.12);
    color: #007b3a;
}
.badge-closed {
    background: rgba(244, 67, 54, 0.12);
    color: #b71c1c;
}

.btn {
    display: inline-block;
    padding: 7px 14px;
    font-size: 0.9rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    line-height: 1.2;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--secondary);
    color: #fff;
}
.btn-secondary:hover {
    filter: brightness(0.9);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}
.btn-outline:hover {
    background: rgba(0, 51, 102, 0.06);
}

form {
    display: grid;
    gap: 12px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.form-group {
    flex: 1 1 220px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 180px;
}

label {
    font-size: 0.85rem;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="time"],
input[type="number"],
select,
textarea {
    border-radius: 8px;
    padding: 8px 10px;
    border: 1px solid #d0d5e2;
    font-size: 0.9rem;
    width: 100%;
    background: #fff;
}

textarea {
    min-height: 80px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 2px rgba(255, 122, 0, 0.18);
}

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    margin-top: 10px;
}

th, td {
    padding: 8px 10px;
    border-bottom: 1px solid #e2e6f0;
    text-align: left;
    vertical-align: top;
}

th {
    background: #f1f4fb;
    font-weight: 600;
    color: #444;
    white-space: nowrap;
}

tr:nth-child(even) {
    background: #fafbff;
}

.chip {
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    display: inline-block;
    white-space: nowrap;
}
.chip-pending { background:#fff3cd; color:#856404; }
.chip-approved { background:#d4edda; color:#155724; }
.chip-rejected { background:#f8d7da; color:#721c24; }

.flex {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.flex-space {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.auth-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 12px;
}

.auth-card {
    background: #fff;
    padding: 22px 20px;
    border-radius: 16px;
    max-width: 380px;
    width: 100%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

footer {
    background: var(--primary-dark);
    color: #c9d4f5;
    padding: 10px 18px;
    font-size: 0.8rem;
    text-align: center;
}

@media (max-width: 600px) {
    .page-card {
        padding: 14px;
    }
    .nav-links a {
        font-size: 0.85rem;
    }
}
