/* ============================================================
   Custom Theme - Project.WebAdmin
   Mirrors Project.App\Resources\Styles\CustomTheme.xaml
   ============================================================ */

/* --- Font Faces (Brandon Grotesque) --- */
@font-face {
    font-family: 'BrandonGrotesque';
    src: url('../fonts/Brandon-Grotesque-Thin.otf') format('opentype');
    font-weight: 100;
    font-style: normal;
}

@font-face {
    font-family: 'BrandonGrotesque';
    src: url('../fonts/Brandon-Grotesque-Thin-Italic.otf') format('opentype');
    font-weight: 100;
    font-style: italic;
}

@font-face {
    font-family: 'BrandonGrotesque';
    src: url('../fonts/Brandon-Grotesque-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'BrandonGrotesque';
    src: url('../fonts/Brandon-Grotesque-Light-Italic.otf') format('opentype');
    font-weight: 300;
    font-style: italic;
}

@font-face {
    font-family: 'BrandonGrotesque';
    src: url('../fonts/Brandon-Grotesque-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'BrandonGrotesque';
    src: url('../fonts/Brandon-Grotesque-Regular-Italic.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: 'BrandonGrotesque';
    src: url('../fonts/Brandon-Grotesque-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'BrandonGrotesque';
    src: url('../fonts/Brandon-Grotesque-Medium-Italic.otf') format('opentype');
    font-weight: 500;
    font-style: italic;
}

@font-face {
    font-family: 'BrandonGrotesque';
    src: url('../fonts/Brandon-Grotesque-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'BrandonGrotesque';
    src: url('../fonts/Brandon-Grotesque-Bold-Italic.otf') format('opentype');
    font-weight: 700;
    font-style: italic;
}

@font-face {
    font-family: 'BrandonGrotesque';
    src: url('../fonts/Brandon-Grotesque-Black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: 'BrandonGrotesque';
    src: url('../fonts/Brandon-Grotesque-Black-Italic.otf') format('opentype');
    font-weight: 900;
    font-style: italic;
}

/* --- Font Faces (Font Awesome 7) --- */
@font-face {
    font-family: 'Font Awesome 7 Free';
    src: url('../fonts/Font-Awesome-7-Free-Regular-400.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Font Awesome 7 Free';
    src: url('../fonts/FontAwesome-7-Free-Solid-900.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: 'Font Awesome 7 Brands';
    src: url('../fonts/Font-Awesome-7-Brands-Regular-400.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

/* --- CSS Custom Properties (colours) --- */
:root {
    --color-orange: #ed6c08;
    --color-green:  #097633;
    --font-primary: 'BrandonGrotesque', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* --- Base --- */
html, body {
    /*font-family: var(--font-primary);*/
    font-size: 16px;
    color: #000;
}

/* ============================================================
   Typography  (matches MAUI Label styles)
   ============================================================ */

/* Title — BrandonGrotesqueBold, orange, 60px */
.title {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--color-orange);
    font-size: 3.75rem;
    line-height: 1.1;
}

/* SubTitle — BrandonGrotesqueBold, green, 36px */
.subtitle {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--color-green);
    font-size: 2.25rem;
    line-height: 1.2;
}

/* Heading — BrandonGrotesqueBold, orange, 25px */
.heading {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--color-orange);
    font-size: 1.5625rem;
    line-height: 1.2;
}

/* SubHeading — BrandonGrotesqueBold, green, 18px */
.subheading {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--color-green);
    font-size: 1.125rem;
    line-height: 1.3;
}


/* ============================================================
   Font Awesome  (matches MAUI fa-* Label styles)
   ============================================================ */

.fa-regular {
    font-family: 'Font Awesome 7 Free';
    font-weight: 400;
    font-size: 1.25rem;
    font-style: normal;
}

.fa-solid {
    font-family: 'Font Awesome 7 Free';
    font-weight: 900;
    font-size: 1.25rem;
    font-style: normal;
}

.fa-brands {
    font-family: 'Font Awesome 7 Brands';
    font-weight: 400;
    font-size: 1.25rem;
    font-style: normal;
}

/* ============================================================
   Utility helpers
   ============================================================ */

.text-orange { color: var(--color-orange) !important; }
.text-green  { color: var(--color-green)  !important; }
.bg-orange   { background-color: var(--color-orange) !important; }
.bg-green    { background-color: var(--color-green)  !important; }

/* ============================================================
   Forms
   ============================================================ */

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.validation-message {
    font-size: 0.775rem;
    color: #dc3545;
}

.input-group-text {
    background-color: #f8f9fa;
    border-right: none;
    color: var(--color-orange);
    padding-inline: 0.85rem;
}

.input-group-text i {
    font-size: 0.9rem;
}

.input-group .form-control {
    border-left: none;
}

.input-group .form-control:focus {
    border-color: var(--color-orange);
    box-shadow: 0 0 0 0.2rem rgba(237, 108, 8, 0.18);
}

.input-group:focus-within .input-group-text {
    border-color: var(--color-orange);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
}

/* ============================================================
   Reusable filter panel styles
   ============================================================ */

.filters-card .card-body {
    background: #f9f7f2;
}

.filters-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filters-icon {
    font-size: 1rem;
    color: var(--color-orange);
}

.filters-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
}

.filters-subtitle {
    font-size: 0.82rem;
    color: #6b7280;
}

.btn-soft {
    border: 1px solid #d9e0ec;
    background: #ffffff;
    color: #495057;
}

.btn-soft:hover {
    border-color: #c5cfdf;
    background: #f9f7f2;
    color: #1f2937;
}

.filter-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6c757d;
    margin-bottom: 0.35rem;
}

.filters-card .form-select,
.filters-card .form-control {
    border: 1px solid #d5deea;
    border-radius: 0.65rem;
    min-height: 2.6rem;
    font-size: 0.92rem;
    background-color: #fff;
}

.filters-card .form-select:focus,
.filters-card .form-control:focus {
    border-color: var(--color-orange);
    box-shadow: 0 0 0 0.2rem rgba(237, 108, 8, 0.16);
}

.search-input-wrap {
    position: relative;
}

.search-input-wrap > i {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: #8b95a7;
}

.search-input-wrap > .form-control {
    padding-left: 2.35rem;
}

/* ============================================================
   Buttons — override Bootstrap primary with brand orange
   ============================================================ */

.btn {
    padding: 0.75rem;
}

.btn.btn-primary {
    background-color: var(--color-orange);
    border-color: var(--color-orange);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.03em;
    border-radius: 0.6rem;
    transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.btn.btn-primary:hover:not(:disabled) {
    background-color: #d45f06;
    border-color: #d45f06;
    color: #fff;
    box-shadow: 0 4px 14px rgba(237, 108, 8, 0.35);
}

.btn.btn-primary:focus,
.btn.btn-primary:focus-visible {
    background-color: var(--color-orange);
    border-color: var(--color-orange);
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(237, 108, 8, 0.4);
}

.btn.btn-primary:active:not(:disabled) {
    background-color: #c05605;
    border-color: #c05605;
    transform: scale(0.98);
}

.btn.btn-primary:disabled {
    background-color: var(--color-orange);
    border-color: var(--color-orange);
    opacity: 0.65;
}

/* ============================================================
   Form card — reusable centred card shell for form pages
   ============================================================ */

.form-card {
    background: #fff;
    border-radius: 1.25rem;
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.10);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    width: 100%;
}

