* {
  box-sizing: border-box;
}
:root {
    /* Brand Colors */
    --color-brand-active: #7B542F;
    --color-brand-active-hover: #654429;
    --color-brand-secondary: #B6771D;
    --color-brand-secondary-hover: #9a6419;
    --color-brand-primary: #FF9D00;
    --color-brand-primary-hover: #e68d00;
    --color-brand-light: #FFCF71;
    --color-brand-light-hover: #ffc456;
    
    /* Accent Colors */
    --color-accent-orange: #f9994e;
    --color-accent-border: #7a4900;
    --color-accent-divider: #d6ba91;
    
    /* Background Colors */
    --color-bg-primary: #ffffff;
    --color-bg-secondary: #f9f4ec;
    --color-bg-tertiary: #eee6dc;
    --color-bg-light: #f4f4f4;
    --color-bg-dropdown: #fcd68d;
    --color-bg-info: #e6f4ff;
    
    /* Text Colors */
    --color-text-primary: #000000;
    --color-text-secondary:#333;
    --color-text-light: #ffffff;
    --color-text-disabled: #555555;
    
    /* State Colors */
    --color-state-disabled: #d0d0d0;
    --color-state-loading: #000000;
    --color-state-loading-hover: #1a1a1a;
    
    /* Border & Shadow */
    --color-border-input: #000000;
    --color-border-focus: #f9994e;
    --color-shadow: rgba(0, 0, 0, 0.05);
    --color-shadow-md: rgba(0, 0, 0, 0.1);
    --color-shadow-lg: rgba(0, 0, 0, 0.15);
}

/* Global Styles */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: var(--color-text-primary);
    background: var(--color-bg-light);
    margin:0 !important;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

.wrapper {
    max-width: 100%;
    width: 960px;
    margin: 0 auto;
    overflow-x: hidden;
}

/* Card Styles */
.card {
    background: var(--color-bg-primary);
    border: 2px solid var(--color-accent-border);
    border-radius: 0;
    overflow: hidden;
}

.card-header {
    background: var(--color-brand-primary);
    padding: 16px;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--color-accent-border);
    color: var(--color-text-light);
}
.card-header h3, .card-header h4, .card-header h5, .card-header h6 {
    margin: 0;
    color:var(--color-text-light);
    text-transform: uppercase;
    text-shadow:0 1px 0 rgba(0, 0, 0, 0.2);
}

.card-body {
    padding: 24px;
    background: var(--color-bg-primary);
}

.card-title {
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--color-text-primary);
    margin-bottom: 16px;
}

/* Card Variants */
.card.shadow,
.shadow-sm {
    box-shadow: 0 2px 8px var(--color-shadow-md);
}

.card.shadow-lg {
    box-shadow: 0 4px 16px var(--color-shadow-lg);
}

.card.border-primary {
    border-color: var(--color-brand-primary);
    border-width: 3px;
}

.card.h-100 {
    height: 100%;
}

.card-header.bg-primary {
    background: var(--color-brand-primary);
}

.card-header.text-white {
    color: var(--color-text-light);
}

/* Button Styles */
.btn {
    border-radius: 0;
    border: none;
    padding: 14px 24px;
    font-weight: 700;
    letter-spacing: 0.08em;
    cursor: pointer;
    text-shadow: 0 2px 0px var(--color-shadow);
    color: var(--color-text-light) !important;
    text-transform: uppercase;
    background: var(--color-brand-primary);
}

.btn:active:not(:disabled):not(.disabled):not(.loading) {
    transform: translateY(1px);
}

.btn:focus-visible {
    outline: 3px solid var(--color-border-input);
}

.btn:disabled,
.btn.disabled {
    background: var(--color-state-disabled);
    color: var(--color-text-disabled) !important;
    cursor: not-allowed;
}

.btn.loading {
    background: var(--color-state-loading) !important;
    color: var(--color-text-light) !important;
    cursor: wait;
    position: relative;
}

.btn.loading:active {
    transform: none;
}

.btn-lg {
    padding: 18px 32px;
    font-size: 18px;
}

.btn-sm {
    padding: 10px 16px;
    font-size: 14px;
}

.btn.wide {
    width: 100%;
}

/* Button Variants */
.btn-primary,
.btn.primary {
    background: var(--color-brand-primary);
}

.btn-secondary,
.btn.secondary {
    background: var(--color-brand-secondary);
}

.btn-active,
.btn.active {
    background: var(--color-brand-active);
}

.btn-light,
.btn.light {
    background: var(--color-brand-light);
    color: var(--color-brand-active) !important;
}

/* Form Styles */
.form-control,
.field-input,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
    padding: 12px;
    border: 2px solid var(--color-border-input);
    background: var(--color-bg-primary);
    font-size: 16px;
    outline: none;
    border-radius: 0;
    width: 100%;
    box-sizing: border-box;
}

.form-control:focus,
.field-input:focus,
input:focus,
textarea:focus,
select:focus {
    border-color: var(--color-border-focus);
}

.form-label,
.field-label {
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 6px;
    display: block;
}

.form-group,
.field {
    margin-bottom: 16px;
}

/* List Styles */
.list-unstyled {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.list-group-item {
    padding: 16px;
    border: 1px solid var(--color-accent-divider);
    border-top: none;
    background: var(--color-bg-primary);
}

.list-group-item:first-child {
    border-top: 1px solid var(--color-accent-divider);
}

.list-group-item:hover {
    background: var(--color-bg-secondary);
}

.list-group-item.active {
    background: var(--color-brand-light);
    color: var(--color-text-primary);
    font-weight: 600;
}

/* Alert Styles */
.alert {
    padding: 16px;
    border: 0;
    background: var(--color-bg-secondary);
    margin-bottom: 16px;
}

.alert-danger {
    background: #ffe6e6;
    border-color: #cc0000;
    color: #990000;
}

.alert-success {
    background: #e6f7e6;
    border-color: #339933;
    color: #226622;
}

.alert-warning {
    background: #fff4e6;
    border-color: var(--color-brand-secondary);
    color: var(--color-brand-active);
}

.alert-info {
    background: var(--color-bg-secondary);
    border-color: var(--color-accent-divider);
    color: var(--color-text-primary);
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: var(--color-brand-primary);
    color: var(--color-text-light);
}

.badge-primary {
    background: var(--color-brand-primary);
}

.badge-secondary {
    background: var(--color-brand-secondary);
}
.badge-info {
    background: var(--color-bg-info);
    color: var(--color-text-primary);
}

.badge-success {
    background: #339933;
}

.badge-danger {
    background: #cc0000;
}

.badge-sm {
    padding: 2px 8px!important;
    font-size: 10px!important;
}
/* Utility Classes */
.text-center {
    text-align: center;
}

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

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

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

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

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

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

.text-success {
    color: #339933 !important;
}

.text-danger {
    color: #cc0000 !important;
}

.fw-bold {
    font-weight: 700;
}

.fw-normal {
    font-weight: 400;
}

.d-block {
    display: block;
}

.d-inline-block {
    display: inline-block;
}

.d-flex {
    display: flex;
}

.d-grid {
    display: grid;
}

.justify-content-between {
    justify-content: space-between;
}

.justify-content-center {
    justify-content: center;
}

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

.flex-wrap {
    flex-wrap: wrap;
}

.gap-2 {
    gap: 8px;
}

.gap-3 {
    gap: 16px;
}

.gap-4 {
    gap: 24px;
}

.float-end {
    float: right;
}

/* Spacing Utilities */
.m-0 { margin: 0; }
.m-1 { margin: 4px; }
.m-2 { margin: 8px; }
.m-3 { margin: 16px; }
.m-4 { margin: 24px; }
.m-5 { margin: 32px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.mt-5 { margin-top: 32px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 24px; }
.mb-5 { margin-bottom: 32px; }

.ms-2 { margin-left: 8px; }
.me-2 { margin-right: 8px; }

.p-0 { padding: 0; }
.p-1 { padding: 4px; }
.p-2 { padding: 8px; }
.p-3 { padding: 16px; }
.p-4 { padding: 24px; }
.p-5 { padding: 32px; }

.py-3 { padding-top: 16px; padding-bottom: 16px; }
.py-4 { padding-top: 24px; padding-bottom: 24px; }
.py-5 { padding-top: 32px; padding-bottom: 32px; }

.px-3 { padding-left: 16px; padding-right: 16px; }
.px-4 { padding-left: 24px; padding-right: 24px; }
.px-5 { padding-left: 32px; padding-right: 32px; }

/* Typography */
.display-4 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--color-text-primary);
    font-weight: 700;
}
/* Spinner for loading states */
.spinner-border {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    vertical-align: -0.125em;
    border: 0.15em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border-spin 0.75s linear infinite;
}

/* Hide spinner loading text */
.spinner-border .sr-only, .spinner-border .visually-hidden {
    display: none !important;
}

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

.spinner-border-sm {
    width: 0.75rem;
    height: 0.75rem;
    border-width: 0.1em;
}

/* HR divider */
hr {
    border: none;
    border-top: 2px solid var(--color-accent-divider);
    margin: 24px 0;
}

/* Navbar Styles */
.navbar {
    background: var(--color-bg-primary);
    border-bottom: 2px solid var(--color-accent-border);
    padding: 12px 0;
    display: flex;
    position: relative;
}

.navbar .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.navbar-light {
    background: var(--color-bg-primary);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    color: var(--color-text-primary) !important;
    text-transform: uppercase;
    padding: 8px 0;
    text-decoration: none;
}
@media (max-width: 479px) {
    .navbar-brand {
        font-size: 1rem;
        padding: 6px 0;
        max-width: 70vw;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .navbar-logo {
        height: 38px;
        max-width: 90px;
        margin-right: 6px;
    }
}
@media (max-width: 767px) {
    .navbar-brand {
        font-size: 1.1rem;
        padding: 7px 0;
        max-width: 80vw;
    }
    .navbar-logo {
        height: 44px;
        max-width: 120px;
        margin-right: 7px;
    }
}
.navbar-brand:hover {
    color: var(--color-brand-primary) !important;
}

.navbar-toggler {
    border: 2px solid var(--color-border-input);
    padding: 8px 12px;
    background: transparent;
    cursor: pointer;
    display: inline-block;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: 3px solid var(--color-border-focus);
}

.navbar-toggler-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(61, 43, 31, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
}

.navbar-nav {
    display: flex;
    flex-direction: column;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0;
}

@media (min-width: 992px) {
    .navbar-nav {
        flex-direction: row;
        gap: 8px;
    }
}

.nav-item {
    display: flex;
    align-items: center;
}

.nav-link {
    display: block;
    padding: 12px 16px;
    color: var(--color-text-primary) !important;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-decoration: none;
    transition: color 0.2s ease;
    width: 100%;
}

.nav-link:hover {
    color: var(--color-brand-primary) !important;
    background: var(--color-bg-tertiary);
}

.nav-link.router-link-active,
.nav-link.router-link-exact-active {
    color: var(--color-brand-primary) !important;
    font-weight: 700;
}

@media (min-width: 992px) {
    .nav-link:hover {
        background: transparent;
    }
}

/* Navbar Expand */
.navbar-expand-lg .navbar-toggler {
    display: inline-block;
}

@media (min-width: 992px) {
    .navbar-expand-lg .navbar-toggler {
        display: none;
    }
    
    .navbar-expand-lg .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
    }
}

.navbar-collapse {
    flex-basis: 100%;
    flex-grow: 1;
    align-items: center;
}

@media (min-width: 992px) {
    .navbar-collapse {
        display: flex !important;
        flex-direction: row;
        justify-content: space-between;
    }
}

.collapse {
    display: none;
}

.collapse.show {
    display: block;
}

@media (max-width: 991px) {
    .collapse.show {
        width: 100%;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 2px solid var(--color-accent-divider);
    }
    
    .navbar-nav {
        width: 100%;
    }
    
    .nav-item {
        width: 100%;
        border-bottom: 1px solid var(--color-accent-divider);
    }
    
    .nav-item:last-child {
        border-bottom: none;
    }
}

/* Dropdown Styles */
.dropdown {
    position: relative;
    width: 100%;
}

@media (min-width: 992px) {
    .dropdown {
        width: auto;
    }
}

.dropdown-toggle {
    cursor: pointer;
    padding: 12px 16px;
    color: var(--color-text-primary) !important;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
}

.dropdown-toggle::after {
    content: "▼";
    font-size: 0.75em;
    margin-left: auto;
}

.dropdown-toggle:hover {
    color: var(--color-brand-primary) !important;
    background: var(--color-bg-tertiary);
}

@media (min-width: 992px) {
    .dropdown-toggle {
        width: auto;
    }
    
    .dropdown-toggle::after {
        margin-left: 4px;
    }
    
    .dropdown-toggle:hover {
        background: transparent;
    }
}

.dropdown-menu {
    position: relative;
    width: 100%;
    z-index: 1000;
    display: none;
    min-width: 200px;
    padding: 0;
    margin: 0;
    background: var(--color-bg-tertiary);
    border: none;
    border-top: 2px solid var(--color-accent-divider);
    list-style: none;
    box-shadow: none;
}

@media (min-width: 992px) {
    .dropdown-menu {
        position: absolute;
        top: 100%;
        right: 0;
        width: auto;
        padding: 8px 0;
        margin: 8px 0 0;
        background: var(--color-bg-primary);
        border: 2px solid var(--color-accent-border);
        border-top: 2px solid var(--color-accent-border);
        box-shadow: 0 4px 12px var(--color-shadow-md);
    }
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 12px 24px;
    clear: both;
    font-weight: 600;
    color: var(--color-text-primary);
    text-align: inherit;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    cursor: pointer;
    border-bottom: 1px solid var(--color-accent-divider);
}

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

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--color-bg-secondary);
    color: var(--color-brand-primary);
}

@media (min-width: 992px) {
    .dropdown-item {
        padding: 12px 20px;
        border-bottom: none;
    }
}

.dropdown-divider {
    height: 0;
    margin: 8px 0;
    overflow: hidden;
    border-top: 2px solid var(--color-accent-divider);
}

/* Navbar spacing utilities */
.me-auto {
    margin-right: auto !important;
}

.ms-auto {
    margin-left: auto !important;
}


/* Border Utilities */
.border { border: 2px solid var(--color-accent-border); }
.border-0 { border: 0; }
.border-top { border-top: 2px solid var(--color-accent-border); }
.border-bottom { border-bottom: 2px solid var(--color-accent-border); }
.border-start { border-left: 2px solid var(--color-accent-border); }
.border-end { border-right: 2px solid var(--color-accent-border); }

.border-top-0 { border-top: 0; }
.border-bottom-0 { border-bottom: 0; }
.border-start-0 { border-left: 0; }
.border-end-0 { border-right: 0; }


/* Loading Skeleton Styles */
.skeleton {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    background: var(--color-bg-tertiary);
}

.skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 171, 103, 0.55) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: translateX(-100%);
    animation: skeleton-shimmer 1.2s ease-in-out infinite;
    will-change: transform;
}

@keyframes skeleton-shimmer {
    0% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(100%);
    }
}

.skeleton-text {
    height: 1em;
    margin-bottom: 8px;
}

.skeleton-text:last-child {
    margin-bottom: 0;
}

.skeleton-title {
    height: 2em;
    width: 60%;
    margin-bottom: 16px;
}

.skeleton-button {
    height: 48px;
    width: 120px;
}

.skeleton-avatar {
    width: 48px;
    height: 48px;
}

.skeleton-avatar-lg {
    width: 96px;
    height: 96px;
}

.skeleton-card {
    height: 200px;
    width: 100%;
}

.skeleton-input {
    height: 44px;
    width: 100%;
}

/* Footer Styles */
.footer {
    border-top: 3px solid var(--color-accent-border);
    margin-top:5rem;
    position: relative;
}

.footer .container {
    padding-top: 40px;
    padding-bottom: 32px;
}

.footer-brand {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.05em;
    color: var(--color-brand-active);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.footer-description {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.footer-section {
    margin-bottom: 0;
}

.footer-title {
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.05em;
    color: var(--color-text-primary);
    text-transform: uppercase;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-brand-primary);
    display: inline-block;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: inline-block;
}

.footer-link:hover,
.footer-link:focus-visible {
    color: var(--color-brand-primary);
    padding-left: 4px;
    outline: none;
}

.footer-divider {
    border-top: 2px solid var(--color-accent-divider);
    margin: 32px 0 24px;
    opacity: 0.6;
}

.footer-bottom {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.footer-copyright {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Mobile adjustments */
@media (max-width: 479px) {
    .footer {
        margin-top: 32px;
    }
    
    .footer .container {
        padding-top: 28px;
        padding-bottom: 24px;
    }
    
    .footer-brand {
        font-size: 1.3rem;
    }
    
    .footer-description {
        font-size: 0.9rem;
    }
    
    .footer-title {
        font-size: 0.95rem;
        margin-bottom: 14px;
        padding-bottom: 6px;
    }
    
    .footer-links li {
        margin-bottom: 9px;
    }
    
    .footer-link {
        font-size: 0.9rem;
    }
    
    .footer-divider {
        margin: 28px 0 20px;
    }
    
    .footer-bottom {
        gap: 14px;
    }
    
    .footer-copyright {
        font-size: 0.85rem;
    }
}

@media (min-width: 768px) {
    .footer .container {
        padding-top: 48px;
        padding-bottom: 36px;
    }
    
    .footer-brand {
        font-size: 1.6rem;
    }
    
    .footer-title {
        font-size: 1.05rem;
    }
}

@media (min-width: 992px) {
    .footer .container {
        padding-top: 56px;
        padding-bottom: 40px;
    }
    
    .footer-brand {
        font-size: 1.75rem;
    }
}

/* Footer Layout Grid */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 8px;
}

@media (min-width: 480px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 26px;
        row-gap: 32px;
    }
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
        row-gap: 36px;
    }
    
    .footer-section.brand {
        grid-column: span 2;
    }
}

@media (min-width: 992px) {
    .footer-grid {
        grid-template-columns: 1.3fr 1fr 1fr 1fr;
        gap: 40px;
    }
    
    .footer-section.brand {
        grid-column: span 1;
    }
}

/* Social Links */
.footer-social {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-social-link {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-accent-border);
    background: var(--color-bg-primary);
    color: var(--color-brand-active);
    font-size: 18px;
    text-decoration: none;
    transition: background .2s ease, transform .15s ease, color .2s ease, box-shadow .2s ease;
}

.footer-social-link:hover,
.footer-social-link:focus-visible {
    background: var(--color-brand-primary);
    color: var(--color-text-light);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px var(--color-shadow-md);
    outline: none;
}

.footer-social-link:active {
    transform: translateY(-1px);
}

@media (min-width: 768px) {
    .footer-social {
        gap: 12px;
    }
    
    .footer-social-link {
        width: 44px;
        height: 44px;
        font-size: 19px;
    }
}

/* Back to top button */
.footer-top {
    align-self: center;
    font-size: 13px;
    padding: 10px 18px;
    background: var(--color-brand-light);
    color: var(--color-brand-active) !important;
    border: 2px solid var(--color-accent-border);
    transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.footer-top:hover,
.footer-top:focus-visible {
    background: var(--color-brand-primary);
    color: var(--color-text-light) !important;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px var(--color-shadow-md);
    outline: 3px solid var(--color-border-focus);
}

.footer-top:active {
    transform: translateY(0);
}

@media (min-width: 768px) {
    .footer-top {
        font-size: 14px;
        padding: 11px 20px;
    }
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    padding: 16px;
    overflow-y: auto;
}

.modal-dialog {
    width: 100%;
    margin: auto;
    position: relative;
    max-height: calc(100vh - 32px);
    display: flex;
    flex-direction: column;
}

.modal-sm {
    max-width: 400px;
}

.modal-md {
    max-width: 600px;
}

.modal-lg {
    max-width: 800px;
}

.modal-xl {
    max-width: 1140px;
}

.modal-content {
    background: var(--color-bg-primary);
    border: 3px solid var(--color-accent-border);
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
    max-height: calc(100vh - 32px);
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 2px solid var(--color-accent-border);
    background: var(--color-bg-secondary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.modal-title {
    margin: 0;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    color: var(--color-text-primary);
}

.modal-close {
    background: transparent;
    border: 2px solid var(--color-accent-border);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    color: var(--color-text-primary);
    font-weight: 700;
    padding: 0;
    margin: 0;
    flex-shrink: 0;
}

.modal-close:hover {
    background: var(--color-brand-primary);
    color: var(--color-text-light);
    border-color: var(--color-brand-primary);
}

.modal-close:focus {
    outline: 3px solid var(--color-border-focus);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1 1 auto;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 2px solid var(--color-accent-border);
    background: var(--color-bg-secondary);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-shrink: 0;
}

/* Mobile responsive */
@media (max-width: 767px) {
    .modal-overlay {
        padding: 8px;
        align-items: flex-start;
    }
    
    .modal-dialog {
        max-height: calc(100vh - 16px);
        margin-top: 8px;
        margin-bottom: 8px;
    }
    
    .modal-content {
        max-height: calc(100vh - 16px);
    }
    
    .modal-header {
        padding: 16px;
    }
    
    .modal-title {
        font-size: 1.1rem;
    }
    
    .modal-close {
        width: 32px;
        height: 32px;
        font-size: 24px;
    }
    
    .modal-body {
        padding: 16px;
    }
    
    .modal-footer {
        padding: 12px 16px;
        flex-wrap: wrap;
    }
    
    .modal-footer .btn {
        flex: 1;
        min-width: 120px;
    }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 991px) {
    .modal-overlay {
        padding: 12px;
    }
    
    .modal-dialog {
        max-height: calc(100vh - 24px);
    }
    
    .modal-content {
        max-height: calc(100vh - 24px);
    }
}


/* Table Styles */
.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-bg-primary);
    border: 2px solid var(--color-accent-border);
}

.table thead {
    background: var(--color-bg-secondary);
    border-bottom: 2px solid var(--color-accent-border);
}

.table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--color-text-primary);
    border-bottom: 2px solid var(--color-accent-border);
}

.table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-accent-divider);
    color: var(--color-text-primary);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table tbody tr:hover {
    background: var(--color-bg-secondary);
}

.table-striped tbody tr:nth-of-type(odd) {
    background: var(--color-bg-tertiary);
}

.table-striped tbody tr:nth-of-type(odd):hover {
    background: var(--color-bg-secondary);
}

.table-bordered {
    border: 2px solid var(--color-accent-border);
}

.table-bordered th,
.table-bordered td {
    border: 1px solid var(--color-accent-divider);
}

.table-sm th,
.table-sm td {
    padding: 8px 12px;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 767px) {
    .table {
        font-size: 14px;
    }
    
    .table th,
    .table td {
        padding: 10px 12px;
    }
    
    .table-sm th,
    .table-sm td {
        padding: 6px 8px;
    }
}


/* Nav Tabs Styles */
.nav-tabs {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 2px solid var(--color-accent-border);
    gap: 0;
}

.nav-tabs .nav-item {
    margin-bottom: -2px;
}

.nav-tabs .nav-link {
    display: block;
    padding: 12px 24px;
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.03em;
    border: 2px solid transparent;
    border-bottom: none;
    background: var(--color-bg-tertiary);
    transition: all 0.2s ease;
    margin-right: 4px;
}

.nav-tabs .nav-link:hover {
    color: var(--color-brand-primary);
    background: var(--color-bg-secondary);
    border-color: var(--color-accent-divider);
    border-bottom-color: transparent;
}

.nav-tabs .nav-link.active {
    color: var(--color-text-primary);
    background: var(--color-bg-primary);
    border-color: var(--color-accent-border);
    border-bottom-color: var(--color-bg-primary);
    font-weight: 700;
}

.nav-tabs .nav-link:focus-visible {
    outline: 3px solid var(--color-border-focus);
    outline-offset: -3px;
}

.nav-tabs .nav-link:disabled,
.nav-tabs .nav-link.disabled {
    color: var(--color-text-disabled);
    background: var(--color-state-disabled);
    cursor: not-allowed;
    pointer-events: none;
}

/* Small Nav Tabs */
.nav-tabs.nav-sm .nav-link {
    padding: 8px 16px;
    font-size: 14px;
    margin-right: 2px;
}

@media (max-width: 767px) {
    .nav-tabs .nav-link {
        padding: 10px 16px;
        font-size: 14px;
        margin-right: 2px;
    }
}

/* Tab Content */
.tab-content {
    padding: 24px;
    background: var(--color-bg-primary);
    border: 2px solid var(--color-accent-border);
    border-top: none;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

@media (max-width: 767px) {
    .tab-content {
        padding: 16px;
    }
}



/* Accordion Styles */
.accordion {
    border: 0;
    background: var(--color-bg-primary);
}

.accordion-item {
    border-bottom: 1px solid var(--color-accent-divider);
}

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

.accordion-header {
    margin: 0;
}

.accordion-button {
    width: 100%;
    padding: 16px 20px;
    background: var(--color-bg-secondary);
    color: var(--color-text-primary);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-align: left;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.accordion-button:hover {
    background: var(--color-brand-light);
    color: var(--color-brand-active);
}

.accordion-button:focus-visible {
    outline: 3px solid var(--color-border-focus);
    outline-offset: -3px;
}

.accordion-button::after {
    content: "▼";
    font-size: 0.85em;
    flex-shrink: 0;
    margin-left: 12px;
}

.accordion-button:not(.collapsed) {
    background: var(--color-brand-primary);
    color: var(--color-text-light);
}

.accordion-button:not(.collapsed)::after {
    transform: rotate(180deg);
}

.accordion-button.collapsed::after {
    transform: rotate(0deg);
}

.accordion-collapse {
    max-height: 0;
    overflow: hidden;
}

.accordion-collapse.show {
    max-height: 2000px;
}

.accordion-body {
    padding: 20px;
    background: var(--color-bg-primary);
    color: var(--color-text-primary);
    border-top: 1px solid var(--color-accent-divider);
}

/* Accordion Flush Variant */
.accordion-flush .accordion-item {
    border-left: none;
    border-right: none;
}

.accordion-flush .accordion-item:first-child {
    border-top: none;
}

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

@media (max-width: 767px) {
    .accordion-button {
        padding: 14px 16px;
        font-size: 14px;
    }
    
    .accordion-body {
        padding: 16px;
        font-size: 14px;
    }
}

/* Navbar Logo */
.navbar-logo {
    height: 60px;
    width: auto;
    max-width: 160px;
    min-width: 40px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

.va-middle {
    vertical-align: middle !important;
}