/* ===== VARIABLES ===== */
:root {
    --primary-color: #406880;
    --secondary-color: #4e6b84;
    --accent-color: #acb632;
    --accent-blue: #89a6bd;
    --text-color: #2c3e50;
    --text-muted: #6c757d;
    --light-gray: #e9ecef;
    --border-color: #dee2e6;
    --bg-gray: #f8f9fa;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
    --border-radius-sm: 4px;
    --transition: all 0.2s ease-in-out;
    --bg-hover: rgba(78, 107, 132, 0.08);
    
    --font-primary: -apple-system, "BlinkMacSystemFont", "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
    --font-size-base: 15px;
    --line-height-base: 1.3;
    
    /* Common spacing values */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 12px;
    --spacing-lg: 16px;
    --spacing-xl: 20px;
    
    /* Common sizes */
    --icon-size-sm: 16px;
    --icon-size-md: 20px;
    --icon-size-lg: 50px;
    
    /* Table cell padding */
    --table-cell-padding: 5px 8px;
    --table-cell-padding-card: 5px 10px;
}

/* ===== BASE STYLES ===== */
/* HTML Elements */
body {
    background: var(--primary-color) url("../images/bg2.gif") repeat-x fixed top left;
    padding: 0;
    margin: 0;
    line-height: var(--line-height-base);
    color: var(--text-color);
}

body.dark {
    background: var(--primary-color);
}

body,
select,
input,
textarea,
table {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
}

p, ul, li {
    line-height: var(--line-height-base);
}

h1,
h2,
h3 {
    font-family: var(--font-primary);
}

a:link,
a:visited {
    color: var(--secondary-color);
    text-decoration: none;
}

a:hover,
a:active {
    color: var(--text-color);
    text-decoration: underline;
}

hr {
    display: block;
    height: 1px;
    background: var(--text-color);
    border: 0;
}

small {
    font-size: 0.95em;
}

br.clear {
    clear: both;
    padding: 0;
    margin: 0;
}

/* ===== LAYOUT ===== */
/* Structure */
#page {
    max-width: 1000px;
    margin: 0 auto;
    background: #FFF;
    padding: 16px;
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius);
}

body.dark #page {
    background: var(--bg-gray);
}

#header {
    padding: 0;
    background: linear-gradient(135deg, #002203 0%, #04093c 50%, #220546 100%);
    margin: -16px -16px 0 -16px;
    width: calc(100% + 32px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

#head {
    height: 30px;
    padding: 10px 20px 10px 20px;
    text-align: center;
}

.site-title, .site-title a {
    font-family: var(--font-primary);
    font-size: 1.2em;
    font-weight: bold;
    color: #fff;
    margin: 0;
    padding: 0;
}

.site-tagline {
    font-family: var(--font-primary);
    font-size: 1.2em;
    color: lightgray;
    margin: 5px 0 0 0;
}

#content {
    padding-bottom: 10px;
}

/* Blocks of content */
.block-container-fluid {
    column-count: 1;
    column-gap: 16px;
    margin-bottom: 1em;
}

.block-container {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 16px;
    margin-bottom: 1em;
}

/* ===== COMPONENTS ===== */
/* Card System */
.card,
.card-table,
.card-image {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 16px;
    break-inside: avoid;
}

body.dark .card,
body.dark .card-table,
body.dark .card-image {
    background: var(--bg-gray);
    border-color: var(--border-color);
}

/* Dark mode: preserve original card header colors */
body.dark .card-header {
    background: linear-gradient(315deg, #6a7d8a 0%, #3e5762 100%) !important;
}

body.dark .card-header.green {
    background: linear-gradient(45deg, #7a8b2e 0%, #5f6f2a 100%) !important;
}

body.dark .card-table-header {
    background: linear-gradient(315deg, #6a7d8a 0%, #3e5762 100%) !important;
}

.card {
    transition: var(--transition);
}

.card-header {
    padding: 8px 12px 6px 12px;
    border-bottom: 1px solid var(--light-gray);
    background: linear-gradient(315deg, var(--accent-blue) 0%, var(--secondary-color) 100%);
    position: relative;
    overflow: hidden;
}

.card-header.green {
    background: linear-gradient(45deg, var(--accent-color) 0%, #c2d654 100%) !important;
}

.card-header.ai {
    background: linear-gradient(45deg, #dc2626 0%, #f59e0b 100%) !important;
}

.card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
}

.card-header h2, .card-header h2 a {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    border: none;
    background: none;
    padding: 0;
}

.card-body {
    padding: 16px;
    break-inside: avoid;
}

/* Card Table Specific */
.card-table table {
    border-radius: 0;
    box-shadow: none;
    border: none;
    margin: 0;
}

.card-table .card-header {
    padding: 8px 12px;
}

.card-table table th {
    background: var(--light-gray);
    font-size: 0.75rem;
    padding: 5px 10px;
    color: var(--text-color);
}

.card-table table td {
    padding: 5px 10px;
}

.card-table-header {
    background: linear-gradient(315deg, var(--accent-blue) 0%, var(--secondary-color) 100%);
}

.card-table-header th {
    background: transparent !important;
    color: #fff !important;
}

.card-table-header th a {
    color: #fff !important;
    text-decoration: none;
}

/* Card Image Specific */
.card-image img {
    width: 100%;
    height: auto;
    display: block;
}

.card-image .card-body {
    padding: 12px 16px;
}

/* AI Cards */
#ai-comparison-content h3 {
    background: none;
    border: none;
    padding: 0;
    color: var(--text-color);
}

/* Forms */
.form-grid {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.form-field label {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-color);
}

.form-field select,
.form-field input {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 6px 10px;
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    transition: var(--transition);
    background: #fff;
}

body.dark .form-field select,
body.dark .form-field input {
    background: var(--bg-gray);
    color: var(--text-color);
    border-color: var(--border-color);
}

.form-field select:focus,
.form-field input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(78, 107, 132, 0.1);
}

/* Tables */
.scrollable-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -16px;
    padding: 0 16px;
}

@media (max-width: 800px) {
    .scrollable-table {
        margin: 0 -12px;
        padding: 0 12px;
    }
    
    .scrollable-table table {
        min-width: 600px;
    }
}

table {
    width: 100%;
    overflow-x: auto;
    text-align: left;
    border-spacing: 0px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

body.dark table {
    background: var(--bg-gray);
}

table th:first-child {
    border-top-left-radius: var(--border-radius);
}

table th:last-child {
    border-top-right-radius: var(--border-radius);
}

.card-table table th:first-child {
    border-top-left-radius: 0;
}

.card-table table th:last-child {
    border-top-right-radius: 0;
}

table th {
    background: var(--light-gray);
    color: var(--text-color);
    padding: var(--table-cell-padding);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

body.dark table th {
    background: var(--bg-gray);
    color: var(--text-color);
}

table th a {
    color: var(--text-color);
    text-decoration: none;
}

table th a:hover {
    color: var(--text-color);
    text-decoration: underline;
}

table td {
    padding: var(--table-cell-padding);
    border-bottom: 1px solid var(--light-gray);
    transition: background-color 0.2s ease;
}

body.dark table td {
    border-bottom-color: var(--border-color);
}

table tr:hover td {
    background-color: var(--bg-gray);
}

/* Breadcrumbs */
.breadcrumb-container {
    margin-bottom: var(--spacing-md);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    background: linear-gradient(135deg, var(--bg-gray) 0%, rgba(255, 255, 255, 0.8) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-xs) var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

body.dark .breadcrumb {
    background: linear-gradient(135deg, var(--bg-gray) 0%, var(--border-color) 100%);
}

.breadcrumb::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-color), var(--secondary-color));
    border-radius: var(--border-radius-sm) 0 0 var(--border-radius-sm);
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
}

.breadcrumb-item + .breadcrumb-item {
    padding-left: var(--spacing-sm);
}

.breadcrumb-item + .breadcrumb-item::before {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-right: var(--spacing-sm);
    color: var(--text-muted);
    content: "›";
    font-size: 1.1em;
    font-weight: 500;
    transition: var(--transition);
}

.breadcrumb-item a {
    text-decoration: none;
    background-color: transparent;
    color: var(--secondary-color);
    font-weight: 500;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    position: relative;
}

.breadcrumb-item a:hover {
    background-color: var(--bg-hover);
    color: var(--primary-color);
    text-decoration: none;
    transform: translateY(-1px);
}

.breadcrumb-item.active {
    color: var(--text-color);
    font-weight: 600;
}

/* ===== NAVIGATION CARDS ===== */
.nav-card {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: linear-gradient(90deg, var(--bg-gray) 80%, #fff 100%);
    box-shadow: var(--shadow-sm);
    padding: 0;
    margin-bottom: 18px;
    transition: var(--transition);
    position: relative;
    break-inside: avoid;
}

body.dark .nav-card {
    background: linear-gradient(90deg, var(--bg-gray) 80%, var(--border-color) 100%);
}

.nav-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-color), var(--secondary-color));
    border-radius: var(--border-radius-sm) 0 0 var(--border-radius-sm);
    z-index: 1;
}

.nav-card .card-header,
.nav-card .card-body {
    position: relative;
    z-index: 2;
}

.nav-card .card-header {
    background: none;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
    padding-left: 18px;
}

.nav-card .card-header h2 {
    color: var(--text-color);
    font-size: 1.1em;
    font-weight: 600;
    margin: 0;
    padding: 0;
}

.nav-card .card-body {
    padding: 14px 18px;
}

.nav-card table {
  padding: 5px 0px 0px 10px;
}

.nav-card a {
    color: var(--secondary-color);
    font-weight: 500;
    border-radius: var(--border-radius-sm);
    padding: 2px 4px;
    transition: var(--transition);
}

.nav-card a:hover, .nav-card a:focus {
    background: var(--bg-hover);
    color: var(--primary-color);
    text-decoration: none;
}

.nav-card form input[type="search"],
.nav-card form input[type="text"],
.nav-card form button {
    margin-right: 6px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    padding: 5px 10px;
    font-size: var(--font-size-base);
}

.nav-card form button {
    background: var(--accent-blue);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

body.dark .nav-card form input[type="search"],
body.dark .nav-card form input[type="text"] {
    background: var(--bg-gray);
    color: var(--text-color);
    border-color: var(--border-color);
}

.nav-card form button:hover {
    background: var(--secondary-color);
}

.card .nav-card {
    margin-bottom: 0;
    border: 0;
    box-shadow: none;
}

/* ===== UTILITIES ===== */
/* Text utilities */
.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

/* Spacing utilities */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-sm { margin-top: var(--spacing-sm); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mb-md { margin-bottom: var(--spacing-md); }

/* Image utilities */
.img-fluid {
    max-width: 100%;
    height: auto;
}

.img-small {
    height: var(--icon-size-sm) !important;
    width: auto;
    vertical-align: middle;
}

.img-medium {
    height: var(--icon-size-md) !important;
    width: auto;
    vertical-align: middle;
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 576px) {
    table td {
        padding: 5px 4px;
    }

    .mobile-hide,
    .tablet-hide {
        display: none;
    }

    .nav-search-container {
        display: none;
    }

    #head {
        display: none;
    }
}

@media (min-width: 577px) and (max-width: 800px) {
    .tablet-hide {
        display: none;
    }

    #head {
        display: none;
    }
}

@media (min-width: 801px) {
    .block-container-fluid {
        column-count: 2;
        column-fill: balance;
    }

    .block-container {
        grid-template-columns: 1fr 1fr;
    }

    .card {
        break-inside: avoid;
    }
}

@media (min-width: 992px) {
    .block-container {
        grid-template-columns: 1fr 1fr;
    }
    
    .cols-3v1 {
        grid-template-columns: 2fr 1fr;
    }
}

@media (min-width: 1000px) {
    .block-container-fluid {
        column-count: 2;
        column-fill: balance;
    }
}

/* Responsive adjustments */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Headers */
h1 {
    font-size: 2.1em;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text-color);
    margin: 0 0 0.75em 0;
    position: relative;
    padding-bottom: 0.25em;
}

h2 {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--text-color);
    margin: 1.25em 0 0.5em 0;
    padding: 0.35em 0 0.35em 0.75em;
    position: relative;
    background: none;
    border-left: 4px solid var(--accent-blue);
    background: linear-gradient(90deg, rgba(137, 166, 189, 0.08), transparent);
}

h3 {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--accent-color);
    margin: 1em 0 0.4em 0;
    padding: 0.3em 0.5em;
    background: linear-gradient(90deg, rgba(172, 182, 50, 0.08), transparent);
    border-left: 3px solid var(--accent-color);
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
}

/* Graph Elements */
/* Bar plots - horizontal */
.barploth {
    height: 12px;
    background: linear-gradient(90deg, #4e79a7, #a0c4ff);
    border-radius: 4px;
    display: inline-block;
    vertical-align: middle;
    margin-left: 8px;
}

.barploth-gray {
    height: 12px;
    background: linear-gradient(90deg, #666666, #999999);
    border-radius: 4px;
    display: inline-block;
    vertical-align: middle;
    margin-left: 8px;
}

.barploth-red {
    height: 12px;
    background: linear-gradient(90deg, #8f1406, #e74c3c);
    border-radius: 4px;
    display: inline-block;
    vertical-align: middle;
    margin-left: 8px;
}

.overwritten {
    position: relative;
    left: 0;
    z-index: 0;
}

.barplotv {
    padding-bottom: 20px;
    display: inline-flex;
    align-items: flex-end;
    border-top: 1px solid lightgrey;
}

.barplotv-bar {
    width: 5px;
    background-color: steelblue;
}

.barplotv-title {
    padding-bottom: 10px;
}

.barplotv-max {
    display: inline-block;
    vertical-align: top;
    position: relative;
    bottom: 5px;
    font-size: 10px;
    color: grey;
}

.barplotv-last {
    text-align: right;
    position: relative;
    bottom: -5px;
    left: 5px;
    font-size: 10px;
    color: grey;
}

/* Column Toggle Controls */
.listing-panel {
    background: var(--bg-gray);
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    padding: 8px;
    margin-bottom: 12px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.pagination li a,
.pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 6px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    background-color: #fff;
    color: var(--text-color);
    font-size: 0.875rem;
    transition: var(--transition);
}

body.dark .pagination li a,
body.dark .pagination li span {
    background-color: var(--bg-gray);
    color: var(--text-color);
    border-color: var(--border-color);
}

.pagination li a:hover {
    background-color: var(--bg-gray);
    border-color: var(--secondary-color);
}

.pagination li.active span,
.pagination li.active a {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

/* Show only arrows in pagination prev/next */
.pagination li.previous a,
.pagination li.next a {
  color: transparent;
  position: relative;
  width: 32px;
}
.pagination li.previous a::before {
  content: "«";
  position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  color: var(--text-color);
}
.pagination li.next a::after {
  content: "»";
  position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  color: var(--text-color);
}
.pagination li.previous a span,
.pagination li.next a span {
  display: none;
}

.description-row td {
    color: grey;
    padding-left: 20px;
}

/* Others */
.rank-image {
    height: 16px !important;
    padding-right: 20px;
    display: block;
    margin-left: auto;
}

/* Common elements */
.flag-image {
    height: 50px !important;
    border: 1px solid grey;
}

/* Text colors */
.grey {
    color: grey;
}

.credits {
    font-size: 0.8em;
    color: grey;
}

/* Sources cartouche */
.sources {
    background: var(--bg-gray);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    margin: var(--spacing-lg) 0;
    font-size: 0.85em;
    color: var(--text-muted);
    font-style: italic;
    position: relative;
}

body.dark .sources {
    background: var(--bg-gray);
}

.sources::before {
    content: "Sources";
    position: absolute;
    top: -8px;
    left: var(--spacing-md);
    background: var(--bg-gray);
    padding: 0 var(--spacing-xs);
    font-size: 0.75em;
    font-weight: 600;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-style: normal;
}

body.dark .sources::before {
    background: var(--bg-gray);
}

/* Content Cards */
.card-content {
    background: #fff;
}

body.dark .card-content {
    background: var(--bg-gray);
}

.card-content .card-body p:first-child {
    margin-top: 0;
}

.card-content .card-body p:last-child {
    margin-bottom: 0;
}

/* Responsive Grid */
.block img,
.block-fluid img,
.card img {
    max-width: 100%;
    height: auto;
}

.card-visual img {
    width: 100%;
    height: auto;
    display: block;
}

/* Grey column styling for tables */
table td.grey {
    background-color: var(--bg-gray);
    font-weight: 500;
    color: var(--text-muted);
    border-right: 1px solid var(--light-gray);
}

/* Visual improvements */
.card-footer h3 {
    margin: 0 0 4px 0;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text-color);
    border: none;
    background: none;
    padding: 0;
}

.card-footer .credits {
    color: var(--text-muted);
    font-style: italic;
}

/* Spacing improvements */
.card + .card {
    margin-top: 0;
}

/* Break between card sections */
.block-container-fluid .card {
    break-inside: avoid;
    width: auto;
    max-width: 100%;
}

/* Visual Cards */
.card-visual {
    border: none;
    box-shadow: var(--shadow-md);
}

.card-visual .card-body {
    padding: 0;
}

.card-visual .card-footer {
    padding: 10px 12px;
    background: var(--bg-gray);
    border-top: 1px solid var(--light-gray);
}

body.dark .card-visual .card-footer {
    background: var(--bg-gray);
    border-top-color: var(--border-color);
}

/* Aircraft category icons */
table td img[alt*="category"],
table td img[src*="categories/"] {
    height: 20px !important;
    width: auto;
    margin-right: 8px;
    vertical-align: middle;
}

/* Roundel images */
img[src*="roundel/"],
img[alt*="roundel"] {
    height: 16px !important;
    width: auto;
    vertical-align: middle;
}

/* Exception for roundel in Key facts table */
table td p img[src*="roundel/"],
table td p img[alt*="roundel"] {
    height: auto !important;
}

/* Comparison cell styling */
.compare-higher {
    background-color: rgba(0, 255, 0, 0.1); /* Light green background */
}

.compare-lower {
    background-color: rgba(255, 0, 0, 0.1); /* Light red background */
}

.compare-equal {
    background-color: rgba(0, 0, 255, 0.05); /* Light blue background */
}

.related-item {
    background: var(--bg-gray);
    color: var(--secondary-color);
    padding: 4px !important;
    border-radius: var(--border-radius-sm);
    font-size: 0.8em;
    border: 1px solid var(--border-color);
    white-space: nowrap;
    margin: 4px 4px 4px 0;
    display: inline-block;
}

.related-item:hover {
    background: var(--bg-hover);
}

.related-item a:hover {
    background: none !important;
}

/* Country link styling */
.country-link {
    display: inline-block;
    padding: 4px 8px;
    border-radius: var(--border-radius-sm);
    background: var(--bg-gray);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    font-weight: 600;
}

.country-link:hover {
    background: var(--bg-hover);
    border-color: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.country-link a {
    text-decoration: none;
    font-weight: inherit;
}

.country-link a::after {
    content: " →";
    font-size: 0.9em;
    margin-left: 4px;
    transition: var(--transition);
}

.country-link:hover a {
    text-decoration: none;
}

.country-link:hover a::after {
    transform: translateX(2px);
}

/* Equipment list */
.equipment-list {
    padding-left: 20px;
    margin: 5px 0px 5px 0px;
}

/* Footer */
.footer {
    font-size: 0.85em;
    color: #d3d7db;
    text-align: center;
    background: transparent;
    margin: 10px 0 0 0;
    padding: 0;
    letter-spacing: 0.01em;
}

.footer a, .footer a:visited {
    color: #ffffff;
}

/* Dark mode variables */
body.dark {
    --primary-color: #121212;
    --secondary-color: #64b5f6;
    --accent-color: #acb632;
    --accent-blue: #64b5f6;
    --text-color: #f8f9fa;
    --text-muted: #adb5bd;
    --light-gray: #495057;
    --border-color: #495057;
    --bg-gray: #343a40;
    --bg-hover: rgba(255, 255, 255, 0.1);
    background: #121212;
    color: var(--text-color);
}

/* ===== SPINNER ANIMATION ===== */
.spinner-border {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    vertical-align: -0.125em;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.text-primary {
    color: var(--primary-color) !important;
}

/* Visually hidden text for screen readers */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Text center utility */
.text-center {
    text-align: center !important;
}
