/* Custom scrollbar for better aesthetics */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f3f4f6; /* Light gray background */
}
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #e0e0e0;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Modal specific styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Dim background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensure it's on top */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal.open {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    max-width: 90%;
    width: 500px; /* Max width for the modal */
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    display: flex; /* Use flexbox for content arrangement */
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.modal.open .modal-content {
    transform: translateY(0);
}
.close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280; /* Gray-500 */
    transition: color 0.2s ease;
}
.close-button:hover {
    color: #1f2937; /* Gray-900 */
}
/* Image preview for virtual try-on */
.try-on-image-preview {
    max-width: 100%;
    max-height: 250px;
    object-fit: contain;
    margin: 1rem auto;
    border-radius: 8px;
    border: 1px solid #e5e7eb; /* Gray-200 */
}
.try-on-result-image {
    max-width: 100%;
    max-height: 300px; /* Larger for result image */
    object-fit: contain;
    margin: 1.5rem auto;
    border-radius: 8px;
    border: 2px solid #3b82f6; /* Blue border for result */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
/* Progress bar styles */
.progress-bar-container {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    height: 10px; /* Height of the progress bar */
    margin-top: 1rem;
    display: none; /* Hidden by default */
}
.progress-bar {
    height: 100%;
    background-color: #3b82f6; /* Blue progress */
    position: relative;
    overflow: hidden; /* Hide overflow of pseudo-element */
}

/* Indeterminate animation */
.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%; /* Start off-screen to the left */
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: indeterminate-progress 1.5s infinite linear;
}

@keyframes indeterminate-progress {
    0% { left: -100%; }
    100% { left: 100%; }
}