/* Frontend Reset Progress Styles */

.llmspr-frontend-reset-wrap {
    margin: 30px 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.llmspr-frontend-reset-wrap .llmspr-front-header {
    padding: 20px 20px 10px;
    display: flex;
    align-items: center;
}

.llmspr-frontend-reset-wrap .llmspr-front-icon-wrap {
    background: #edf2f7;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.llmspr-frontend-reset-wrap .llmspr-front-icon-wrap i {
    color: #4a5568;
    font-size: 18px;
}

.llmspr-frontend-reset-wrap .llmspr-front-title {
    margin: 0;
    font-size: 18px;
    color: #2d3748;
    font-weight: 600;
}

.llmspr-frontend-reset-wrap .llmspr-front-description {
    font-size: 14px;
    padding: 0 20px;
    color: #718096;
    line-height: 1.6;
    margin-bottom: 20px;
    margin-top: 5px;
}

.llmspr-frontend-actions {
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    border-top: 1px solid #edf2f7;
    background: #f8fafc;
}

.llmspr-front-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    line-height: 1;
}

.llmspr-btn-reset {
    background: #e53e3e;
    color: white !important;
}

.llmspr-btn-reset:hover {
    background: #c53030;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.llmspr-btn-request {
    background: #466dd8;
    color: white !important;
}

.llmspr-btn-request:hover {
    background: #466dd8;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.llmspr-front-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.llmspr-front-btn i {
    margin-right: 8px;
}

#llmspr_front_message {
    margin: 0px 10px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
    animation: llmsprFadeIn 0.3s ease-in-out;
}

#llmspr_front_message p {
    margin: 0;
}

@keyframes llmsprFadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal Styles - Premium Update */
.llmspr-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.llmspr-modal-content {
    background-color: #ffffff;
    margin: 4vh auto;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

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

.llmspr-modal-header {
    padding: 24px 32px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #466dd8;
    color: white;
}

.llmspr-modal-header h2 {
    margin: 0 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: white !important;
    border: none !important;
    letter-spacing: -0.01em;
}

.llmspr-modal-close {
    color: rgba(255, 255, 255, 0.8);
    font-size: 20px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.1);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.llmspr-modal-close:hover {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.llmspr-modal-body {
    padding: 24px 32px;
    max-height: 75vh;
    overflow-y: auto;
    background: #ffffff;
}

/* Hide redundant title in modal */
.llmspr-modal-body .llmspr-progress-reset-wrap h2 {
    display: none !important;
}

.llmspr-modal-body .llmspr-progress-reset-wrap {
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
}

/* Form Layout Refinement */
.llmspr-modal-body .form-table {
    width: 100%;
    margin: 0;
}

.llmspr-modal-body .form-table tr {
    border-bottom: 1px solid #f1f5f9;
}

.llmspr-modal-body .form-table tr:last-child {
    border-bottom: none;
}

.llmspr-modal-body .form-table td {
    padding: 16px 0;
    vertical-align: top;
}

.llmspr-modal-body .form-table td:first-child {
    width: 30%;
    padding-right: 20px;
}

.llmspr-modal-body .llmspr-input-labels {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.llmspr-modal-body .llmspr-input-labels i {
    font-size: 12px;
    color: #94a3b8;
    cursor: help;
}

.llmspr-modal-body .llmspr-input-sub-headings {
    margin: 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.4;
    font-style: normal !important;
}

/* Select2 Premium Styles */
.llmspr-modal-body .select2-container--default .select2-selection--multiple {
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    min-height: 40px !important;
    padding: 0px 8px !important;
    transition: all 0.2s;
}

.llmspr-modal-body .select2-container--default .select2-selection--multiple .select2-search__field {
    font-size: 14px !important;
    margin-top: 8px !important;
}

.llmspr-modal-body .select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #466dd8 !important;
    box-shadow: 0 0 0 3px rgba(70, 109, 216, 0.08) !important;
}

.llmspr-modal-body .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #466dd8 !important;
    border: none !important;
    border-radius: 4px !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    padding: 3px 10px !important;
    margin-top: 6px !important;
}

.llmspr-modal-body .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: rgba(255, 255, 255, 0.8) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.2) !important;
    margin-right: 5px !important;
    padding-right: 5px !important;
}

.llmspr-modal-body .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #fff !important;
}

/* Modal Buttons */
.llmspr-modal-body .rn-schdl-tbl {
    margin-top: 24px;
    background: #f8fafc;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
}

.llmspr-modal-body .button-primary {
    background: #466dd8 !important;
    color: white !important;
    padding: 10px 24px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: all 0.2s !important;
    box-shadow: 0 4px 6px -1px rgba(70, 109, 216, 0.15) !important;
}

.llmspr-modal-body .button-primary:hover {
    background: #3a5ab8 !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 12px -3px rgba(70, 109, 216, 0.25) !important;
}

.llmspr-modal-body .button-secondary {
    background: white !important;
    border: 1px solid #e2e8f0 !important;
    color: #64748b !important;
    padding: 10px 24px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: all 0.2s !important;
}

.llmspr-modal-body .button-secondary:not([disabled]):hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #334155 !important;
}

/* Progress bar fix for smaller text */
.llmspr-modal-body #llmspr_info {
    font-size: 12px;
    color: #94a3b8;
}

/* Premium Switch Toggle */
.llmspr-switch-container {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.llmspr-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

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

.llmspr-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e2e8f0;
    transition: .4s;
    border-radius: 34px;
}

.llmspr-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.llmspr-switch input:checked + .llmspr-slider {
    background-color: #466dd8;
}

.llmspr-switch input:checked + .llmspr-slider:before {
    transform: translateX(20px);
}

.llmspr-switch-label {
    font-size: 14px;
    font-weight: 500;
    color: #475569;
}

/* Premium Progress Bar */
.llmspr-modal-body #llmspr_progress_wrap {
    background: #f1f5f9;
    height: 8px;
    border-radius: 100px;
    overflow: hidden;
    margin: 15px 0 8px;
}

.llmspr-modal-body #llmspr_progress_bar {
    background: linear-gradient(90deg, #466dd8, #60a5fa);
    border-radius: 100px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.llmspr-modal-body #llmspr_info {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

/* Custom Checkbox */
.llmspr-modal-body input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 1.5px solid #cbd5e1;
    cursor: pointer;
    transition: all 0.2s;
}

.llmspr-modal-body input[type="checkbox"]:checked {
    background-color: #466dd8;
    border-color: #466dd8;
}

/* Clear Buttons */
.llmspr-modal-body .llmspr_clear_btn,
.llmspr-modal-body #llmspr_users_clear,
.llmspr-modal-body #llmspr_courses_clear,
.llmspr-modal-body #llmspr_memberships_clear {
    background: transparent !important;
    border: 1px solid #e2e8f0 !important;
    color: #64748b !important;
    font-size: 12px !important;
    padding: 4px 12px !important;
    border-radius: 6px !important;
    margin-left: 10px !important;
}

.llmspr-modal-body .llmspr_clear_btn:hover {
    border-color: #cbd5e1 !important;
    color: #475569 !important;
}

/* Fix Select2 Dropdown Z-Index in Modal */
.select2-container--open {
    z-index: 999999999 !important;
}

.select2-dropdown {
    z-index: 999999999 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
}

/* Fix font size in Select2 Results */
.select2-results__options {
    font-size: 13px !important;
    color: #475569 !important;
}

.select2-results__option {
    padding: 8px 12px !important;
}

.select2-results__message {
    font-size: 13px !important;
    color: #94a3b8 !important;
    padding: 12px !important;
}

.select2-dropdown button[type="button"] {
    font-size: 11px !important;
    padding: 6px 12px !important;
    margin: 8px !important;
    background: #466dd8 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    box-shadow: 0 1px 2px rgba(70, 109, 216, 0.2) !important;
}

.select2-dropdown button[type="button"]:hover {
    background: #3a5ab8 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 6px -1px rgba(70, 109, 216, 0.3) !important;
}

.select2-dropdown button[type="button"]:active {
    transform: translateY(0px) !important;
}
/* Frontend Reset Button States */
.llmspr-front-btn:disabled,
.llmspr-front-btn.llmspr-btn-disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(0.5);
    transform: none !important;
    box-shadow: none !important;
}
