/* FFC Monthly Reports — theme matches the Time-Off Portal (teal → forest, frosted glass, white cards) */

:root {
    --ffc-teal: #1e5048;
    --ffc-teal-dark: #143f3a;
    --ffc-teal-bright: #2b7a6e;
    --ffc-ink: #1f2d2b;
    --ffc-muted: #5c6b68;
    --ffc-line: rgba(0, 0, 0, 0.07);
    --ffc-tint: #f3f8f7;
}

html, body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--ffc-ink);
}

body {
    min-height: 100vh;
    background-color: var(--ffc-teal);
    background-image: url('background.jpg'), linear-gradient(135deg, #2f6d64, #245a52, #17443e);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Headings */
h1 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--ffc-teal-dark);
}

h2, .h4, .h5 {
    color: var(--ffc-teal-dark);
}

h1:focus {
    outline: none;
}

/* Links */
a, .btn-link {
    color: var(--ffc-teal-bright);
}

    a:hover, .btn-link:hover {
        color: var(--ffc-teal-dark);
    }

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
}

.btn-sm {
    border-radius: 7px;
}

.btn-primary {
    color: #fff;
    background-color: var(--ffc-teal);
    border-color: var(--ffc-teal);
}

    .btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active {
        background-color: var(--ffc-teal-dark) !important;
        border-color: var(--ffc-teal-dark) !important;
        color: #fff;
    }

    .btn-primary:disabled, .btn-primary.disabled {
        background-color: var(--ffc-teal);
        border-color: var(--ffc-teal);
        opacity: 0.55;
    }

.btn-outline-primary {
    color: var(--ffc-teal);
    border-color: var(--ffc-teal);
}

    .btn-outline-primary:hover, .btn-outline-primary:active {
        background-color: var(--ffc-teal) !important;
        border-color: var(--ffc-teal) !important;
        color: #fff !important;
    }

.btn:focus-visible, .form-control:focus, .form-select:focus, .form-check-input:focus {
    border-color: var(--ffc-teal-bright);
    box-shadow: 0 0 0 0.2rem rgba(43, 122, 110, 0.25);
}

/* Inputs */
.form-control, .form-select {
    border-radius: 8px;
    border-color: #cfd8d6;
}

.form-control-sm {
    border-radius: 7px;
}

.form-check-input:checked {
    background-color: var(--ffc-teal);
    border-color: var(--ffc-teal);
}

.form-label {
    color: var(--ffc-ink);
}

/* File picker: rounded white field with a teal button */
input[type=file].form-control {
    padding: 0.3rem;
}

input[type=file]::file-selector-button {
    background: var(--ffc-teal);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.4rem 1rem;
    margin-right: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

    input[type=file]::file-selector-button:hover {
        background: var(--ffc-teal-dark);
    }

/* Cards */
.card {
    border-radius: 12px;
    border-color: var(--ffc-line);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.card-header {
    background: var(--ffc-tint);
    border-bottom-color: var(--ffc-line);
    color: var(--ffc-teal-dark);
}

    .card-header:first-child {
        border-radius: 12px 12px 0 0;
    }

.list-group-item:first-child {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.list-group-item:last-child {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* Tables: small uppercase headers, light separators, roomy rows */
.table {
    --bs-table-hover-bg: rgba(43, 122, 110, 0.05);
}

    .table > thead th {
        text-transform: uppercase;
        font-size: 0.72rem;
        font-weight: 600;
        letter-spacing: 0.06em;
        color: var(--ffc-muted);
        border-bottom-width: 1px;
        border-bottom-color: rgba(0, 0, 0, 0.12);
    }

    .table > :not(caption) > * > * {
        padding: 0.7rem 0.75rem;
        border-bottom-color: var(--ffc-line);
    }

.table-sm > :not(caption) > * > * {
    padding: 0.45rem 0.5rem;
}

.table-light, .table > thead.table-light th {
    --bs-table-bg: var(--ffc-tint);
}

.table-secondary {
    --bs-table-bg: #e6efed;
    --bs-table-color: var(--ffc-teal-dark);
}

/* Badges, alerts, progress */
.badge {
    border-radius: 999px;
    font-weight: 600;
    padding: 0.38em 0.7em;
}

.alert {
    border-radius: 10px;
}

.progress {
    border-radius: 999px;
    background-color: #e6efed;
}

/* Validation (template defaults) */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem 1rem 1rem 1.25rem;
    color: white;
    border-radius: 10px;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}
