.nav-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem 1rem;
    border-radius: 12px;
    color: #475569;
    font-weight: 500;
    transition: all .2s ease;
}

.nav-link:hover {
    background: #f1f5f9;
    color: #2563eb;
}

.nav-link.active {
    background: #2563eb;
    color: #fff;
    font-weight: 600;
}

.nav-link.active i {
    color: #fff;
}

/* Input Field Styling - Improved UI */

.input-wrapper {
    width: 100%;
}

.form-control {
    border-radius: 6px;
    border: 1.5px solid #d1d5db;
    padding: 10px 12px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
    outline: none;
}

/* Disable focus style when no-focus-style class is present */
.no-focus-style .form-control:focus {
    border-color: #d1d5db;
    box-shadow: none;
    outline: none;
}

.form-control:disabled,
.form-control[readonly] {
    background-color: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

/* Input group (with icon) styling */
.input-group .input-group-text {
    background-color: #f9fafb;
    border: 1.5px solid #d1d5db;
    border-radius: 6px 0 0 6px;
    color: #6b7280;
    transition: all 0.2s ease;
}

.input-group .form-control {
    border-radius: 0 6px 6px 0;
}

.input-group-focused .form-control:focus {
    border-color: #0d6efd;
}

.input-group-focused .form-control:focus + .input-group-text,
.input-group-focused .input-group-text + .form-control:focus {
    border-color: #0d6efd;
}

/* Disable focus style for input groups */
.no-focus-style .input-group-focused .form-control:focus {
    border-color: #d1d5db;
}

.no-focus-style .input-group-focused .form-control:focus + .input-group-text,
.no-focus-style .input-group-focused .input-group-text + .form-control:focus {
    border-color: #d1d5db;
}

/* Label styling */
.form-label {
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 8px;
    font-size: 14px;
    display: block;
}

/* Error state styling */
.form-control.is-invalid {
    border-color: #dc2626 !important;
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
    border-color: #dc2626 !important;
}

.invalid-feedback {
    display: block;
    color: #dc2626;
    font-size: 13px;
    margin-top: 6px;
}

/* Placeholder styling */
.form-control::placeholder {
    color: #9ca3af;
}

/* Password Field Styling - Improved UI */

.input-wrapper {
    width: 100%;
}

.form-control {
    border-radius: 0 6px 6px 0;
    border: 1.5px solid #d1d5db;
    padding: 10px 12px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
    outline: none;
}

/* Disable focus style when no-focus-style class is present */
.no-focus-style .form-control:focus {
    border-color: #d1d5db;
    box-shadow: none;
    outline: none;
}

.form-control:disabled,
.form-control[readonly] {
    background-color: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

/* Input group (with icon and toggle) styling */
.input-group .input-group-text {
    background-color: #f9fafb;
    border: 1.5px solid #d1d5db;
    border-radius: 6px 0 0 6px;
    color: #6b7280;
    transition: all 0.2s ease;
}

.input-group .toggle-password {
    border: 1.5px solid #d1d5db;
    border-left: none;
    border-radius: 0 6px 6px 0;
    padding: 10px 12px;
    color: #6b7280;
    background-color: white;
    transition: all 0.2s ease;
}

.input-group .toggle-password:hover {
    background-color: #f3f4f6;
    color: #4b5563;
    border-color: #d1d5db;
}

.input-group .toggle-password:focus {
    outline: none;
    background-color: #f3f4f6;
}

/* Input group focus states */
.input-group-focused .form-control:focus {
    border-color: #0d6efd;
}

.input-group-focused .form-control:focus ~ .input-group-text,
.input-group-focused .form-control:focus ~ .toggle-password,
.input-group-focused .input-group-text ~ .form-control:focus,
.input-group-focused .input-group-text ~ .form-control:focus ~ .toggle-password {
    border-color: #0d6efd;
}

/* Disable focus style for input groups */
.no-focus-style .input-group-focused .form-control:focus {
    border-color: #d1d5db;
}

.no-focus-style .input-group-focused .form-control:focus ~ .input-group-text,
.no-focus-style .input-group-focused .form-control:focus ~ .toggle-password {
    border-color: #d1d5db;
}

/* Label styling */
.form-label {
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 8px;
    font-size: 14px;
    display: block;
}

/* Error state styling */
.form-control.is-invalid {
    border-color: #dc2626 !important;
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
    border-color: #dc2626 !important;
}

.is-invalid ~ .toggle-password {
    border-color: #dc2626 !important;
}

.invalid-feedback {
    display: block;
    color: #dc2626;
    font-size: 13px;
    margin-top: 6px;
    width: 100%;
}

/* Placeholder styling */
.form-control::placeholder {
    color: #9ca3af;
}

/* Select Field Styling - Improved UI */

.input-wrapper {
    width: 100%;
}

.form-select {
    border-radius: 6px;
    border: 1.5px solid #d1d5db;
    padding: 10px 12px;
    font-size: 14px;
    transition: all 0.2s ease;
    background-color: white;
    cursor: pointer;
    padding-right: 36px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    appearance: none;
}

.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
    outline: none;
}

/* Disable focus style when no-focus-style class is present */
.no-focus-style .form-select:focus {
    border-color: #d1d5db;
    box-shadow: none;
    outline: none;
}

.form-select:disabled {
    background-color: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

/* Label styling */
.form-label {
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 8px;
    font-size: 14px;
    display: block;
}

/* Error state styling */
.form-select.is-invalid {
    border-color: #dc2626 !important;
}

.form-select.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
    border-color: #dc2626 !important;
}

.invalid-feedback {
    display: block;
    color: #dc2626;
    font-size: 13px;
    margin-top: 6px;
}

/* Placeholder text styling */
.form-select option[value=""] {
    color: #9ca3af;
}

.form-select option {
    color: #1f2937;
    padding: 8px;
}

/* Multi-Select Field Styling - Improved UI */

.input-wrapper {
    width: 100%;
}

/* Tom Select Base Styling */
.ts-wrapper {
    width: 100%;
}

.ts-wrapper.single .ts-control {
    border-radius: 6px;
    border: 1.5px solid #d1d5db;
    padding: 0;
    min-height: 38px;
    transition: all 0.2s ease;
    background-color: white;
}

.ts-wrapper.multi .ts-control {
    border-radius: 6px;
    border: 1.5px solid #d1d5db;
    padding: 6px 12px;
    min-height: 38px;
    transition: all 0.2s ease;
    background-color: white;
}

.ts-control > * {
    vertical-align: baseline;
}

.ts-control input {
    font-size: 14px;
    color: #1f2937;
}

.ts-control input::placeholder {
    color: #9ca3af;
}

/* Focus state */
.input-wrapper .ts-wrapper.focus .ts-control {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

/* Disable focus style */
.input-wrapper.no-focus-style .ts-wrapper.focus .ts-control {
    border-color: #d1d5db !important;
    box-shadow: none !important;
}

/* Disabled state */
.ts-wrapper.disabled .ts-control {
    background-color: #f3f4f6;
    cursor: not-allowed;
}

.ts-wrapper.disabled .ts-control input {
    color: #9ca3af;
    cursor: not-allowed;
}

/* Tag/Item styling */
.ts-wrapper .ts-control .item {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 13px;
    margin-right: 6px;
    display: inline-flex;
    align-items: center;
}

.ts-wrapper .ts-control .item.selected {
    background-color: #eff6ff;
    border-color: #bfdbfe;
}

.ts-wrapper .ts-control .item .remove {
    margin-left: 4px;
    cursor: pointer;
    font-weight: bold;
    color: #3b82f6;
    transition: color 0.2s ease;
}

.ts-wrapper .ts-control .item .remove:hover {
    color: #1e40af;
}

/* Dropdown menu styling */
.ts-dropdown {
    border-radius: 6px;
    border: 1.5px solid #d1d5db;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    background-color: white;
    margin-top: 4px;
}

.ts-dropdown .ts-dropdown-content {
    max-height: 300px;
}

.ts-dropdown .option {
    padding: 10px 12px;
    color: #1f2937;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ts-dropdown .option:hover {
    background-color: #f3f4f6;
    color: #0d6efd;
}

.ts-dropdown .option.selected {
    background-color: #eff6ff;
    color: #1e40af;
    font-weight: 500;
}

.ts-dropdown .no-results {
    padding: 10px 12px;
    color: #9ca3af;
    font-size: 14px;
    text-align: center;
}

/* Error state */
.ts-wrapper .ts-control.is-invalid {
    border-color: #dc2626 !important;
}

.ts-wrapper.focus .ts-control.is-invalid {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
    border-color: #dc2626 !important;
}

/* Form label */
.form-label {
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 8px;
    font-size: 14px;
    display: block;
}

/* Invalid feedback */
.invalid-feedback {
    display: block;
    color: #dc2626;
    font-size: 13px;
    margin-top: 6px;
}

