/* Sleep Position Analyzer Specific Styles */

/* Position Selector Styles */
.position-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.position-option {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.position-option:hover {
    border-color: #2563eb;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.15);
    transform: translateY(-2px);
}

.position-option.selected {
    border-color: #2563eb;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.2);
}

.position-option.selected::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 12px;
    background: #2563eb;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.position-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: white;
    font-size: 24px;
    transition: all 0.3s ease;
}

.position-option:hover .position-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.position-name {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.position-description {
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
}

/* Percentage Sliders */
.percentage-sliders {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
}

.slider-group {
    margin-bottom: 16px;
}

.slider-group:last-of-type {
    margin-bottom: 20px;
}

.slider-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.percentage-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e2e8f0;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.percentage-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2563eb;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
    transition: all 0.2s ease;
}

.percentage-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.percentage-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2563eb;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.percentage-total {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    padding: 12px;
    background: white;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
}

/* Checkbox Group Styles */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    color: #374151;
}

.checkbox-item:hover {
    background: #eff6ff;
    border-color: #2563eb;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #2563eb;
    cursor: pointer;
}

.checkbox-item input[type="checkbox"]:checked + span {
    color: #2563eb;
    font-weight: 500;
}

/* Results Section Enhancements */
.results-section {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: 16px;
    padding: 32px;
    margin-top: 32px;
    border: 1px solid #0ea5e9;
    box-shadow: 0 8px 32px rgba(14, 165, 233, 0.1);
}

.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.analysis-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.analysis-card h4 {
    color: #1e293b;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.analysis-card h4 i {
    color: #2563eb;
    font-size: 20px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .position-selector {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .position-option {
        padding: 16px;
    }
    
    .position-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .analysis-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .percentage-sliders {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .position-selector {
        gap: 8px;
    }
    
    .position-option {
        padding: 12px;
    }
    
    .position-name {
        font-size: 14px;
    }
    
    .position-description {
        font-size: 12px;
    }
}
