/**
 * LIMATS brand theme matched to https://limats.com/
 */
:root {
    /* Brand palette */
    --limats-primary: #EFA349;
    --limats-primary-light: #FFF5E9;
    --limats-primary-dark: #D67D13;
    --limats-secondary: #F5F2DD;
    --limats-bg: #FFFFFF;
    --limats-text: #333333;
    --limats-text-secondary: #666666;
    --limats-text-muted: #888888;
    --limats-text-light: #FFFFFF;
    --limats-border: #D6D6D6;
    --limats-disabled-bg: #DDDDDD;
    --limats-disabled-text: #BDBDBD;
    --limats-error: #FF515C;
    --limats-shadow: rgba(0, 0, 0, 0.12);

    /* Bootstrap overrides */
    --bs-primary: #EFA349;
    --bs-primary-rgb: 239, 163, 73;
    --bs-secondary: #F5F2DD;
    --bs-secondary-rgb: 245, 242, 221;
    --bs-body-color: #333333;
    --bs-body-bg: #FFFFFF;
    --bs-link-color: #D67D13;
    --bs-link-hover-color: #EFA349;
    --bs-border-color: #D6D6D6;
    --bs-focus-ring-color: rgba(239, 163, 73, 0.35);

    /* Form selects — system-wide LIMATS styling (see limats-select.css + limats-select.js) */
    --limats-select-bg: #fafafa;
    --limats-select-bg-hover: #fff;
    --bs-form-select-bg: var(--limats-select-bg);
    --bs-form-select-border-color: var(--limats-border);
    --bs-form-select-focus-border-color: rgba(214, 125, 19, 0.55);
    --bs-form-select-focus-box-shadow: 0 0 0 3px rgba(239, 163, 73, 0.15);
    --bs-form-select-indicator-color: #D67D13;

    /* Layout */
    --limats-font-title: 'Lusitana', Georgia, serif;
    --limats-font-body: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
    --limats-radius: 8px;
    --limats-radius-pill: 50px;
}

* { scroll-behavior: smooth; }

body {
    font-family: var(--limats-font-body);
    color: var(--limats-text);
    background: var(--limats-bg);
}

h1, h2, h3, h4, h5, h6,
.hero-title,
.section-title {
    font-family: var(--limats-font-title);
    color: var(--limats-text);
}

.text-limats-primary { color: var(--limats-primary) !important; }
.text-limats-muted { color: var(--limats-text-muted) !important; }
.text-limats-secondary { color: var(--limats-text-secondary) !important; }
.bg-limats-primary { background-color: var(--limats-primary) !important; }
.bg-limats-light { background-color: var(--limats-primary-light) !important; }
.bg-limats-secondary { background-color: var(--limats-secondary) !important; }

/* Parallax / page shell */
.parallax-wrapper {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: var(--limats-bg);
}

.parallax-layer {
    position: absolute;
    inset: 0;
    will-change: transform;
    pointer-events: none;
}

.parallax-bg-1 {
    background: linear-gradient(180deg, var(--limats-primary-light) 0%, var(--limats-bg) 45%, var(--limats-secondary) 100%);
    z-index: 0;
}

.parallax-bg-2 {
    background:
        radial-gradient(ellipse at 15% 20%, rgba(239, 163, 73, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 75%, rgba(214, 125, 19, 0.12) 0%, transparent 50%);
    z-index: 1;
}

.parallax-content {
    position: relative;
    z-index: 10;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    animation: limats-float 10s ease-in-out infinite;
    pointer-events: none;
}

.shape-1 {
    width: 280px; height: 280px;
    background: rgba(239, 163, 73, 0.25);
    top: 8%; right: 8%;
}

.shape-2 {
    width: 200px; height: 200px;
    background: rgba(245, 242, 221, 0.9);
    bottom: 15%; left: 5%;
    animation-delay: -4s;
}

.shape-3 {
    width: 160px; height: 160px;
    background: rgba(214, 125, 19, 0.15);
    top: 45%; left: 42%;
    animation-delay: -6s;
}

@keyframes limats-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-24px); }
}

/* Navbar sticky at top of viewport */
.navbar-limats-sticky {
    position: sticky;
    top: 0;
    z-index: 1030;
    width: 100%;
}

/* Modals must sit above sticky navbar (rendered via @stack('modals') on body) */
.modal-backdrop {
    z-index: 1040;
}

.modal {
    z-index: 1050;
}

.navbar-limats {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--limats-border);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.navbar-limats.scrolled {
    box-shadow: 0 4px 24px var(--limats-shadow);
    background: rgba(255, 255, 255, 0.98);
}

.navbar-brand {
    font-family: var(--limats-font-title);
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--limats-primary) !important;
}

.navbar-limats .nav-link {
    color: var(--limats-text) !important;
    font-weight: 500;
}

.navbar-limats .nav-link:hover {
    color: var(--limats-primary-dark) !important;
}

.navbar-limats .navbar-toggler {
    border-color: var(--limats-border);
    color: var(--limats-primary-dark);
}

.navbar-limats .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(239, 163, 73, 0.25);
}

/* Mobile nav offcanvas */
.navbar-offcanvas-limats {
    width: min(320px, 88vw);
    border-left: 1px solid var(--limats-border);
    background: var(--limats-bg);
    z-index: 1065;
}

.offcanvas-backdrop {
    z-index: 1060;
}

.navbar-offcanvas-limats .offcanvas-header {
    padding: 1.25rem 1.25rem 0.75rem;
    border-bottom: 1px solid var(--limats-border);
}

.navbar-offcanvas-limats .offcanvas-title {
    font-family: var(--limats-font-title);
    font-weight: 700;
    color: var(--limats-primary);
}

.navbar-offcanvas-limats .offcanvas-body {
    padding: 1rem 1.25rem 1.5rem;
}

.navbar-offcanvas-limats .nav-link {
    font-size: 1.05rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(214, 125, 19, 0.12);
}

.navbar-offcanvas-limats .nav-link.active {
    color: var(--limats-primary-dark) !important;
}

.navbar-offcanvas-limats .nav-item:last-child .nav-link {
    border-bottom: none;
}

/* Buttons */
.btn-limats-primary,
.btn-gradient {
    background: var(--limats-primary);
    border: 2px solid var(--limats-primary);
    color: var(--limats-text-light);
    font-weight: 600;
    padding: 0.65rem 1.75rem;
    border-radius: var(--limats-radius-pill);
    transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-limats-primary:hover,
.btn-gradient:hover {
    background: var(--limats-primary-dark);
    border-color: var(--limats-primary-dark);
    color: var(--limats-text-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(214, 125, 19, 0.35);
}

.btn-limats-outline {
    background: transparent;
    border: 2px solid var(--limats-primary);
    color: var(--limats-primary-dark);
    font-weight: 600;
    padding: 0.65rem 1.75rem;
    border-radius: var(--limats-radius-pill);
    transition: all 0.2s;
}

.btn-limats-outline:hover {
    background: var(--limats-primary-light);
    border-color: var(--limats-primary-dark);
    color: var(--limats-primary-dark);
}

.btn-limats-secondary {
    background: var(--limats-secondary);
    border: 2px solid var(--limats-border);
    color: var(--limats-text);
    font-weight: 600;
    padding: 0.65rem 1.75rem;
    border-radius: var(--limats-radius-pill);
}

.btn-limats-secondary:hover {
    background: var(--limats-primary-light);
    border-color: var(--limats-primary);
    color: var(--limats-text);
}

.btn-google {
    background: var(--limats-bg);
    color: var(--limats-text);
    border: 2px solid var(--limats-border);
    font-weight: 600;
    padding: 0.65rem 1.75rem;
    border-radius: var(--limats-radius-pill);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    text-align: center;
    transition: all 0.2s;
}

.btn-google:hover {
    border-color: var(--limats-primary);
    background: var(--limats-primary-light);
    color: var(--limats-text);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--limats-shadow);
}

.btn-outline-limats {
    border: 2px solid var(--limats-primary);
    color: var(--limats-primary-dark);
    border-radius: var(--limats-radius-pill);
    font-weight: 600;
}

.btn-outline-limats:hover {
    background: var(--limats-primary);
    border-color: var(--limats-primary);
    color: #fff;
}

/* Cards */
.limats-card,
.glass-card {
    background: var(--limats-bg);
    border: 1px solid var(--limats-border);
    border-radius: var(--limats-radius);
    padding: 2rem;
    box-shadow: 0 4px 20px var(--limats-shadow);
    transition: transform 0.25s, box-shadow 0.25s;
}

.limats-card:hover,
.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(214, 125, 19, 0.15);
}

.limats-card-accent {
    border-top: 4px solid var(--limats-primary);
}

/* Hero */
.hero-section {
    position: relative;
}

.hero-section--cover {
    background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.45)),
        url('/assets/limats-website/images/004_2691366737699840_1.jpg') center / cover no-repeat;
    color: var(--limats-text-light);
}

.hero-section--cover .hero-title,
.hero-section--cover .hero-subtitle,
.hero-section--cover h1,
.hero-section--cover p {
    color: var(--limats-text-light);
}

.hero-title {
    font-size: clamp(2.25rem, 5.5vw, 3.75rem);
    font-weight: 700;
    line-height: 1.15;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--limats-text-secondary);
    max-width: 620px;
}

.hero-section--cover .hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.hero-section--cover .btn-limats-outline.text-white {
    border-color: #fff;
    color: #fff;
}

.hero-section--cover .btn-limats-outline.text-white:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    color: #fff;
}

.section-limats {
    background: var(--limats-secondary);
}

.section-limats-alt {
    background: var(--limats-primary-light);
}

/* Badges */
.badge-limats {
    background: var(--limats-primary-light);
    color: var(--limats-primary-dark);
    border: 1px solid rgba(239, 163, 73, 0.35);
    font-weight: 600;
}

.badge-limats-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.badge-limats-info {
    background: var(--limats-primary-light);
    color: var(--limats-primary-dark);
    border: 1px solid rgba(239, 163, 73, 0.4);
}

/* Events / list items */
.event-item {
    background: var(--limats-primary-light);
    border: 1px solid rgba(239, 163, 73, 0.25);
    border-radius: var(--limats-radius);
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    transition: background 0.2s, border-color 0.2s;
}

.event-item:hover {
    background: var(--limats-secondary);
    border-color: var(--limats-primary);
}

/* Footer */
.footer-limats {
    color: rgba(255, 255, 255, 0.88);
    border-top: 4px solid var(--limats-primary);
    background:
        linear-gradient(165deg, #1a1a1a 0%, #252525 45%, #1f1a14 100%);
}

.footer-limats__main {
    padding: 3.5rem 0 2.5rem;
}

.footer-limats__grid {
    display: grid;
    grid-template-columns: 1.35fr repeat(4, minmax(0, 1fr));
    gap: 2rem 2.25rem;
}

.footer-limats__menus {
    display: contents;
}

.footer-limats__logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    margin-bottom: 1.25rem;
}

.footer-limats__logo span {
    font-family: var(--limats-font-title);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--limats-primary);
}

.footer-limats__slogan {
    font-family: var(--limats-font-title);
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 0.65rem;
}

.footer-limats__tagline {
    font-size: 0.92rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.68);
    margin-bottom: 1.35rem;
    max-width: 320px;
}

.footer-limats__social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.footer-limats__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(239, 163, 73, 0.35);
    background: rgba(239, 163, 73, 0.1);
    color: var(--limats-primary);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.footer-limats__social-link:hover {
    background: var(--limats-primary);
    border-color: var(--limats-primary);
    color: #fff;
    transform: translateY(-2px);
}

.footer-limats__heading {
    font-family: var(--limats-font-title);
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

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

.footer-limats__links li + li {
    margin-top: 0.55rem;
}

.footer-limats__links a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.2s ease;
}

.footer-limats__links a:hover {
    color: var(--limats-primary);
}

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

.footer-limats__contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.72);
}

.footer-limats__contact li + li {
    margin-top: 0.85rem;
}

.footer-limats__contact i {
    color: var(--limats-primary);
    margin-top: 0.15rem;
    width: 1rem;
    flex-shrink: 0;
}

.footer-limats__contact a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-limats__contact a:hover {
    color: var(--limats-primary);
}

.footer-limats__cta-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.68);
    margin-bottom: 1rem;
}

.footer-limats__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.15rem 0;
    background: rgba(0, 0, 0, 0.22);
}

.footer-limats__bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
}

.footer-limats__bottom-slogan {
    font-family: var(--limats-font-title);
    color: rgba(239, 163, 73, 0.85);
    font-size: 0.88rem;
}

@media (max-width: 1199px) {
    .footer-limats__grid {
        grid-template-columns: 1.2fr repeat(2, 1fr);
    }

    .footer-limats__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 991px) {
    .footer-limats__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 575px) {
    .footer-limats__main {
        padding: 2.5rem 0 2rem;
    }

    .footer-limats__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-limats__menus {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem 1.5rem;
        grid-column: 1 / -1;
    }

    .footer-limats__bottom-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* Avatar */
.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--limats-primary);
}

/* Frontend profile menu */
.frontend-user-menu__dropdown {
    position: relative;
}

.frontend-user-menu__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.35rem 0.55rem 0.35rem 0.35rem;
    border-radius: 999px;
    border: 1px solid var(--limats-border);
    background: rgba(255, 255, 255, 0.88);
    color: var(--limats-text);
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.frontend-user-menu__toggle:hover,
.frontend-user-menu__toggle.show {
    border-color: color-mix(in srgb, var(--limats-primary) 35%, var(--limats-border));
    background: #fff;
    box-shadow: 0 8px 24px rgba(239, 163, 73, 0.12);
    color: var(--limats-text);
}

.frontend-user-menu__toggle::after {
    margin-left: 0.15rem;
    color: var(--limats-text-muted);
}

.frontend-user-menu__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--limats-primary);
    flex-shrink: 0;
}

.frontend-user-menu__avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--limats-primary) 14%, #fff);
    color: var(--limats-primary-dark);
    font-size: 0.85rem;
}

.frontend-user-menu__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.05rem;
    min-width: 0;
    max-width: 9rem;
}

.frontend-user-menu__name {
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--limats-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.frontend-user-menu__role {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--limats-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.frontend-user-dropdown {
    --bs-dropdown-bg: #fff;
    --bs-dropdown-border-color: var(--limats-border);
    border: 1px solid var(--limats-border);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(15, 23, 42, 0.06);
    padding: 0;
    min-width: 280px;
    overflow: hidden;
    margin-top: 0.55rem !important;
}

.frontend-user-dropdown__header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem;
    background: linear-gradient(135deg, color-mix(in srgb, var(--limats-primary) 12%, #fff) 0%, transparent 100%);
    border-bottom: 1px solid var(--limats-border);
}

.frontend-user-dropdown__avatar {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    object-fit: cover;
    border: 2px solid color-mix(in srgb, var(--limats-primary) 35%, #fff);
    flex-shrink: 0;
}

.frontend-user-dropdown__avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--limats-primary) 14%, #fff);
    color: var(--limats-primary-dark);
    font-size: 1.1rem;
}

.frontend-user-dropdown__user {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 0.1rem;
}

.frontend-user-dropdown__name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--limats-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.frontend-user-dropdown__email {
    font-size: 0.78rem;
    color: var(--limats-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.frontend-user-dropdown__role {
    display: inline-flex;
    align-self: flex-start;
    margin-top: 0.35rem;
    padding: 0.2rem 0.55rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--limats-primary-dark);
    background: color-mix(in srgb, var(--limats-primary) 15%, #fff);
    border-radius: 50px;
}

.frontend-user-dropdown__body {
    padding: 0.35rem 0;
}

.frontend-user-dropdown__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.72rem 1rem;
    color: var(--limats-text);
    text-decoration: none;
    transition: background 0.15s ease;
}

.frontend-user-dropdown__item:hover {
    background: color-mix(in srgb, var(--limats-primary) 8%, #fff);
    color: var(--limats-text);
}

.frontend-user-dropdown__item-icon {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: color-mix(in srgb, var(--limats-primary) 10%, #fff);
    color: var(--limats-primary-dark);
    flex-shrink: 0;
}

.frontend-user-dropdown__item-icon-accent {
    background: color-mix(in srgb, var(--limats-primary) 18%, #fff);
}

.frontend-user-dropdown__item-label {
    flex: 1 1 auto;
    font-size: 0.9rem;
    font-weight: 600;
}

.frontend-user-dropdown__item-arrow {
    font-size: 0.72rem;
    color: var(--limats-text-muted);
}

.frontend-user-dropdown__footer {
    padding: 0.65rem 1rem 0.85rem;
    border-top: 1px solid var(--limats-border);
}

.frontend-user-dropdown__logout {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.55rem 0;
    border: 0;
    background: transparent;
    color: #DC2626;
    font-weight: 600;
}

.frontend-user-dropdown__logout:hover {
    color: #B91C1C;
}

.frontend-user-dropdown__item-icon-danger {
    background: color-mix(in srgb, #DC2626 12%, #fff);
    color: #DC2626;
}

.frontend-user-menu-mobile {
    padding: 0.85rem;
    border-radius: 14px;
    border: 1px solid var(--limats-border);
    background: #fff;
}

.frontend-user-menu-mobile__head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.85rem;
    margin-bottom: 0.85rem;
    border-bottom: 1px solid var(--limats-border);
}

.frontend-user-menu-mobile__copy {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.frontend-user-menu-mobile__copy strong {
    font-size: 0.95rem;
    color: var(--limats-text);
}

.frontend-user-menu-mobile__copy span {
    font-size: 0.78rem;
    color: var(--limats-text-muted);
}

.frontend-user-menu-mobile__links {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.85rem;
}

.frontend-user-menu-mobile__link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--limats-text);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
}

.frontend-user-menu-mobile__link:hover {
    background: color-mix(in srgb, var(--limats-primary) 8%, #fff);
    color: var(--limats-text);
}

.frontend-user-menu-mobile__link i {
    width: 1.25rem;
    color: var(--limats-primary-dark);
}

.frontend-user-menu-mobile__logout {
    margin: 0;
}


/* Icons */
.icon-limats {
    color: var(--limats-primary);
}

/* Toastr LIMATS colors */
#toast-container > .toast-success {
    background-color: var(--limats-primary-dark);
}

#toast-container > .toast-error {
    background-color: var(--limats-error);
}

#toast-container > .toast-info {
    background-color: var(--limats-primary);
}

/* Bootstrap component tweaks */
.btn-primary {
    --bs-btn-bg: var(--limats-primary);
    --bs-btn-border-color: var(--limats-primary);
    --bs-btn-hover-bg: var(--limats-primary-dark);
    --bs-btn-hover-border-color: var(--limats-primary-dark);
    --bs-btn-active-bg: var(--limats-primary-dark);
    --bs-btn-active-border-color: var(--limats-primary-dark);
    --bs-btn-disabled-bg: var(--limats-disabled-bg);
    --bs-btn-disabled-border-color: var(--limats-disabled-bg);
    border-radius: var(--limats-radius-pill);
    font-weight: 600;
}

.form-control,
.form-select {
    border: 1px solid var(--limats-border);
    border-radius: calc(var(--limats-radius) + 2px);
    padding: 0.65rem 0.95rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--limats-text);
    background-color: #fafafa;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-control:not(textarea) {
    min-height: 2.75rem;
}

.form-select {
    min-height: 2.75rem;
    padding-right: 2.5rem;
    cursor: pointer;
    font-weight: 500;
    accent-color: var(--limats-primary-dark);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: var(--limats-select-bg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23D67D13'%3E%3Cpath d='M4.5 6.5 8 10l3.5-3.5' stroke='%23D67D13' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    background-size: 0.95rem;
}

.form-select:hover:not(:disabled):not(:focus) {
    background-color: var(--limats-select-bg-hover);
}

.form-select:disabled {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23BDBDBD'%3E%3Cpath d='M4.5 6.5 8 10l3.5-3.5' stroke='%23BDBDBD' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
}

/* Placeholder option on required selects */
.form-select:required:invalid {
    color: var(--limats-text-muted);
}

.form-select option {
    color: var(--limats-text);
    background-color: #fff;
}

.form-select option[value=""],
.form-select option:disabled {
    color: var(--limats-text-muted);
}

.form-select.is-invalid,
.was-validated .form-select:invalid {
    border-color: var(--limats-error);
    --bs-form-select-border-color: var(--limats-error);
}

.form-select.is-invalid:focus,
.was-validated .form-select:invalid:focus {
    border-color: var(--limats-error);
    box-shadow: 0 0 0 3px rgba(255, 81, 92, 0.15);
}

.form-select.is-valid,
.was-validated .form-select:valid {
    border-color: rgba(214, 125, 19, 0.55);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-control::placeholder {
    color: var(--limats-text-muted);
    opacity: 1;
}

.form-control:hover:not(:disabled):not(:focus),
.form-select:hover:not(:disabled):not(:focus) {
    border-color: rgba(214, 125, 19, 0.35);
    background-color: #fff;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(214, 125, 19, 0.55);
    box-shadow: 0 0 0 3px rgba(239, 163, 73, 0.15);
    background-color: #fff;
}

.form-control:disabled,
.form-select:disabled {
    background-color: var(--limats-disabled-bg);
    color: var(--limats-disabled-text);
    cursor: not-allowed;
}

.ms-form .form-label,
.form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--limats-text);
    margin-bottom: 0.4rem;
}

.ms-form--inline {
    align-items: stretch;
}

.ms-form--inline .col-md-5,
.ms-form--inline .col-auto {
    display: flex;
    align-items: stretch;
}

.ms-form--inline .form-control {
    width: 100%;
    height: 100%;
}

.ms-form--inline .btn {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}
