body {
    background-color: #f5f5f5;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.color-picker-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

#how-to-use, #tips {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.palette-section {
    width: 40%;
    padding: 2rem;
    border-right: 1px solid #eee;
}

.color-palette {
    display: flex;
    height: 50px;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.color-swatch {
    flex: 1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.color-swatch:hover {
    transform: scale(1.05);
}

.palette-controls {
    display: flex;
    gap: 0.5rem;
}

.image-container {
    width: 60%;
    position: relative;
    background: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    min-height: 400px;
}

#uploadedImage {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.color-pointer {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid white;
    transform: translate(-50%, -50%);
    cursor: move;
    z-index: 10;
}

.info-icon, .info-text {
    position: absolute;
    bottom: 10px;
    right: 10px;
    color: #333;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.7);
    padding: 5px 10px;
    border-radius: 5px;
}

.dropdown-toggle::after {
    display: none;
}

.dropdown-toggle {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.text-gray-600 {
    color: #718096;
}

.text-gray-800 {
    color: #2d3748;
}

.text-sm {
    font-size: 0.875rem;
}

.step-number {
    width: 30px;
    height: 30px;
    background-color: #0d6efd;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.action-buttons {
    margin-top: 1.5rem;
}

.action-buttons button {
    transition: all 0.3s ease;
}

.action-buttons button:hover {
    transform: translateY(-2px);
}

/* Form styling */
.form-range::-webkit-slider-thumb {
    background: #0d6efd;
}

.form-range::-moz-range-thumb {
    background: #0d6efd;
}

/* Button styling */
.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.btn-outline-secondary {
    color: #6c757d;
    border-color: #6c757d;
}

.btn-outline-secondary:hover {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}

@media (max-width: 768px) {
    .color-picker-container .card-body {
        flex-direction: column;
    }
    
    .palette-section, .image-container {
        width: 100%;
        padding: 1rem;
    }
    
    .palette-section {
        border-right: none;
        border-bottom: 1px solid #eee;
        margin-bottom: 1rem;
    }
    
    .image-container {
        min-height: 300px;
    }
    
    #uploadedImage {
        max-width: 100%;
        height: auto;
    }
    
    .color-palette {
        flex-wrap: wrap;
    }
    
    .color-swatch {
        min-width: 40px;
    }
    
    .info-text {
        font-size: 0.8rem;
        padding: 3px 6px;
    }
}

@media (max-width: 576px) {
    .palette-section {
        padding: 0.75rem;
    }
    
    .image-container {
        min-height: 250px;
    }
    
    .step-number {
        width: 25px;
        height: 25px;
        font-size: 0.9rem;
    }
    
    #how-to-use .card-body, #tips .card-body {
        padding: 1rem;
    }
    
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .modal-body .row .col-4 {
        padding: 0.25rem;
    }
    
    .modal-body .btn {
        font-size: 0.8rem;
        padding: 0.375rem 0.5rem;
    }
}