/* Modern visual refresh for the PFS application pages.
   Purely presentational — layered on top of Bulma, no markup/structure changes required. */

:root {
    --pfs-primary: #00274c;
    --pfs-primary-dark: #001a33;
    --pfs-accent: #ffcb05;
    --pfs-bg: #f4f6f9;
    --pfs-border: #e2e6ec;
    --pfs-radius: 14px;
    --pfs-shadow: 0 2px 6px rgba(0, 39, 76, 0.06), 0 8px 24px rgba(0, 39, 76, 0.06);
    --pfs-shadow-hover: 0 4px 10px rgba(0, 39, 76, 0.10), 0 12px 28px rgba(0, 39, 76, 0.10);
}

body {
    background-color: var(--pfs-bg);
    font-family: "Nunito Sans", "Avenir", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #1f2937;
}

/* Header */
body > nav.level {
    background: #fff;
    margin: 0 0 0.5rem 0;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--pfs-border);
    box-shadow: var(--pfs-shadow);
}
body > nav.level h1 {
    color: var(--pfs-primary);
    letter-spacing: -0.01em;
}
body > p.is-size-5 {
    color: #4b5563;
    margin-bottom: 1.5rem;
}

/* Flash messages */
.notification {
    border-radius: var(--pfs-radius);
    box-shadow: var(--pfs-shadow);
    border-left: 4px solid var(--pfs-primary);
}
.notification.is-info { border-left-color: #3273dc; }
.notification.is-warning { border-left-color: #ffcb05; }
.notification.is-success { border-left-color: #2e9e5b; }
.notification.is-danger, .notification.is-error { border-left-color: #d64545; }

/* Cards */
.box {
    border-radius: var(--pfs-radius);
    border: 1px solid var(--pfs-border);
    box-shadow: var(--pfs-shadow);
    padding: 2rem;
    margin-bottom: 1.75rem;
    transition: box-shadow 0.15s ease;
}
.box.has-background-grey-lighter {
    background: #fbfaf5 !important;
    border-left: 4px solid var(--pfs-accent);
}

.title.has-text-info,
h2.is-size-4,
h3.title {
    color: var(--pfs-primary) !important;
    font-weight: 700;
    letter-spacing: -0.01em;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--pfs-border);
    margin-bottom: 1.25rem !important;
}

hr {
    border: none;
    border-top: 1px solid var(--pfs-border);
    margin: 1.75rem 0;
}

/* Form fields */
.label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #55606e;
}
.field { margin-bottom: 1.1rem; }

.input, .select select, textarea.textarea {
    border-radius: 8px;
    border-color: var(--pfs-border);
    box-shadow: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input:focus, .select select:focus, textarea.textarea:focus {
    border-color: var(--pfs-primary);
    box-shadow: 0 0 0 3px rgba(0, 39, 76, 0.12);
}
.input[readonly], .input:disabled, .select select:disabled {
    background-color: #f0f2f5;
    color: #6b7280;
}

/* Buttons */
.button.is-link {
    background-color: var(--pfs-primary);
    border-color: var(--pfs-primary);
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.1s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.button.is-link:hover {
    background-color: var(--pfs-primary-dark);
    box-shadow: var(--pfs-shadow-hover);
    transform: translateY(-1px);
}
.button.is-link.is-light {
    background-color: #eef2f7;
    color: var(--pfs-primary);
    border-color: transparent;
}
.button.is-link.is-light:hover {
    background-color: #dfe6ee;
    color: var(--pfs-primary-dark);
}

/* Plain .is-light buttons (no color modifier, e.g. index.html nav links) were
   whitesmoke-on-whitesmoke against the new page background — give them a
   visible border/shadow so they read as buttons. */
.button.is-light:not(.is-link):not(.is-danger):not(.is-info):not(.is-success):not(.is-warning) {
    background-color: #fff;
    color: var(--pfs-primary);
    border: 1px solid var(--pfs-border);
    box-shadow: var(--pfs-shadow);
    font-weight: 600;
}
.button.is-light:not(.is-link):not(.is-danger):not(.is-info):not(.is-success):not(.is-warning):hover {
    border-color: var(--pfs-primary);
    box-shadow: var(--pfs-shadow-hover);
    transform: translateY(-1px);
}

#process_application .button,
.field.is-grouped .button {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* File upload dropzones */
.file.has-name {
    border: 1.5px dashed var(--pfs-border);
    border-radius: 10px;
    padding: 0.25rem;
    background: #fafbfc;
}
.file.has-name:hover {
    border-color: var(--pfs-primary);
}

/* Tables (status page) */
.table.is-bordered, .table-bordered {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--pfs-shadow);
}
.table th { color: var(--pfs-primary); }

/* Tags */
.tag { border-radius: 999px; font-weight: 600; }
