/* Image Color Picker Styles */

/* Upload Section */
.upload-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.drop-zone-modern {
    background: #f8f9fa;
    border: 3px dashed #ddd;
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.drop-zone-modern:hover,
.drop-zone-modern.drag-over {
    border-color: #fb983a;
    background-color: #fff5f0;
}

.nav-pills .nav-link {
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    margin: 0 0.25rem;
    color: #666;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-pills .nav-link:hover {
    background-color: #f8f9fa;
    color: #fb983a;
}

.nav-pills .nav-link.active {
    background-color: #fb983a;
    color: white;
}

/* Color Picker Tool */
.color-picker-section {
    background: #f8f9fa;
    min-height: calc(100vh - 200px);
}

.sticky-panel {
    position: sticky;
    top: 80px;
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

/* Current Color Display */
.current-color-box {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
}

.color-preview-large {
    width: 100%;
    height: 120px;
    border-radius: 8px;
    border: 2px solid #dee2e6;
    background-color: #000000;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1);
}

.color-codes {
    margin-top: 1rem;
}

.color-code-item label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.color-code-item input {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

/* Canvas Container */
.canvas-container {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    min-height: 600px;
}

.canvas-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: 
        linear-gradient(45deg, #f0f0f0 25%, transparent 25%),
        linear-gradient(-45deg, #f0f0f0 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #f0f0f0 75%),
        linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    border-radius: 8px;
    overflow: hidden;
    min-height: 500px;
}

#imageCanvas {
    cursor: crosshair;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Magnifier */
.magnifier {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 3px solid #fb983a;
    border-radius: 50%;
    pointer-events: none;
    display: none;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    background-color: white;
}

.magnifier.active {
    display: block;
}

.canvas-instructions {
    color: #6c757d;
    font-size: 0.95rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Color Palette */
.palette-panel {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.color-palette {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.palette-color {
    aspect-ratio: 1;
    border-radius: 8px;
    border: 2px solid #dee2e6;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.palette-color:hover {
    transform: scale(1.1);
    border-color: #fb983a;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 10;
}

.palette-color::after {
    content: attr(data-hex);
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 20;
}

.palette-color:hover::after {
    opacity: 1;
}

/* Ad Boxes */
.ad-box {
    background: #f8f9fa;
    border: 1px dashed #dee2e6;
    border-radius: 8px;
    padding: 0.5rem;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Feature Boxes */
.feature-box {
    transition: all 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

/* FAQ Accordion Styling */
.accordion-button {
    background-color: #fff;
    color: #333;
    font-weight: 500;
}

.accordion-button:not(.collapsed) {
    background-color: #fb983a;
    color: white;
    box-shadow: none;
}

.accordion-button:focus {
    border-color: #fb983a;
    box-shadow: 0 0 0 0.25rem rgba(251, 152, 58, 0.25);
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-item {
    border: 1px solid #dee2e6;
    margin-bottom: 0.5rem;
    border-radius: 8px !important;
    overflow: hidden;
}

.accordion-button:hover {
    background-color: #fff5f0;
}

/* Responsive Design */
@media (max-width: 991px) {
    .sticky-panel {
        position: static;
        max-height: none;
        margin-bottom: 1rem;
    }
    
    .canvas-wrapper {
        min-height: 400px;
    }
    
    .magnifier {
        width: 80px;
        height: 80px;
    }
    
    .color-palette {
        grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
        max-height: 300px;
    }
}

@media (max-width: 767px) {
    .upload-box {
        padding: 2rem 1rem;
    }
    
    .nav-pills .nav-link {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }
    
    .upload-icon {
        font-size: 3rem;
    }
    
    .canvas-wrapper {
        min-height: 300px;
    }
    
    .color-palette {
        grid-template-columns: repeat(auto-fill, minmax(45px, 1fr));
    }
}

/* Scrollbar Styling */
.sticky-panel::-webkit-scrollbar,
.color-palette::-webkit-scrollbar {
    width: 8px;
}

.sticky-panel::-webkit-scrollbar-track,
.color-palette::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.sticky-panel::-webkit-scrollbar-thumb,
.color-palette::-webkit-scrollbar-thumb {
    background: #fb983a;
    border-radius: 4px;
}

.sticky-panel::-webkit-scrollbar-thumb:hover,
.color-palette::-webkit-scrollbar-thumb:hover {
    background: #e88830;
}
