/* Modern Luscher Color Test Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 800px;
    width: 100%;
    text-align: center;
}

h1 {
    color: #333;
    margin-bottom: 10px;
    font-size: 2.5rem;
    font-weight: 300;
}

.subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.instructions {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    border-left: 4px solid #007bff;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #28a745);
    border-radius: 3px;
    transition: width 0.3s ease;
    width: 0%;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 30px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.color-block {
    width: 120px;
    height: 120px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border: 3px solid transparent;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.color-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    border-color: #fff;
}

.color-block.selected {
    transform: scale(0.9);
    opacity: 0.7;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.3);
}

.color-block.selected::after {
    content: attr(data-order);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Color definitions with improved accessibility */
.color-block[data-color="grey"] { 
    background: linear-gradient(135deg, #6c757d, #495057); 
}
.color-block[data-color="blue"] { 
    background: linear-gradient(135deg, #007bff, #0056b3); 
}
.color-block[data-color="green"] { 
    background: linear-gradient(135deg, #28a745, #1e7e34); 
}
.color-block[data-color="red"] { 
    background: linear-gradient(135deg, #dc3545, #c82333); 
}
.color-block[data-color="yellow"] { 
    background: linear-gradient(135deg, #ffc107, #e0a800); 
}
.color-block[data-color="violet"] { 
    background: linear-gradient(135deg, #6f42c1, #59359a); 
}
.color-block[data-color="brown"] { 
    background: linear-gradient(135deg, #8b4513, #654321); 
}
.color-block[data-color="black"] { 
    background: linear-gradient(135deg, #343a40, #1d2124); 
}

.selection-counter {
    margin-top: 20px;
    font-size: 1.1rem;
    color: #666;
}

.btn {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Analysis Results Styling */
.analysis-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
}

.analysis-section {
    background: white;
    margin-bottom: 30px;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.analysis-section h2 {
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
}

.analysis-section h3 {
    color: #555;
    margin: 20px 0 15px 0;
}

.color-group {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #007bff;
}

.color-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.color-sample {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    margin-right: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.color-info h4 {
    color: #333;
    margin-bottom: 5px;
}

.color-info p {
    color: #666;
    margin: 0;
}

.insight-box {
    background: #e3f2fd;
    border: 1px solid #2196f3;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.insight-box h4 {
    color: #1976d2;
    margin-bottom: 10px;
}

.changes-list {
    list-style: none;
    padding: 0;
}

.changes-list li {
    padding: 10px;
    margin-bottom: 10px;
    background: white;
    border-radius: 5px;
    border-left: 4px solid #ffc107;
}

@media (max-width: 768px) {
    .color-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .color-block {
        width: 100px;
        height: 100px;
    }
    
    .container {
        padding: 20px;
        margin: 10px;
    }
    
    h1 {
        font-size: 2rem;
    }
}