/* --- Main Container & Layout --- */
.mvsep-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background-color: #f9fafb;
    padding: 25px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    max-width: 900px;
    margin: 20px auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.mvsep-container h2 {
    font-size: 24px;
    color: #111827;
    margin: 0 0 5px;
}

.mvsep-container p.powered-by {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 25px;
}

.mvsep-main-content {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.mvsep-left-panel,
.mvsep-right-panel {
    flex: 1;
    min-width: 300px;
}

/* --- Left Panel: Uploader States --- */
.mvsep-upload-box {
    border: 2px dashed #3b82f6;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    background-color: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    min-height: 280px;
}

.upload-icon {
    font-size: 48px;
    color: #9ca3af;
    margin-bottom: 15px;
}

.upload-text {
    font-size: 18px;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 10px;
}

.selected-file-name {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
    word-break: break-all;
}

/* --- Buttons --- */
.browse-file-btn,
.change-file-btn {
    display: inline-block;
    width: auto;
    min-width: 150px;
    padding: 12px 20px;
    margin-top: 15px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: none;
}

.browse-file-btn {
    background-color: #3b82f6;
    color: #fff;
}

.browse-file-btn:hover {
    background-color: #2563eb;
}

.change-file-btn {
    background-color: #e5e7eb;
    color: #374151;
}

.change-file-btn:hover {
    background-color: #d1d5db;
}


/* --- Right Panel: Options --- */
.mvsep-options-grid {
    display: grid;
    gap: 20px;
}

.mvsep-option-group {
    display: flex;
    flex-direction: column;
}

.mvsep-option-group label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.select-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    font-size: 14px;
    background-color: #fff;
}


/* --- Toggle Switch --- */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    margin-left: auto;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #3b82f6;
}

input:checked+.slider:before {
    transform: translateX(22px);
}

/* --- Terms & Submit Button --- */
.mvsep-terms-group {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #374151;
}

.mvsep-terms-group input[type="checkbox"] {
    margin-right: 10px;
    width: auto;
}

#mvsep_submit_button {
    background-color: #6b7280;
    color: #fff;
    padding: 14px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    width: 100%;
    transition: background-color .3s;
}

#mvsep_submit_button:disabled {
    background-color: #d1d5db;
    cursor: not-allowed;
}

#mvsep_submit_button:not(:disabled) {
    background-color: #1f2937;
}

#mvsep_submit_button:not(:disabled):hover {
    background-color: #111827;
}


/* --- Loading & Results --- */
.mvsep-loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: none; /* Controlled by JS */
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 10;
    border-radius: 8px;
}

.spinner {
    border: 4px solid #e5e7eb;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#mvsep-results {
    margin-top: 25px;
    padding: 20px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
}

#mvsep-results.error {
    background-color: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

#mvsep-results.success {
    background-color: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

#mvsep-results ul {
    list-style: none;
    padding: 10px 0 0;
    margin: 0;
}

#mvsep-results li a {
    display: block;
    padding: 12px 15px;
    background-color: #dbeafe;
    margin-bottom: 8px;
    border-radius: 5px;
    text-decoration: none;
    color: #1e40af;
    font-weight: 500;
    transition: background-color 0.2s;
}

#mvsep-results li a:hover {
    background-color: #bfdbfe;
}