﻿.form-control,
input[type="text"],
input[type="date"],
input[type="datetime-local"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 16px 20px;
    background-color: rgba(var(--white), 0.8);
    border: 2px solid rgba(var(--border), 0.6);
    border-radius: 12px;
    color: rgb(var(--text));
    font-family: var(--font);
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

input::placeholder,
textarea::placeholder {
    color: rgba(var(--text),.3);
}

input:focus, 
select:focus, 
textarea:focus {
    border: 2px solid rgba(var(--primary), 0.6);
    box-shadow: 0 0 0 3px rgba(var(--primary), 0.1);
    background-color: rgb(var(--primary),.06);
    transform: translateY(-1px);
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23686876' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

select:disabled {
    background-color: rgb(var(--l-gray));
    cursor: not-allowed;
}

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

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}

/* ======================================
   SHARED STEP NAVIGATION
   ====================================== */
.steps-container,
.modal-stages {
    position: relative;
    display: flex;
    justify-content: space-between;
    margin: 40px 0;
    width: 100%;
    padding: 0 24px;
    gap: 32px;
}

.steps-container.steps-container--modal,
.modal-stages.steps-container--modal {
    margin: 24px 0 32px;
    padding: 0 32px;
    gap: 24px;
}

.steps-container .progress-line,
.modal-stages .progress-line {
    position: absolute;
    top: 30px;
    left: 50px;
    width: calc(100% - 100px);
    height: 4px;
    background: linear-gradient(90deg, rgba(var(--border), 0.4), rgba(var(--primary), 0.5));
    z-index: 1;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.steps-container.steps-container--modal .progress-line,
.modal-stages.steps-container--modal .progress-line {
    left: 40px;
    width: calc(100% - 80px);
}

.steps-container .progress-line::after,
.modal-stages .progress-line::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(var(--primary), 0.2), rgba(var(--primary), 0.9));
    border-radius: inherit;
    width: var(--progress-width, 0%);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.steps-container .step,
.steps-container .stage-indicator,
.modal-stages .step,
.modal-stages .stage-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
    cursor: pointer;
    gap: 10px;
}

.steps-container .step:hover,
.modal-stages .stage-indicator:hover {
    transform: translateY(-4px);
}

.steps-container .step-circle,
.modal-stages .stage-number {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, rgb(var(--white)), rgba(var(--white), 0.95));
    border: 3px solid rgba(var(--border), 0.5);
    border-radius: 50%;
    font-weight: 700;
    font-size: 22px;
    color: rgba(var(--l-text), 0.7);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.steps-container.steps-container--modal .step-circle,
.modal-stages.steps-container--modal .stage-number {
    width: 56px;
    height: 56px;
    font-size: 20px;
}

.steps-container .step-circle::before,
.modal-stages .stage-number::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: var(--l-g-regular);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.steps-container .step-circle:hover::before,
.modal-stages .stage-number:hover::before {
    opacity: 0.15;
}

.steps-container .step.active .step-circle,
.modal-stages .stage-indicator.active .stage-number {
    background: var(--l-g-regular);
    color: rgb(var(--white));
    border-color: rgb(var(--primary));
    box-shadow: 0 6px 20px rgba(var(--primary), 0.25), 0 0 0 6px rgba(var(--primary), 0.1);
    transform: scale(1.08);
}

.steps-container .step.active .step-circle::before,
.modal-stages .stage-indicator.active .stage-number::before {
    opacity: 1;
}

.steps-container .step-circle.active,
.steps-container .step-circle.completed,
.modal-stages .stage-number.active,
.modal-stages .stage-number.completed {
    color: rgb(var(--white));
    border-color: rgb(var(--primary));
    transform: scale(1.08);
}

.steps-container .step-circle.active,
.modal-stages .stage-number.active {
    background: var(--l-g-regular);
    box-shadow: 0 6px 20px rgba(var(--primary), 0.25), 0 0 0 6px rgba(var(--primary), 0.1);
}

.steps-container .step-circle.completed,
.modal-stages .stage-number.completed {
    background: linear-gradient(135deg, rgb(var(--success)), rgba(var(--success), 0.9));
    border-color: rgb(var(--success));
    box-shadow: 0 6px 24px rgba(var(--success), 0.35), 0 0 0 6px rgba(var(--success), 0.12);
}

.steps-container .step-circle.completed::after,
.modal-stages .stage-number.completed::after {
    content: '✓';
    font-size: 26px;
    font-weight: 900;
    animation: checkBounce 0.4s ease-out;
}

.steps-container .step-label,
.steps-container .stage-label,
.modal-stages .step-label,
.modal-stages .stage-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(var(--l-text), 0.75);
    text-align: center;
    max-width: 120px;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.steps-container .step-label .optional-badge {
    display: block;
    font-size: 10px;
    font-weight: 500;
    color: rgba(var(--l-text), 0.5);
    margin-top: 2px;
    font-style: italic;
}

.steps-container .step-label.active,
.modal-stages .stage-label.active {
    color: rgb(var(--primary));
    font-weight: 700;
}

.steps-container .step.active .step-label,
.modal-stages .stage-indicator.active .stage-label {
    color: rgb(var(--primary));
    font-weight: 700;
}

.steps-container .step-label.completed,
.modal-stages .stage-label.completed {
    color: rgb(var(--success));
    font-weight: 700;
}

.steps-container .step.optional .step-circle {
    border-style: dashed;
    border-color: rgba(var(--border), 0.4);
}

.steps-container .step.optional .step-label {
    opacity: 0.75;
}

.steps-container .step-circle.completed::before,
.modal-stages .stage-number.completed::before {
    opacity: 0.25;
}

@keyframes checkBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.modal-stage {
    display: none;
}

.modal-stage.active {
    display: block;
    animation: stageSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes stageSlideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Hide native date/datetime picker indicators */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator,
input[type="date"]::-webkit-inner-spin-button,
input[type="datetime-local"]::-webkit-inner-spin-button,
input[type="date"]::-webkit-clear-button,
input[type="datetime-local"]::-webkit-clear-button {
    display: none;
    -webkit-appearance: none;
}

input[type="date"]::-moz-calendar-picker-indicator,
input[type="datetime-local"]::-moz-calendar-picker-indicator {
    display: none;
}

input[type="date"]:not([data-flatpickr="true"]),
input[type="datetime-local"]:not([data-flatpickr="true"]) {
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    color: transparent !important;
    background-color: rgb(var(--input-bg)) !important;
    pointer-events: none !important;
}

/*----------------FLATPICKR CUSTOM STYLES----------------*/
.flatpickr-wrapper {
    position: relative;
    width: 100%;
}

.flatpickr-icon {
    position: absolute;
    font-size: 20px;
    color: rgb(var(--primary));
    cursor: pointer;
    z-index: 10;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                background 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    opacity: 0.75;
}

.flatpickr-icon:hover {
    transform: translateY(-2px);
    opacity: 1;
    background: rgba(var(--primary), 0.1);
    box-shadow: 0 8px 20px rgba(var(--primary), 0.4), 0 4px 8px rgba(var(--primary), 0.3);
}

.flatpickr-icon:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(var(--primary), 0.2);
}

[data-theme="dark"] .flatpickr-icon {
    opacity: 0.85;
}

[data-theme="dark"] .flatpickr-icon:hover {
    opacity: 1;
    background: rgba(var(--primary), 0.15);
}

.flatpickr-input {
    padding-right: 50px !important;
    cursor: pointer;
    caret-color: transparent;
    user-select: none;
}

.flatpickr-input:not(:disabled):not([disabled]) {
    cursor: pointer !important;
}

.flatpickr-input:disabled,
.flatpickr-input[disabled] {
    opacity: 1 !important;
    color: rgb(var(--text)) !important;
    background-color: rgba(var(--l-gray), 0.3) !important;
    cursor: not-allowed !important;
}

.flatpickr-icon.disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    background: transparent !important;
}

.flatpickr-icon.disabled:hover {
    cursor: not-allowed !important;
    transform: none !important;
    opacity: 0.5 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.flatpickr-calendar.custom-datepicker {
    background: rgb(var(--white));
    border: 2px solid rgba(var(--border), 0.6);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    padding: 12px;
    font-family: var(--font);
    margin-top: 8px;
    z-index: 9999 !important;
    width: 328px !important;
    overflow: hidden;
}

.flatpickr-calendar.custom-datepicker:not(.open) {
    display: none;
}

.flatpickr-calendar.custom-datepicker.open {
    display: block !important;
    animation: fadeIn 0.2s ease-out;
}

@keyframes dayPop {
    0% {
        opacity: 0;
        transform: scale(0.3) rotate(-8deg) translateY(20px);
    }
    50% {
        transform: scale(1.1) rotate(2deg) translateY(-5px);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg) translateY(0);
    }
}

.flatpickr-calendar.custom-datepicker.open .flatpickr-day {
    animation: dayPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.flatpickr-calendar.custom-datepicker.open .flatpickr-day:nth-child(1) { animation-delay: 0.03s; }
.flatpickr-calendar.custom-datepicker.open .flatpickr-day:nth-child(2) { animation-delay: 0.04s; }
.flatpickr-calendar.custom-datepicker.open .flatpickr-day:nth-child(3) { animation-delay: 0.05s; }
.flatpickr-calendar.custom-datepicker.open .flatpickr-day:nth-child(4) { animation-delay: 0.06s; }
.flatpickr-calendar.custom-datepicker.open .flatpickr-day:nth-child(5) { animation-delay: 0.07s; }
.flatpickr-calendar.custom-datepicker.open .flatpickr-day:nth-child(6) { animation-delay: 0.08s; }
.flatpickr-calendar.custom-datepicker.open .flatpickr-day:nth-child(7) { animation-delay: 0.09s; }
.flatpickr-calendar.custom-datepicker.open .flatpickr-day:nth-child(n+8) { animation-delay: 0.1s; }

.flatpickr-calendar.custom-datepicker.arrowTop:before,
.flatpickr-calendar.custom-datepicker.arrowTop:after {
    display: none;
}

.flatpickr-calendar.custom-datepicker.dark-theme {
    background: rgb(var(--l-gray));
    border-color: rgba(var(--border), 0.8);
}

.flatpickr-calendar.custom-datepicker .flatpickr-months {
    margin-bottom: 12px;
}

.flatpickr-calendar.custom-datepicker .flatpickr-month {
    background: transparent;
    color: rgb(var(--text));
    height: 40px;
}

.flatpickr-current-month {
    width: 100% !important;
    font-size: 1.1rem;
    font-weight: 600;
    color: rgb(var(--text));
    padding: 2px 0;
    left: 0;
    top: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.flatpickr-calendar.custom-datepicker .flatpickr-current-month .numInputWrapper {
    width: 80px;
}

.arrowUp, 
.arrowDown {
    border-radius: 8px;
}

.flatpickr-calendar.custom-datepicker .flatpickr-monthDropdown-months,
.flatpickr-calendar.custom-datepicker .numInput {
    background: rgba(var(--white), 0.9);
    border: 1px solid rgba(var(--border), 0.3);
    border-radius: 8px;
    color: rgb(var(--text));
    font-weight: 600;
    padding: 6px 10px;
    font-family: var(--font);
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    box-shadow: none !important;
}

.flatpickr-calendar.custom-datepicker .flatpickr-monthDropdown-months:hover,
.flatpickr-calendar.custom-datepicker .numInput:hover {
    background: rgba(var(--primary), 0.08);
    border-color: rgba(var(--primary), 0.4);
}

.flatpickr-calendar.custom-datepicker.dark-theme .flatpickr-monthDropdown-months,
.flatpickr-calendar.custom-datepicker.dark-theme .numInput {
    background: rgba(var(--l-gray), 0.9);
}

.flatpickr-prev-month {
    left: 5px !important;
}

.flatpickr-next-month {
    right: 5px !important;
}

.flatpickr-calendar.custom-datepicker .flatpickr-prev-month,
.flatpickr-calendar.custom-datepicker .flatpickr-next-month {
    top: 15px !important;
    fill: rgb(var(--primary));
    padding: 8px;
    border-radius: 8px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.flatpickr-calendar.custom-datepicker .flatpickr-prev-month:hover,
.flatpickr-calendar.custom-datepicker .flatpickr-next-month:hover {
    background: rgba(var(--primary), 0.12);
    transform: scale(1.1);
}

.flatpickr-calendar.custom-datepicker .flatpickr-weekdaycontainer {
    width: 100%;
    display: flex;
    justify-content: space-around;
}

.flatpickr-calendar.custom-datepicker .flatpickr-weekday {
    color: rgba(var(--text), 0.6);
    font-size: 0.85rem;
    font-weight: 600;
}

.flatpickr-calendar.custom-datepicker .flatpickr-innerContainer {
    overflow: visible;
    width: 100%;
    display: flex;
    justify-content: center;
}

.flatpickr-calendar.custom-datepicker .flatpickr-rContainer {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.flatpickr-calendar.custom-datepicker .flatpickr-days {
    width: 100% !important;
    border: none;
    overflow: visible;
}

.flatpickr-calendar.custom-datepicker .flatpickr-day {
    color: rgb(var(--text));
    border: none;
    border-radius: 8px;
    font-weight: 500;
    height: 38px;
    line-height: 38px;
    width: 38px;
    margin: 1px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.flatpickr-calendar.custom-datepicker .flatpickr-day:hover:not(.flatpickr-disabled):not(.selected) {
    background: rgba(var(--primary), 0.12);
    color: rgb(var(--primary));
    transform: scale(1.08);
    box-shadow: 0 2px 8px rgba(var(--primary), 0.15);
    font-weight: 600;
    z-index: 5;
}

.flatpickr-calendar.custom-datepicker .flatpickr-day.today {
    border: 2px solid rgb(var(--primary));
    background: rgba(var(--primary), 0.05);
    color: rgb(var(--primary));
    font-weight: 600;
}

.flatpickr-calendar.custom-datepicker .flatpickr-day.selected {
    background: rgb(var(--primary));
    color: rgb(var(--w-text));
    font-weight: 600;
    box-shadow: 0 3px 12px rgba(var(--primary), 0.3);
    z-index: 5;
}

.flatpickr-calendar.custom-datepicker .flatpickr-day.flatpickr-weekend {
    font-weight: 700;
}

.flatpickr-calendar.custom-datepicker .flatpickr-day.selected:hover {
    transform: scale(1.05);
}

.flatpickr-calendar.custom-datepicker .flatpickr-day.flatpickr-day-has-clear {
    position: relative;
}

.flatpickr-clear-day {
    position: absolute;
    bottom: 24px;
    left: 24px;
    width: 22px;
    height: 22px;
    border: 1px solid rgba(var(--primary), 0.5);
    border-radius: 50%;
    color: rgb(var(--primary));
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 0;
    line-height: 1;
    background-clip: padding-box;
}

.flatpickr-clear-day:hover {
    border: 1px solid rgba(var(--error), 0.5);
    transform: scale(1) rotate(90deg);
    color: rgb(var(--error));
}

.flatpickr-clear-day:active {
    transform: scale(1);
}

.flatpickr-calendar.custom-datepicker .flatpickr-day.flatpickr-disabled,
.flatpickr-calendar.custom-datepicker .flatpickr-day.prevMonthDay,
.flatpickr-calendar.custom-datepicker .flatpickr-day.nextMonthDay {
    color: rgba(var(--text), 0.25);
}

.flatpickr-calendar.custom-datepicker .flatpickr-time {
    border-top: 0;
    margin: 5px;
}

.flatpickr-calendar.custom-datepicker .flatpickr-time input {
    background: rgba(var(--white), 0.8);
    border: 2px solid rgba(var(--border), 0.6);
    border-radius: 8px;
    color: rgb(var(--text));
    font-weight: 600;
    font-family: var(--font);
    padding: 8px;
}

.flatpickr-calendar.custom-datepicker.dark-theme .flatpickr-time input {
    background: rgba(var(--l-gray), 0.8);
}

/* Hide native select and disable interaction until TomSelect loads */
select:not([data-tom-select="true"]) {
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    color: transparent !important;
    background-color: rgb(var(--input-bg)) !important;
    background-image: none !important;
    pointer-events: none !important;
    cursor: not-allowed !important;
    -moz-appearance: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

select:not([data-tom-select="true"])::-webkit-select-indicator,
select:not([data-tom-select="true"])::-ms-expand {
    display: none !important;
    -webkit-appearance: none !important;
}

/* TomSelect Custom Styling - Matches project design system */
.ts-wrapper {
    position: relative;
    z-index: auto;
    border-radius: 0 !important;
}

.ts-wrapper.single .ts-control,
.ts-wrapper.multi .ts-control {
    width: 100%;
    padding: 16px 48px 16px 20px;
    background-color: rgba(var(--white), 0.8);
    border: 2px solid rgba(var(--border), 0.6);
    border-radius: 12px !important;
    color: rgb(var(--text));
    font-family: var(--font);
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    min-height: auto;
    box-shadow: none;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0;
}

.ts-control > div {
    min-inline-size: fit-content;
}

.ts-wrapper.focus .ts-control {
    border: 2px solid rgba(var(--primary), 0.6);
    box-shadow: 0 0 0 3px rgba(var(--primary), 0.1);
    background-color: rgb(var(--primary), .06);
    transform: translateY(-1px);
}

.ts-wrapper.disabled .ts-control {
    background-color: rgb(var(--l-gray));
    cursor: not-allowed;
    opacity: 0.6;
}

.ts-wrapper.single .ts-control .ts-single {
    display: inline-block;
    cursor: pointer;
    user-select: none;
    pointer-events: auto;
    white-space: nowrap;
    padding-right: 8px;
    color: rgb(var(--text));
    font-weight: 500;
    border-radius: 0 !important;
}

.ts-wrapper.single .ts-control input {
    flex: 1 1 auto;
    min-width: 1px;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    padding: 0;
    margin: 0;
    color: rgb(var(--text));
    font-family: var(--font);
    font-size: 16px;
}

.ts-wrapper.single.has-items .ts-control input {
    width: auto;
    display: inline-block;
}

.ts-wrapper.single:not(.has-items) .ts-control input {
    width: 100%;
}

.ts-wrapper.single .ts-control input::placeholder {
    color: rgba(var(--text), 0.3);
}

.ts-wrapper.single .ts-control::after {
    border-color: rgba(var(--text), 0.4) transparent transparent transparent;
    border-width: 6px 5px 0 5px;
    margin-top: -3px;
    top: 50%;
    right: 16px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
}

.ts-wrapper.single.focus .ts-control::after {
    border-color: rgba(var(--primary), 0.8) transparent transparent transparent;
    transform: translateY(-50%) rotate(180deg);
}

.ts-dropdown {
    z-index: 999999 !important;
    position: absolute !important;
    background-color: rgba(var(--white), 0.98);
    border: 2px solid rgba(var(--border), 0.6);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    margin-top: 6px;
    overflow: hidden;
}

.ts-dropdown[style*="display: none"] {
    display: none !important;
}

.ts-dropdown[style*="display: block"],
.ts-dropdown:not([style*="display: none"]) {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.ts-dropdown-content {
    z-index: 999999 !important;
    position: relative;
    max-height: 300px;
    overflow-y: auto;
    padding: 6px;
}

.ts-dropdown-content::-webkit-scrollbar {
    width: 8px;
}

.ts-dropdown-content::-webkit-scrollbar-track {
    background: rgba(var(--border), 0.1);
    border-radius: 4px;
}

.ts-dropdown-content::-webkit-scrollbar-thumb {
    background: rgba(var(--border), 0.4);
    border-radius: 4px;
    transition: background 0.2s ease;
}

.ts-dropdown-content::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--primary), 0.5);
}

.ts-dropdown .option,
.ts-dropdown .ts-option {
    padding: 12px 18px;
    margin-bottom: 2px;
    border-radius: 8px;
    color: rgb(var(--text));
    font-family: var(--font);
    font-size: 16px;
    font-weight: 400 !important;
    line-height: 1.5;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
    background: transparent;
    overflow: hidden;
    will-change: transform, opacity;
    opacity: 0;
    transform: translateX(-15px);
}

.ts-dropdown .option::before,
.ts-dropdown .ts-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(var(--primary), 0.2) 50%, transparent 100%);
    transition: left 0.5s ease;
    z-index: 0;
}

.ts-dropdown .option.animate,
.ts-dropdown .ts-option.animate {
    animation: optionSlideIn 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.ts-dropdown .option.animate:nth-child(1),
.ts-dropdown .ts-option.animate:nth-child(1) { animation-delay: 0.02s; }
.ts-dropdown .option.animate:nth-child(2),
.ts-dropdown .ts-option.animate:nth-child(2) { animation-delay: 0.04s; }
.ts-dropdown .option.animate:nth-child(3),
.ts-dropdown .ts-option.animate:nth-child(3) { animation-delay: 0.06s; }
.ts-dropdown .option.animate:nth-child(4),
.ts-dropdown .ts-option.animate:nth-child(4) { animation-delay: 0.08s; }
.ts-dropdown .option.animate:nth-child(5),
.ts-dropdown .ts-option.animate:nth-child(5) { animation-delay: 0.1s; }
.ts-dropdown .option.animate:nth-child(6),
.ts-dropdown .ts-option.animate:nth-child(6) { animation-delay: 0.12s; }
.ts-dropdown .option.animate:nth-child(7),
.ts-dropdown .ts-option.animate:nth-child(7) { animation-delay: 0.14s; }
.ts-dropdown .option.animate:nth-child(8),
.ts-dropdown .ts-option.animate:nth-child(8) { animation-delay: 0.16s; }
.ts-dropdown .option.animate:nth-child(9),
.ts-dropdown .ts-option.animate:nth-child(9) { animation-delay: 0.18s; }
.ts-dropdown .option.animate:nth-child(10),
.ts-dropdown .ts-option.animate:nth-child(10) { animation-delay: 0.2s; }
.ts-dropdown .option.animate:nth-child(n+11),
.ts-dropdown .ts-option.animate:nth-child(n+11) { animation-delay: 0.22s; }

@keyframes optionSlideIn {
    0% { transform: translateX(-15px); }
    100% { opacity: 1; transform: translateX(0); }
}

.ts-dropdown .option:hover,
.ts-dropdown .ts-option:hover {
    background: rgba(var(--primary), 0.08);
    color: rgb(var(--primary));
}

.ts-dropdown .option:hover::before,
.ts-dropdown .ts-option:hover::before {
    left: 100%;
}

.ts-dropdown .option.active,
.ts-dropdown .ts-option.active {
    background: rgba(var(--primary), 0.1);
    color: rgb(var(--primary));
    font-weight: 500;
}

.ts-dropdown .option.selected,
.ts-dropdown .option[aria-selected="true"],
.ts-dropdown .ts-option.selected {
    background: rgba(var(--primary), 0.12);
    color: rgb(var(--primary));
    font-weight: 600;
}

.ts-dropdown .option.selected::after,
.ts-dropdown .option[aria-selected="true"]::after,
.ts-dropdown .ts-option.selected::after {
    content: "✓";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: rgb(var(--primary));
    font-weight: bold;
    font-size: 16px;
}

.ts-dropdown .option[data-disabled],
.ts-dropdown .ts-option[data-disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.ts-wrapper.multi .ts-control {
    border-radius: 12px !important;
}

.ts-wrapper.multi .ts-control .item {
    background: rgba(var(--primary), 0.15);
    color: rgb(var(--primary));
    border: 1px solid rgba(var(--primary), 0.3);
    border-radius: 6px;
    padding: 6px 12px;
    margin: 2px;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.ts-wrapper.multi .ts-control .item:hover {
    background: rgba(var(--primary), 0.25);
    border-color: rgba(var(--primary), 0.5);
    transform: scale(1.05);
}

.ts-wrapper.multi .ts-control .item.active {
    background: rgba(var(--primary), 0.3);
    border-color: rgba(var(--primary), 0.6);
}

.ts-wrapper.multi .ts-control .item .remove {
    border-left: 1px solid rgba(var(--primary), 0.3);
    padding-left: 6px;
    margin-left: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ts-wrapper.multi .ts-control .item .remove:hover {
    color: rgb(var(--danger, 220 53 69));
    transform: scale(1.2);
}

.ts-wrapper .ts-control .ts-clear-button,
.ts-wrapper .ts-control .clear-button {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(var(--border), 0.3);
    color: rgba(var(--text), 0.6);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.ts-wrapper .ts-control .ts-clear-button:hover,
.ts-wrapper .ts-control .clear-button:hover {
    background: rgba(var(--danger, 220 53 69), 0.2);
    color: rgb(var(--danger, 220 53 69));
    transform: translateY(-50%) scale(1.1) rotate(90deg);
    box-shadow: 0 2px 8px rgba(var(--danger, 220 53 69), 0.2);
}

[data-theme="dark"] .ts-wrapper.single .ts-control,
[data-theme="dark"] .ts-wrapper.multi .ts-control {
    background-color: rgba(var(--white), 0.8) !important;
    border-color: rgba(var(--border), 0.4) !important;
    color: rgb(var(--text)) !important;
}

[data-theme="dark"] .ts-dropdown {
    background: rgb(var(--bg)) !important;
    background-color: rgb(var(--bg)) !important;
    border-color: rgba(var(--border), 0.4) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .ts-dropdown-content {
    background: rgb(var(--bg)) !important;
    background-color: rgb(var(--bg)) !important;
}

[data-theme="dark"] .ts-dropdown[style*="background"],
[data-theme="dark"] .ts-dropdown[style*="opacity"] {
    background: rgb(var(--bg)) !important;
    background-color: rgb(var(--bg)) !important;
    opacity: 1 !important;
}

[data-theme="dark"] .ts-dropdown .option,
[data-theme="dark"] .ts-dropdown .ts-option {
    color: rgb(var(--text)) !important;
    background: transparent;
}

[data-theme="dark"] .ts-dropdown .option:hover,
[data-theme="dark"] .ts-dropdown .ts-option:hover {
    background: rgba(var(--primary), 0.15) !important;
    color: rgb(var(--primary)) !important;
}

[data-theme="dark"] .ts-dropdown .option.active,
[data-theme="dark"] .ts-dropdown .ts-option.active {
    background: rgba(var(--primary), 0.2) !important;
    color: rgb(var(--primary)) !important;
}

[data-theme="dark"] .ts-dropdown .option.selected,
[data-theme="dark"] .ts-dropdown .option[aria-selected="true"],
[data-theme="dark"] .ts-dropdown .ts-option.selected {
    background: rgba(var(--primary), 0.25) !important;
    color: rgb(var(--primary)) !important;
}

/* Description Editor */
.description-group {
  margin-bottom: 10px;
}

.comment-editor-active {
    border: 1px solid rgb(var(--border));
    border-radius: 8px;
    overflow: hidden;
}

.comment-toolbar {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background-color: rgb(var(--l-gray));
    border-bottom: 1px solid rgb(var(--border));
}

.toolbar-btn {
    background: transparent;
    border: none;
    padding: 4px 8px;
    margin-right: 4px;
    border-radius: 4px;
    color: rgb(var(--text));
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .toolbar-btn:hover {
        background-color: rgba(0, 0, 0, 0.05);
        color: rgb(var(--text));
    }

.toolbar-divider {
    height: 20px;
    width: 1px;
    background-color: rgb(var(--border));
    margin: 0 8px;
}

.comment-textarea {
  border: none;
  border-radius: 0;
  padding: 12px 16px;
  min-height: 120px;
  box-shadow: none;
}

.comment-textarea:focus {
  box-shadow: none;
}

/*----------------FILTERS----------------*/
.filter-controls {
    display:flex;
    flex-wrap:wrap;
    justify-content:space-evenly;
    align-items:center;
    gap:12px;
    margin-bottom: 15px;
    padding: 12px;
    background: rgba(var(--primary), 0.1);
    border-radius: 8px;
}

    .filter-controls form {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        align-items: flex-end;
    }

    .filter-controls .filter-group {
        display: flex;
        flex-direction: column;
        flex: 1 1 220px;
        min-width: 250px;
    }

        .filter-controls .filter-group label {
            margin-left: 4px;
            margin-bottom: 8px;
            font-weight: 700;
            font-size: 14px;
            text-transform: uppercase;
            letter-spacing: .5px;
            color: rgb(var(--text));
        }

    .filter-controls input,
    .filter-controls select {
        width: 100%;
        padding: 16px 20px;
        background-color: rgba(var(--white), 0.8);
        border: 2px solid rgba(var(--border), 0.6);
        border-radius: 12px;
        color: rgb(var(--text));
        font-family: var(--font);
        font-size: 16px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        outline: none;
    }

        .filter-controls input:hover,
        .filter-controls input:focus,
        .filter-controls select:hover,
        .filter-controls select:focus {
            outline: none;
            background-color: rgba(var(--l-gray), .3);
            border-color: rgba(var(--primary), 0.6);
        }

    /* Filter buttons container */
    .filter-controls .filter-buttons {
        display: flex;
        gap: 12px;
        flex: 1 1 auto;
        min-width: 200px;
        margin-top:1.8rem;
    }

    .filter-controls button {
        position: relative;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        flex: 1 1 160px;
        min-width: 140px;
        padding: 1rem 2rem;
        background: var(--l-g-primary);
        box-shadow: 0 4px 12px rgba(var(--primary), 0.3), 0 2px 4px rgba(var(--primary), 0.2);
        border: none;
        border-radius: 12px;
        color: rgb(var(--w-text));
        font-size: 1rem;
        font-weight: 600;
        text-decoration: none;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow: hidden;
        animation: buttonSlideIn 0.2s ease-out 0.3s both;
    }

        .filter-controls button::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent 0%, rgba(var(--w-text), 0.2) 50%, transparent 100%);
            transition: left 0.5s ease;
        }

        .filter-controls button:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(var(--primary), 0.4), 0 4px 8px rgba(var(--primary), 0.3);
        }

            .filter-controls button:hover::before {
                left: 100%;
            }

        .filter-controls button.btn-red {
            background: rgba(var(--error), .3);
            color: rgb(var(--error));
            box-shadow: 0 4px 12px rgba(var(--error), 0.2), 0 2px 4px rgba(var(--error), 0.1);
        }

            .filter-controls button.btn-red:hover {
                box-shadow: 0 8px 20px rgba(var(--error), 0.3), 0 4px 8px rgba(var(--error), 0.2);
            }

    .filter-controls .filter-status {
        display: block;
        font-weight: 600;
        color: rgb(var(--text));
        margin-bottom: 8px;
        font-size: 15px;
        transition: color 0.3s ease;
    }

.form-control,
input[type="text"],
input[type="date"],
input[type="datetime-local"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 16px 20px;
    background-color: rgba(var(--white), 0.8);
    border: 2px solid rgba(var(--border), 0.6);
    border-radius: 12px;
    color: rgb(var(--text));
    font-family: var(--font);
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

    input:focus,
    select:focus,
    textarea:focus {
        border: 2px solid rgba(var(--primary), 0.6);
        box-shadow: 0 0 0 3px rgba(var(--primary), 0.1);
        background-color: rgb(var(--primary), .06);
        transform: translateY(-1px);
    }

    /* Modal Form Improvements */
    .form-control:disabled,
    .form-control[disabled] {
        color: rgb(var(--l-text));
        border-color: rgb(var(--border));
        opacity: 0.7;
        cursor: not-allowed;
    }

        .form-control:disabled::placeholder,
        .form-control[disabled]::placeholder {
            color: rgb(var(--l-text));
            opacity: 0.6;
        }

.form-group {
    margin-bottom: 20px;
}

    .form-group:last-child {
        margin-bottom: 0;
    }

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin-bottom: 0;
}

    .checkbox-label input[type="checkbox"] {
        margin: 0;
    }

input:checked + .slider {
    background: var(--l-g-primary);
    border-color: rgba(var(--primary), 0.3);
}

    input:checked + .slider:before {
        transform: translateX(27px);
    }

/* Responsive adjustments */
@media (max-width: 1024px) {
    .filter-controls .filter-group {
        min-width: 100%;
    }
}
@media (max-width: 992px) {
    .filter-controls .filter-group {
        flex: 1 1 calc(50% - 6px);
        min-width: 180px;
    }

    .filter-controls .filter-buttons {
        flex: 1 1 100%;
    }
}

@media (max-width: 768px) {
    .filter-controls form {
        gap: 10px;
    }

    .filter-controls .filter-group {
        flex: 1 1 100%;
        min-width: 100%;
    }

    .filter-controls .filter-buttons {
        flex: 1 1 100%;
        width: 100%;
    }

    .filter-controls button {
        flex: 1 1 calc(50% - 6px);
    }
}

@media (max-width: 480px) {
    .filter-controls .filter-buttons {
        flex-direction: column;
    }

    .filter-controls button {
        flex: 1 1 100%;
        width: 100%;
    }
}
/* Toggle Switch Styles */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 53px;
    height: 26px;
}

    .toggle-switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(var(--l-gray), 20);
    transition: all 0.4s ease;
    border-radius: 32px;
    border: 2px solid rgba(var(--border), 0.2);
}

    .slider:before {
        position: absolute;
        content: "";
        height: 20px;
        width: 20px;
        left: 1px;
        top: 1px;
        background: rgb(var(--white));
        transition: all 0.4s ease;
        border-radius: 50%;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }

/* ========================================
   RESPONSIVE DESIGN - DESKTOP FIRST
   ======================================== */

/* Large Desktops (1920px+) - Default styles apply */

/* Medium Desktops and Laptops (1440px and below) */
@media (max-width: 1440px) {
    .filter-controls {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 10px;
        padding: 10px;
    }
    
    .filter-controls button {
        padding: 0.875rem 1.75rem;
        font-size: 0.95rem;
    }
}

/* Smaller Laptops (1366px and below) */
@media (max-width: 1366px) {
    .form-control,
    input[type="text"],
    input[type="date"],
    input[type="datetime-local"],
    input[type="number"],
    select,
    textarea {
        padding: 14px 18px;
        font-size: 15px;
    }
    
    .filter-controls {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .filter-controls input,
    .filter-controls select {
        padding: 14px 18px;
        font-size: 15px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
}

/*----------------MODERN ENHANCEMENTS----------------*/

/* Enhanced Input Hover States */
input[type="text"]:hover:not(:disabled),
input[type="email"]:hover:not(:disabled),
input[type="tel"]:hover:not(:disabled),
input[type="date"]:hover:not(:disabled),
input[type="datetime-local"]:hover:not(:disabled),
input[type="time"]:hover:not(:disabled),
input[type="number"]:hover:not(:disabled),
select:hover:not(:disabled),
textarea:hover:not(:disabled) {
    border-color: rgba(var(--primary), 0.4);
    box-shadow: 0 2px 8px rgba(var(--primary), 0.08);
}

/* Enhanced Focus States with Deeper Shadows */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
input[type="datetime-local"]:focus,
input[type="time"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    border: 2px solid rgba(var(--primary), 0.7);
    box-shadow: 0 0 0 4px rgba(var(--primary), 0.12),
                0 4px 12px rgba(var(--primary), 0.15);
    background-color: rgb(var(--white));
    transform: translateY(-1px);
}

/* Label with Icon System */
.label-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 14px;
    color: rgb(var(--text));
    margin-bottom: 8px;
    letter-spacing: 0.2px;
}

.label-with-icon i {
    font-size: 16px;
    color: rgba(var(--primary), 0.8);
}

/* Required Field Indicator */
.required {
    color: rgb(var(--error));
    font-weight: 700;
    margin-left: 3px;
    font-size: 14px;
}

/* Tooltip System */
.field-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    cursor: help;
    color: rgba(var(--primary), 0.7);
    font-size: 15px;
    transition: all 0.2s ease;
    z-index: 1000;
}

    .field-tooltip:hover {
        color: rgb(var(--primary));
        transform: scale(1.1);
        z-index: 1000;
    }

.field-tooltip[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    background: rgb(var(--bg));
    color: rgb(var(--text));
    padding: 10px 14px;
    border-radius: 8px;
    font-size: .75rem;
    font-weight: 300;
    white-space: nowrap;
    width: 200px;
    white-space: normal;
    line-height: 1.4;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    font-family: var(--font);
    text-align: center;
}

.field-tooltip[data-tooltip]::after {
    content: '';
    position: absolute;
    bottom: calc(100% + 0px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgb(var(--bg));
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.field-tooltip[data-tooltip]:hover::before,
.field-tooltip[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Enhanced Form Group Spacing */
.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: rgb(var(--text));
    margin-bottom: 8px;
    letter-spacing: 0.2px;
}

/* Enhanced Disabled State */
input:disabled,
select:disabled,
textarea:disabled,
input[disabled],
select[disabled],
textarea[disabled] {
    background-color: rgba(var(--l-gray), 0.5);
    color: rgba(var(--text), 0.5);
    border-color: rgba(var(--border), 0.4);
    cursor: not-allowed;
    opacity: 0.65;
}

/* Better Validation Messages */
.validation-messages {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 10px;
    background: rgba(var(--red), 0.08);
    border-left: 4px solid rgb(var(--red));
    color: rgb(var(--red));
    font-size: 14px;
    line-height: 1.5;
    display: none;
}

.validation-messages.show {
    display: block;
    animation: slideDown 0.3s ease;
}

.validation-messages ul {
    margin: 0;
    padding-left: 20px;
}

.validation-messages li {
    margin-bottom: 4px;
}

    .validation-messages div,
    .validation-error {
        gap: 8px;
        padding: 4px 4px;
        border-left: 3px solid rgb(var(--red));
        border-radius: 6px;
        color: rgb(var(--error),.7);
        font-size: .9rem;
        line-height: 1.3;
        animation: slideDown 0.3s ease;
    }

        .validation-messages div::before {
            content: '⚠';
            margin-right: 8px;
            font-size: 1.1rem;
        }

.validation-messages li:last-child,
.validation-error:last-child {
    margin-bottom: 0;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Row Improvements */
.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.form-row .form-group {
    margin-bottom: 0;
    flex: 1;
}

.form-row .col-md-6 {
    flex: 0 0 calc(50% - 8px);
}

.form-row .col-md-4 {
    flex: 0 0 calc(33.333% - 11px);
}

.form-row .col-md-3 {
    flex: 0 0 calc(25% - 12px);
}

/* Compact Desktops (1280px and below) */
@media (max-width: 1280px) {
    .filter-controls {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 10px;
    }
    
    .filter-controls button {
        padding: 0.75rem 1.5rem;
    }
    
    .form-row {
        gap: 14px;
    }
}

/* Minimum Supported Width (1024px) */
@media (max-width: 1024px) {
    .form-control,
    input[type="text"],
    input[type="date"],
    input[type="datetime-local"],
    input[type="number"],
    select,
    textarea {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .filter-controls {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px;
    }
    
    .filter-controls input,
    .filter-controls select {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .filter-controls button {
        width: 100%;
        padding: 0.75rem 1.25rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-row .form-group {
        margin-bottom: 18px;
    }
    
    .form-row .col-md-6,
    .form-row .col-md-4,
    .form-row .col-md-3 {
        flex: 1 1 100%;
    }
    
    .form-group {
        margin-bottom: 18px;
    }
    
    .form-group label {
        font-size: 13px;
    }
    
    textarea.form-control {
        min-height: 90px;
        padding: 12px 16px;
    }
    
    .field-tooltip[data-tooltip]::before {
        width: 180px;
        font-size: 0.7rem;
        padding: 8px 12px;
    }
}

/* Enhanced Textarea */
textarea.form-control {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
    padding: 14px 18px;
}

/* Input Icons (for prepended icons) */
.input-with-icon {
    position: relative;
}

.input-with-icon input {
    padding-left: 45px;
}

.input-with-icon i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(var(--text), 0.5);
    font-size: 18px;
    pointer-events: none;
}

.input-with-icon input:focus ~ i {
    color: rgb(var(--primary));
}

/* Better Checkbox and Radio Styles */
input[type="checkbox"],
input[type="radio"] {
    width: auto;
    margin-right: 8px;
    cursor: pointer;
}

/* Form Help Text */
.form-help,
.form-text {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: rgba(var(--text), 0.65);
    line-height: 1.4;
}

/* Success State */
.form-control.is-valid,
input.is-valid,
select.is-valid,
textarea.is-valid {
    border-color: rgb(var(--green));
    box-shadow: 0 0 0 3px rgba(var(--green), 0.1);
}

/* Error State */
.form-control.is-invalid,
input.is-invalid,
select.is-invalid,
textarea.is-invalid,
.form-control.error,
input.error,
select.error,
textarea.error {
    border-color: rgb(var(--red));
    box-shadow: 0 0 0 3px rgba(var(--red), 0.1);
    background-color: rgba(var(--red), 0.02);
}

.form-control.error:focus,
input.error:focus,
select.error:focus,
textarea.error:focus {
    border-color: rgb(var(--red));
    box-shadow: 0 0 0 4px rgba(var(--red), 0.15);
}

/* Field Group Enhancements */
.field-group-header {
    font-size: 16px;
    font-weight: 700;
    color: rgb(var(--text));
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(var(--border), 0.5);
    letter-spacing: 0.3px;
}