.contrast-tester {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.color-inputs {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem;
    align-items: end;
    margin-bottom: 2rem;
}

.color-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.color-group label {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.color-input-wrapper {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.color-picker {
    width: 60px;
    height: 40px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    background: none;
}

.color-picker:focus {
    outline: none;
    border-color: #9c27b0;
    box-shadow: 0 0 0 3px rgba(156, 39, 176, 0.1);
}

.color-text {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.color-text:focus {
    outline: none;
    border-color: #9c27b0;
    box-shadow: 0 0 0 3px rgba(156, 39, 176, 0.1);
}

.swap-button {
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    background: white;
    color: #9c27b0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: #9c27b0;
    color: white;
    transform: rotate(180deg);
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #9c27b0 0%, #673ab7 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(156, 39, 176, 0.3);
}

.btn-secondary {
    background: #f5f5f5;
    color: #666;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.btn-outline {
    background: transparent;
    border: 2px solid #9c27b0;
    color: #9c27b0;
}

.btn-outline:hover {
    background: #9c27b0;
    color: white;
}

.results-section {
    margin-top: 2rem;
}

.result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.result-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.result-card h3 {
    color: #333;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.result-card h3 i {
    color: #9c27b0;
}

.contrast-preview {
    min-height: 120px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    border: 2px solid #e0e0e0;
    margin-bottom: 1rem;
}

.contrast-ratio {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    color: #333;
    margin-bottom: 1rem;
}

.compliance-status {
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.compliance-status.excellent {
    background: #e8f5e8;
    border-left: 4px solid #4caf50;
}

.compliance-status.good {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
}

.compliance-status.fair {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
}

.compliance-status.poor {
    background: #ffebee;
    border-left: 4px solid #f44336;
}

.compliance-status h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.compliance-status p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

.suggestions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.suggestion-item {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.suggestion-item:hover {
    border-color: #9c27b0;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(156, 39, 176, 0.2);
}

.suggestion-preview {
    height: 60px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.suggestion-info {
    text-align: center;
}

.suggestion-info p {
    margin: 0.25rem 0;
    font-size: 0.8rem;
    color: #666;
}

.tool-info {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
}

.tool-info h3 {
    color: #333;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tool-info h3 i {
    color: #9c27b0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.info-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.info-item h4 {
    color: #9c27b0;
    margin-bottom: 0.5rem;
}

.info-item p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .color-inputs {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .swap-button {
        transform: rotate(90deg);
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .result-grid {
        grid-template-columns: 1fr;
    }
    
    .suggestions-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}
