/* Main Styles */
body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

/* Upload Area */
.upload-area {
    border: 3px dashed #dee2e6;
    border-radius: 15px;
    padding: 40px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

    .upload-area:hover {
        border-color: #0d6efd;
        background: #f8f9fa;
    }

    .upload-area.dragover {
        border-color: #0d6efd;
        background: #e7f1ff;
    }

/* Style Buttons */
.style-btn {
    transition: all 0.3s ease;
    font-size: 0.9rem;
    padding: 8px 4px;
}

    .style-btn:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    }

    .style-btn.selected {
        background: #0d6efd;
        color: white;
        border-color: #0d6efd;
    }

    .style-btn .hairstyle-icon {
        font-size: 1.2rem;
        display: block;
        margin-bottom: 5px;
    }

/* Sample Hairstyle Gallery */
.sample-card {
    cursor: pointer;
    border: 3px solid transparent;
    border-radius: 12px;
    padding: 4px;
    transition: all 0.2s ease;
}

    .sample-card:hover {
        transform: scale(1.03);
    }

    .sample-card.selected {
        border-color: #ffc107;
        background: #fff8e1;
    }

.sample-thumb {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.sample-placeholder {
    width: 100%;
    height: 120px;
    background: #e9ecef;
    font-size: 1.8rem;
}

.sample-unavailable {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Result Container */
#resultContainer {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-state {
    padding: 40px 20px;
    color: #6c757d;
}

#resultImage {
    max-width: 100%;
    max-height: 500px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: 15px;
    transition: all 0.3s ease;
    height: 100%;
}

    .feature-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    }

/* Loading Spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Comparison Modal */
.comparison-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

    .comparison-container img {
        max-width: 45%;
        border-radius: 10px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    }

/* Responsive */
@media (max-width: 768px) {
    .comparison-container img {
        max-width: 100%;
    }

    .upload-area {
        padding: 20px 15px;
    }

    .style-btn {
        font-size: 0.8rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

/* Toast Messages */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.toast {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
