.signal-viewer-container {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid #e9ecef;
}

.signal-canvas {
    width: 100%;
    height: 400px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 5px;
   box-shadow: 0 2px 4px rgba(240, 30, 30, 0.1);

    box-shadow: 0 2px 4px rgba(0,0,0,0.1);

}

.control-panel {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #80d0c7;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: fit-content;
}

.channel-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    padding: 10px;
    background: #f8f9fa;
}

.channel-list .form-check {
    margin-bottom: 8px;
    padding: 5px 10px 5px 20px;
    border-radius: 3px;
    transition: background-color 0.2s ease;
}

.channel-list .form-check:hover {
    background: #e9ecef;
}

.viewer-option {
    cursor: pointer;
    padding: 12px 15px;
    border-radius: 5px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
    background: white;
}

.viewer-option:hover {
    background: #e9ecef;
    border-color: #80d0c7;
}

.viewer-option.active {
    background: #80d0c7;
    color: white;
    border-color: #80d0c7;
}

.signal-type-card {
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.signal-type-card:hover {
    transform: translateY(-5px);
    border-color: #80d0c7;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.custom-block-icon {
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    height: 100%;
}

.custom-block-icon:hover {
    transform: translateY(-3px);
}

/* Polar view specific styles */
.polar-grid {
    position: relative;
    width: 100%;
    height: 100%;
}

.polar-axis {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.polar-line {
    stroke: #e9ecef;
    stroke-width: 1;
}

.polar-signal {
    stroke: #80d0c7;
    stroke-width: 2;
    fill: none;
}

/* Recurrence plot specific styles */
.recurrence-plot {
    background: white;
}

.recurrence-point {
    fill: #80d0c7;
    opacity: 0.6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .signal-canvas {
        height: 300px;
    }
    
    .control-panel {
        margin-top: 20px;
    }
    
    .channel-list {
        max-height: 150px;
    }

    /* Upload Button Styles */
.upload-container {
    text-align: center;
    padding: 15px;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.upload-container:hover {
    border-color: #80d0c7;
    background: #e3f2fd;
}

.upload-container.dragover {
    border-color: #80d0c7;
    background: #e3f2fd;
    transform: scale(1.02);
}

#upload-btn {
    transition: all 0.3s ease;
}

#upload-btn:hover {
    transform: translateY(-2px);
}

.upload-info {
    font-size: 0.75rem;
}

#upload-status {
    min-height: 20px;
}

.file-info {
    background: #e8f5e8;
    border: 1px solid #80d0c7;
    border-radius: 4px;
    padding: 8px;
    margin-top: 8px;
    font-size: 0.8rem;
}

.progress-bar {
    height: 4px;
    background: #80d0c7;
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 2px;
    margin-top: 5px;
}

.ecg-plot-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ecg-plot-area {
    flex: 1;
    background: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #dee2e6;
}

.real-time-monitoring {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ecg-view-options .btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}


/* Aliasing Controls Styling */
.aliasing-controls {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.aliasing-controls h5 {
    color: #2c3e50;
    border-bottom: 2px solid #f39c12;
    padding-bottom: 8px;
}

/* Signal Canvas Styling */
.signal-canvas {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    min-height: 500px;
    position: relative;
    margin-bottom: 0;
}

/* Form Range Styling */
.form-range {
    accent-color: #3498db;
    height: 30px;
}

.form-range:focus {
    accent-color: #2980b9;
}

/* Badge Styling in Aliasing Controls */
.aliasing-controls .badge {
    font-size: 0.8rem;
    padding: 6px 10px;
}

/* Alert Styling */
.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffc107;
    color: #856404;
}

/* Button Styling */
.btn-outline-warning {
    border: 2px solid #f39c12;
    color: #f39c12;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-warning:hover {
    background-color: #f39c12;
    border-color: #f39c12;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(243, 156, 18, 0.3);
}

/* Control Panel Styling */
.control-panel {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    height: fit-content;
    max-height: 80vh;
    overflow-y: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .aliasing-controls .row > div {
        margin-bottom: 15px;
    }
    
    .aliasing-controls .d-grid {
        gap: 10px !important;
    }
}

/* Animation for aliasing effects */
@keyframes pulse-warning {
    0% { box-shadow: 0 0 0 0 rgba(243, 156, 18, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(243, 156, 18, 0); }
    100% { box-shadow: 0 0 0 0 rgba(243, 156, 18, 0); }
}

.aliasing-active {
    animation: pulse-warning 2s infinite;
}


/* Quick fix for overlapping elements */
#aliasing-warning {
  position: relative !important;
  z-index: 1000 !important;
  margin-bottom: 1rem !important;
  margin-top: 1rem !important;
}

#analysis-result {
  position: relative !important;
  z-index: 900 !important;
  margin-bottom: 1rem !important;
}

#signal-canvas > div {
  position: relative !important;
  z-index: 800 !important;
}

#ecg-canvas {
  position: relative !important;
  z-index: 700 !important;
}

/* Ensure the signal canvas container has proper spacing */
.signal-canvas-container {
  padding-top: 1rem;
  min-height: 600px;
}

.sampling-info {
    background: #f8f9fa;
    border-radius: 5px;
    padding: 8px;
    margin-top: 8px;
    font-size: 0.75rem;
}

.nyquist-warning {
    color: #dc3545;
    font-weight: 500;
    font-size: 0.7rem;
    margin-top: 4px;
}

.probability-bars .progress {
    background-color: #e9ecef;
}

.confidence-badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}


}

