body {
    font-family: "Times New Roman", serif;
    background-color: #f5f1dc;
    margin: 0;
}

h1, h2 {
    color: #1b0039;
}

.brand-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-header img {
    height: 40px;
}

.brand-title {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.04em;
    color: #ec008c;
}

.sticky-nav {
    position: sticky;
    top: 0;
    z-index: 9;
    background: #f5f1dc;
    border-bottom: 2px solid #1b0039;
    box-shadow: 0 1px 4px rgba(27, 0, 57, 0.15);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px clamp(1rem, 3vw, 3rem);
}

.nav-links {
    display: flex;
    gap: clamp(0.75rem, 2vw, 1.5rem);
}

.nav-links a {
    color: #1b0039;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.nav-links a:hover,
.nav-links a:focus {
    color: #ec008c;
}

.page-container {
    max-width: 960px;
    margin: 2rem auto;
    padding: 0 clamp(1rem, 3vw, 3rem);
}

.card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 1.5rem;
}

.card h2 {
    margin-top: 0;
    font-size: 1.35rem;
    letter-spacing: 0.03em;
    color: #1b0039;
}

/* Login page styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
}

.login-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    padding: clamp(2rem, 5vw, 3rem);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.login-logo img {
    height: 60px;
    max-width: 100%;
}

.login-card h1 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #1b0039;
}

.login-card form {
    text-align: left;
}

.login-card form > div {
    margin-bottom: 1rem;
}

.login-card label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1b0039;
}

.login-card input[type="email"],
.login-card input[type="password"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d7d7e5;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box;
}

.login-card input[type="email"]:focus,
.login-card input[type="password"]:focus {
    outline: none;
    border-color: #ec008c;
    box-shadow: 0 0 5px rgba(236, 0, 140, 0.3);
}

.login-card .btn {
    width: 100%;
    margin-top: 1rem;
}

.alert {
    padding: 0.85rem 1.2rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    font-weight: 600;
}

.alert-success {
    background: #f0ffee;
    border-color: #8be28f;
    color: #1e6420;
}

.alert-error {
    background: #fff5f5;
    border-color: #f5aaaa;
    color: #7b2121;
}

.form-grid {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

.form-grid caption {
    caption-side: top;
    margin-bottom: 1rem;
}

.grid-heading {
    background: #1b0039;
    color: #f5f1dc;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 8px 12px;
}

.form-grid th,
.form-grid td {
    border: 1px solid #575757;
    padding: 8px 10px;
    vertical-align: middle;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
    width: 100%;
    border: none;
    font-family: inherit;
    font-size: 1rem;
    padding: 4px 6px;
    background-color: transparent;
}

.form-grid textarea {
    min-height: 70px;
    resize: vertical;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn {
    border: none;
    border-radius: 4px;
    padding: 0.65rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.02em;
}

.btn-primary {
    background: #ec008c;
    color: #ffffff;
}

.btn-secondary {
    background: #1b0039;
    color: #f5f1dc;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: #f0f0f5;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-submitted {
    background: #d9ecff;
    color: #145aac;
}

.status-approved {
    background: #e5fff2;
    color: #1d7f46;
}

.status-rejected {
    background: #ffe7e7;
    color: #a12121;
}

.history-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid #ececf1;
}

.history-item:last-child {
    border-bottom: none;
}

.history-left {
    max-width: 70%;
}

.history-stage {
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    color: #ec008c;
}

.history-remarks {
    margin: 0.2rem 0 0;
    color: #3f3f4f;
}

.history-meta {
    text-align: right;
    color: #6f6f82;
    font-size: 0.85rem;
}

.table-compact {
    width: 100%;
    border-collapse: collapse;
}

.table-compact th,
.table-compact td {
    border: 1px solid #b5b5c1;
    padding: 0.6rem 0.75rem;
    text-align: left;
}

.table-compact thead {
    background: #1b0039;
    color: #f5f1dc;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.decision-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.decision-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.decision-form select,
.decision-form input,
.decision-form textarea {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #d7d7e5;
    border-radius: 6px;
    font-family: inherit;
}

.chip {
    display: inline-block;
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    background: #ececf5;
    font-weight: 600;
}

.hidden {
    display: none !important;
}

/* CSS class to highlight input fields with errors */
.input-error {
    border: 2px solid #e55353;
    background-color: #ffe6e6;
    outline: none;
}
/* Style when input with error is focused */
.input-error:focus {
    border-color: #ec008c;
    box-shadow: 0 0 5px rgba(236, 0, 140, 0.7);
}
/* Error message styling */
.error-message {
    color: #e55353;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
}

@media (max-width: 768px) {
    .nav-inner {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .history-item {
        flex-direction: column;
        gap: 0.5rem;
    }

    .history-meta {
        text-align: left;
    }
}

