/* Custom gradient button styles for Register page */
.btn-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    box-shadow: 0 2px 8px rgba(102,126,234,0.15);
    transition: all 0.2s;
}
.btn-gradient-primary:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: #fff;
    transform: scale(1.03);
    box-shadow: 0 4px 16px rgba(102,126,234,0.25);
}
.btn-gradient-success {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: #fff;
    border: none;
    box-shadow: 0 2px 8px rgba(67,233,123,0.15);
    transition: all 0.2s;
}
.btn-gradient-success:hover {
    background: linear-gradient(135deg, #38f9d7 0%, #43e97b 100%);
    color: #fff;
    transform: scale(1.03);
    box-shadow: 0 4px 16px rgba(67,233,123,0.25);
}

/* ==========================================
   SELECT2 MULTI-SELECT STYLES (SIMPLE)
   ========================================== */

/* Selection container */
.select2-container--default .select2-selection--multiple {
    border: 2px solid #ced4da !important;
    border-radius: 8px !important;
    min-height: 42px !important;
    padding: 4px 8px !important;
    transition: all 0.3s ease;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #667eea !important;
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.15) !important;
}

/* Selected items (tags/badges) */
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    color: #fff !important;
    padding: 4px 10px !important;
    margin: 3px 4px 3px 0 !important;
    border-radius: 20px !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #fff !important;
    margin-right: 6px !important;
    font-size: 1rem !important;
    font-weight: bold !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #ffdddd !important;
}

/* Dropdown styling */
.select2-dropdown {
    border: 2px solid #667eea !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.2) !important;
    margin-top: 4px !important;
}

/* Dropdown options */
.select2-container--default .select2-results__option {
    padding: 10px 15px;
    transition: all 0.2s ease;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #667eea !important;
    color: #fff !important;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #f0f2ff !important;
    color: #333 !important;
    font-weight: 500;
}

.select2-container--default .select2-results__option[aria-selected=true]::before {
    content: '? ';
    color: #667eea;
    font-weight: bold;
}

/* Custom scrollbar */
.select2-results__options::-webkit-scrollbar {
    width: 8px;
}

.select2-results__options::-webkit-scrollbar-track {
    background: #f1f3ff;
    border-radius: 10px;
}

.select2-results__options::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

/* Invalid state */
.is-invalid-select2 + .select2-container--default .select2-selection--multiple {
    border-color: #dc3545 !important;
}

/* Select All button group */
.select-all-btn-group {
    display: flex;
    gap: 8px;
}

.select-all-btn-group .btn {
    font-size: 0.8rem;
    padding: 4px 12px;
}

/* ==========================================
   TERMS MODAL - Custom styling to fix z-index
   ========================================== */

/* Custom backdrop - we create our own */
.terms-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    display: none;
}

.terms-modal-backdrop.show {
    display: block;
}

/* Modal must be above backdrop */
#termsModal {
    z-index: 1050 !important;
}

#termsModal.show {
    display: block !important;
}

#termsModal .modal-dialog {
    z-index: 1051;
    pointer-events: auto;
}

#termsModal .modal-content {
    pointer-events: auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
