/* File Upload */
.upload-section {
    border: 3px dashed #ddd;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-section:hover {
    border-color: #4CAF50;
    background-color: #f9f9f9;
}

.upload-section.dragover {
    border-color: #4CAF50;
    background-color: #e8f5e8;
}

.file-input {
    display: none;
}

.btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px;
}

.btn:hover {
    background: #45a049;
    transform: translateY(-2px);
}

.btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.btn.secondary {
    background: #6c757d;
}

.btn.secondary:hover {
    background: #545b62;
}

.validation-info {
    background: #e8f5e9;
    border: 1px solid #4caf50;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.validation-error {
    background: #ffebee;
    border: 1px solid #f44336;
    color: #d32f2f;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

/* Configuration Form */
.config-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.config-group {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
}

.config-group h3 {
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 10px;
}

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

.form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-field input, .form-field select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-field input:focus, .form-field select:focus {
    outline: none;
    border-color: #4CAF50;
}

.checkbox-field {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-field input[type="checkbox"] {
    width: auto;
    scale: 1.2;
}

.control-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.slider {
    width: 150px;
}

/* Updated Individual Class Control Panels */
.viz-controls-container {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.viz-controls-container h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 1.2em;
}

/* Controls header layout */
.controls-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.controls-title {
    margin: 0;
    color: #333;
    font-size: 1.2em;
}

/* Reset button styling */
.btn-reset {
    background: #6c757d !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 5px !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    margin: 0 !important;
}

.btn-reset:hover {
    background: #545b62 !important;
    transform: translateY(-1px) !important;
}

.btn-reset:active {
    transform: translateY(0px) !important;
}

.class-control-panels {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.class-control-panel {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: border-color 0.3s ease;
}

.class-control-panel:hover {
    border-color: #4CAF50;
}

.class-control-panel.disabled {
    opacity: 0.6;
    background: #f5f5f5;
}

.class-checkbox-section {
    display: flex;
    align-items: center;
    min-width: 120px;
}

.class-checkbox {
    margin-right: 10px;
    scale: 1.3;
}

.class-label {
    font-weight: 600;
    font-size: 16px;
    white-space: nowrap;
}

.class-opacity-section {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 180px;
}

.class-opacity-label {
    font-size: 13px;
    color: #666;
    white-space: nowrap;
    min-width: 50px;
}

.class-opacity-slider {
    width: 100px; /* Made longer */
}

.class-opacity-value {
    font-size: 13px;
    color: #333;
    min-width: 35px;
    font-weight: 500;
}

/* old: Handle Range Slider Styles */

.class-range-section {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-grow: 1;
}

.class-range-label {
    font-size: 13px;
    color: #666;
    white-space: nowrap;
    min-width: 45px;
}

.class-range-sliders {
    display: flex;
    align-items: center;
    gap: 5px;
}

.class-range-slider {
    width: 60px;
}

.class-range-value {
    font-size: 12px;
    color: #666;
    min-width: 70px;
    font-weight: 500;
}

/* Dual Handle Range Slider Styles */
.dual-range-container {
    position: relative;
    width: 120px;
    height: 20px;
    margin: 0 8px;
}

.dual-range-track {
    position: absolute;
    width: 100%;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    top: 50%;
    transform: translateY(-50%);
}

.dual-range-fill {
    position: absolute;
    height: 4px;
    background: #4CAF50;
    border-radius: 2px;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.1s ease;
}

.dual-range-input {
    position: absolute;
    width: 100%;
    height: 20px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
    top: 0;
}

.dual-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #4CAF50;
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.dual-range-input::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #4CAF50;
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    border: none;
}

.dual-range-input:focus {
    outline: none;
}

.dual-range-input:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.3);
}

.dual-range-input:focus::-moz-range-thumb {
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.3);
}

/* Test data styling */
.test-data-loaded {
    background: #e8f5e8;
    border: 2px solid #4CAF50;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
}

.test-data-loaded h3 {
    color: #2e7d32;
    margin-bottom: 15px;
}

.test-data-loaded ul {
    color: #2e7d32;
    margin: 10px 0;
    padding-left: 20px;
}

.test-data-loaded em {
    color: #666;
    font-size: 0.9em;
}

.test-data-message {
    animation: fadeInUp 0.5s ease;
}

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

/* Original Data Control Panel - Special styling to distinguish from classes */
.original-data-panel {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border: 2px solid #999;
    margin-bottom: 15px;
}

.original-data-panel:hover {
    border-color: #666;
}

.original-data-panel .class-label {
    color: #555 !important;
    font-style: italic;
}

/* Pending User Notification Banner */
.pending-user-banner {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe8a1 100%);
    border: 2px solid #ff9800;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.2);
    animation: slideDown 0.5s ease;
}

.pending-user-banner .banner-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.pending-user-banner .banner-icon {
    font-size: 2em;
    flex-shrink: 0;
}

.pending-user-banner .banner-text strong {
    color: #f57c00;
    font-size: 1.1em;
    display: block;
    margin-bottom: 8px;
}

.pending-user-banner .banner-text p {
    color: #663c00;
    margin: 0;
    line-height: 1.5;
}

/* Approval Notification Banner */
.approval-notification {
    background: linear-gradient(135deg, #d4edda 0%, #b7e4c7 100%);
    border: 2px solid #28a745;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
    animation: slideDown 0.5s ease;
}

.approval-notification .banner-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    position: relative;
}

.approval-notification .banner-icon {
    font-size: 2em;
    flex-shrink: 0;
}

.approval-notification .banner-text strong {
    color: #155724;
    font-size: 1.1em;
    display: block;
    margin-bottom: 8px;
}

.approval-notification .banner-text p {
    color: #155724;
    margin: 0;
    line-height: 1.5;
}

.approval-notification .banner-close {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 1.5em;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.approval-notification .banner-close:hover {
    background: #218838;
}

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

/* Approval Notice on Upload Sections */
.approval-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    padding: 12px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 0.9em;
    text-align: center;
}

.approval-notice strong {
    color: #f57c00;
}