/* You should move these styles to public/css/style.css */
.footer {
    text-align: center; /* text-center */
    padding-top: 1.5rem; /* py-6 */
    padding-bottom: 1.5rem;
    font-size: 0.875rem; /* text-sm */
    color: #6b7280; /* text-gray-500 */
    margin-top: auto; /* Pushes footer down */
    border-top: 1px solid #e5e7eb; /* border-t border-gray-200 */
    background-color: #ffffff; /* bg-white */
}

.welcome-hero {
    margin-bottom: 4rem; /* mb-16 */
}
.welcome-title {
    font-size: 2.25rem; /* text-4xl */
    line-height: 2.5rem;
    font-weight: 700; /* font-bold */
    color: #E91E63; /* brand-pink */
    margin-bottom: 0.75rem; /* mb-3 */
}
.welcome-subtitle {
    font-size: 1.125rem; /* text-lg */
    line-height: 1.75rem;
    color: #4b5563; /* text-gray-600 */
    margin-bottom: 2rem; /* mb-8 */
    max-width: 42rem; /* max-w-2xl */
    margin-left: auto;
    margin-right: auto;
}

/* Basic Button Styles */
.button {
    display: inline-block;
    font-weight: 700; /* font-bold */
    padding: 0.75rem 2rem; /* py-3 px-8 */
    border-radius: 9999px; /* rounded-full */
    text-decoration: none;
    transition: background-color 0.3s;
    cursor: pointer;
}
.button-pink {
    background-color: #E91E63; /* brand-pink */
    color: white;
}
.button-pink:hover {
    background-color: #c2185b; /* darker pink */
}
.button-arrow i {
    margin-left: 0.5rem;
}

.how-it-works {
    margin-bottom: 4rem; /* mb-16 */
}
.section-title {
    font-size: 1.875rem; /* text-3xl */
    line-height: 2.25rem;
    font-weight: 700; /* font-bold */
    color: #1f2937; /* text-gray-800 */
    margin-bottom: 2rem; /* mb-8 */
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr)); /* Mobile: 1 column */
    gap: 2rem; /* gap-8 */
}
@media (min-width: 768px) { /* md breakpoint */
    .feature-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)); /* Desktop: 3 columns */
    }
}

.feature-card {
    background-color: white;
    padding: 1.5rem; /* p-6 */
    border-radius: 0.5rem; /* rounded-lg */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); /* shadow-md */
    border: 1px solid #e5e7eb; /* border border-gray-200 */
    text-align: left; /* Align text left within cards */
}
.card-icon {
    font-size: 2.25rem; /* text-3xl roughly */
    color: #E91E63; /* brand-pink */
    margin-bottom: 1rem; /* mb-4 */
}
.card-title {
    font-size: 1.25rem; /* text-xl */
    font-weight: 600; /* font-semibold */
    margin-bottom: 0.5rem; /* mb-2 */
}
.card-description {
    color: #4b5563; /* text-gray-600 */
    margin-bottom: 1rem; /* mb-4 */
}
.card-link {
    font-weight: 500; /* font-medium */
    color: #E91E63; /* brand-pink */
    text-decoration: none;
}
.card-link:hover {
    color: #c2185b; /* darker pink */
}

.transform-section {
    background-color: #FDEEF2; /* brand-light-pink */
    padding: 2rem; /* p-8 */
    border-radius: 0.75rem; /* rounded-lg */
}
.section-title-light {
     font-size: 1.5rem; /* text-2xl */
     line-height: 2rem;
     font-weight: 700; /* font-bold */
     color: #1f2937; /* text-gray-800 */
     margin-bottom: 0.75rem; /* mb-3 */
}
.transform-section p {
    color: #374151; /* text-gray-700 */
    margin-bottom: 1.5rem; /* mb-6 */
}
.analysis-page {
    max-width: 42rem; /* max-w-2xl */
    margin-left: auto; /* Center the container */
    margin-right: auto; /* Center the container */
}
.analysis-title {
    font-size: 1.875rem; /* text-3xl */
    line-height: 2.25rem;
    font-weight: 700; /* font-bold */
    margin-bottom: 0.5rem; /* mb-2 */
}
.analysis-subtitle {
    font-size: 1rem; /* text-base */
    color: #4b5563; /* text-gray-600 */
    margin-bottom: 1.5rem; /* mb-6 */
}
.analysis-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* space-y-6 */
}
.step-card {
    background-color: white;
    padding: 1.5rem; /* p-6 */
    border-radius: 0.75rem; /* rounded-lg */
    border: 1px solid #e5e7eb; /* border border-gray-200 */
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); /* shadow */
}
.step-title {
    font-size: 1.25rem; /* text-xl */
    font-weight: 700; /* font-bold */
}
.step-subtitle {
    font-size: 0.875rem; /* text-sm */
    color: #6b7280; /* text-gray-500 */
    margin-bottom: 1.25rem; /* mb-5 */
}
.form-group {
    margin-bottom: 1.25rem; /* mb-5 */
}
.form-label {
    display: block;
    font-weight: 600; /* font-semibold */
    margin-bottom: 0.5rem; /* mb-2 */
    font-size: 0.875rem; /* text-sm */
}
.choice-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem; /* space-x-3 */
}
.choice-chip {
    display: inline-flex; /* Use flex to align */
    align-items: center;
    padding: 0.5rem 1rem; /* py-2 px-4 */
    border: 1px solid #d1d5db; /* border-gray-300 */
    border-radius: 9999px; /* rounded-full */
    cursor: pointer;
    background-color: #f9fafb; /* bg-gray-50 */
    transition: background-color 0.2s, border-color 0.2s;
}
.choice-chip input[type="radio"] {
    display: none; /* Hide the actual radio button */
}
.choice-chip span {
     margin-left: 0.25rem; /* Add space if needed, depends on styling */
}
.choice-chip:has(input[type="radio"]:checked) { /* Style label when radio inside is checked */
    background-color: #FDEEF2; /* bg-brand-light-pink */
    border-color: #E91E63; /* border-brand-pink */
    color: #E91E63; /* text-brand-pink */
    font-weight: 600;
}
.choice-chip:hover {
    background-color: #f3f4f6; /* bg-gray-100 */
}
.choice-chip:has(input[type="radio"]:checked):hover {
    background-color: #fce4ec; /* Slightly darker pink on hover */
}

.file-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem; /* space-x-3 */
}
.button-grey {
    background-color: #e5e7eb; /* bg-gray-200 */
    color: #374151; /* text-gray-700 */
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.button-grey:hover {
    background-color: #d1d5db; /* bg-gray-300 */
}
.file-name {
    color: #6b7280; /* text-gray-500 */
    font-style: italic;
    font-size: 0.875rem;
}

.button-container {
    text-align: center;
    position: relative; /* Needed for spinner positioning */
    min-height: 48px; /* Ensure space even when button is hidden */
}
.button-analyze {
    padding: 0.75rem 2.5rem; /* py-3 px-10 */
}
.button-analyze i {
    margin-right: 0.5rem;
}
.button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Basic Spinner */
.spinner {
    border: 4px solid #f3f4f6; /* Light grey */
    border-top: 4px solid #E91E63; /* Pink */
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    margin: 12px auto 0 auto; /* Center below button space */
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.form-error {
    color: #dc2626; /* red-600 */
    font-size: 0.875rem; /* text-sm */
    margin-top: 1rem;
    text-align: center;
}
/* Add to style.css */
.image-preview-container {
    margin-top: 1rem; /* Add some space above the preview */
    width: 100%;
    max-width: 300px; /* Limit preview size */
    margin-left: auto; /* Center preview if container is wider */
    margin-right: auto;
}

.image-preview {
    display: block; /* Make it a block element */
    max-width: 100%; /* Ensure image fits container */
    max-height: 300px; /* Limit height */
    border: 1px solid #e5e7eb; /* Add a light border */
    border-radius: 0.5rem; /* Rounded corners */
    margin-top: 0.5rem; /* Space below file name */
}
/* You should move these styles to public/css/style.css */
.analysis-page { max-width: 42rem; margin-left: auto; margin-right: auto; }
.analysis-title { font-size: 1.875rem; line-height: 2.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.analysis-subtitle { font-size: 1rem; color: #4b5563; margin-bottom: 1.5rem; }
.analysis-form { display: flex; flex-direction: column; gap: 1.5rem; }
.step-card { background-color: white; padding: 1.5rem; border-radius: 0.75rem; border: 1px solid #e5e7eb; box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); }
.step-title { font-size: 1.25rem; font-weight: 700; }
.step-subtitle { font-size: 0.875rem; color: #6b7280; margin-bottom: 1.25rem; }
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-weight: 600; margin-bottom: 0.5rem; font-size: 0.875rem; }
.choice-group { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.choice-chip { display: inline-flex; align-items: center; padding: 0.5rem 1rem; border: 1px solid #d1d5db; border-radius: 9999px; cursor: pointer; background-color: #f9fafb; transition: background-color 0.2s, border-color 0.2s; }
.choice-chip input[type="radio"] { display: none; }
.choice-chip span { margin-left: 0.25rem; }
.choice-chip:has(input[type="radio"]:checked) { background-color: #FDEEF2; border-color: #E91E63; color: #E91E63; font-weight: 600; }
.choice-chip:hover { background-color: #f3f4f6; }
.choice-chip:has(input[type="radio"]:checked):hover { background-color: #fce4ec; }
.file-input-wrapper { display: flex; align-items: center; gap: 0.75rem; }
.button-grey { background-color: #e5e7eb; color: #374151; padding: 0.5rem 1rem; border-radius: 0.375rem; font-weight: 500; cursor: pointer; border: none; display: inline-flex; align-items: center; gap: 0.5rem; }
.button-grey:hover { background-color: #d1d5db; }
.file-name { color: #6b7280; font-style: italic; font-size: 0.875rem; }
.image-preview-container { margin-top: 1rem; width: 100%; max-width: 300px; margin-left: auto; margin-right: auto; }
.image-preview { display: block; max-width: 100%; max-height: 300px; border: 1px solid #e5e7eb; border-radius: 0.5rem; margin-top: 0.5rem; }
.button-container { text-align: center; position: relative; min-height: 48px; }
.button-analyze { padding: 0.75rem 2.5rem; }
.button-analyze i { margin-right: 0.5rem; }
.button:disabled { opacity: 0.5; cursor: not-allowed; }
.spinner { border: 4px solid #f3f4f6; border-top: 4px solid #E91E63; border-radius: 50%; width: 24px; height: 24px; animation: spin 1s linear infinite; margin: 12px auto 0 auto; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.form-error { color: #dc2626; font-size: 0.875rem; margin-top: 1rem; text-align: center; }

/* --- Add/Modify these rules in public/css/style.css --- */

/* Container for the image card content */
.result-image-container {
    width: 100%; /* Take full width of its card */
    max-width: 300px; /* **Maximum width for the image container** */
    margin-left: auto; /* Center the container within the card */
    margin-right: auto;
    aspect-ratio: 3 / 4; /* **Maintain a 3:4 aspect ratio (adjust if needed)** */
    background-color: #f3f4f6; /* Light grey background for empty state */
    border-radius: 0.5rem; /* rounded-lg */
    display: flex; /* Used to center placeholder text */
    align-items: center;
    justify-content: center;
    overflow: hidden; /* **Crucial: Prevents image from overflowing** */
}

/* Placeholder text styles (when no image) */
.result-image-container p {
    color: #6b7280; /* text-gray-500 */
    font-style: italic;
    font-size: 0.875rem; /* text-sm */
    padding: 1rem; /* Add padding for text */
    text-align: center;
}

/* The image itself */
.result-image-preview {
    display: block; /* Make it block to fill container */
    width: 100%; /* **Fill container width** */
    height: 100%; /* **Fill container height** */
    object-fit: cover; /* **Scale image to cover container, cropping if needed** */
    /* Alternative: use 'contain' if you want to see the whole image without cropping, */
    /* but might leave empty space: object-fit: contain; */
    border-radius: 0.5rem; /* Match container rounding */
}

/* Ensure the grid layout adapts */
.results-layout {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr)); /* Mobile: 1 column */
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    align-items: start; /* Align items to the start of the grid cell */
}
@media (min-width: 768px) { /* Desktop: 2 columns, specific areas */
    .results-layout {
         grid-template-columns: repeat(2, minmax(0, 1fr));
         grid-template-areas:
            "image features"
            "recs recs";
    }
    .image-card { grid-area: image; }
    .features-card { grid-area: features; }
    .recommendations-card { grid-area: recs; }
}

.results-card { /* Basic card styles */
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

/* You should move ALL these styles to public/css/style.css */
.results-page { max-width: 64rem; }
.results-title { font-size: 1.875rem; font-weight: 700; margin-bottom: 0.5rem; text-align: center; }
.results-subtitle { font-size: 1rem; color: #4b5563; margin-bottom: 2rem; text-align: center; }
.results-layout { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 1.5rem; margin-bottom: 2.5rem; align-items: start; }
@media (min-width: 768px) {
    .results-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "image features" "recs recs"; }
    .image-card { grid-area: image; }
    .features-card { grid-area: features; }
    .recommendations-card { grid-area: recs; }
}
.results-card { background-color: white; padding: 1.5rem; border-radius: 0.75rem; border: 1px solid #e5e7eb; box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); }
.card-title-lg { font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; display: flex; align-items: center; }
.card-icon-sm { color: #E91E63; margin-right: 0.5rem; font-size: 1.1rem; }
.feature-list p, .recommendation-list div { margin-bottom: 0.75rem; } /* Use div for flex */
.feature-list span, .recommendation-list span { font-weight: 600; margin-right: 0.25rem; }
.result-image-container { width: 100%; max-width: 350px; margin: 0 auto; aspect-ratio: 3 / 4; background-color: #f3f4f6; border-radius: 0.5rem; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.result-image-container p { color: #6b7280; font-style: italic; padding: 1rem; text-align: center; }
.result-image-preview { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0.5rem; }
.save-button-container { text-align: center; margin-top: 1rem; }
.form-error { color: #dc2626; font-size: 0.875rem; margin-top: 0.5rem; }

/* --- NEW TRY-ON BUTTON STYLE --- */
.try-on-button {
    font-size: 0.75rem; /* text-xs */
    font-weight: 600;
    color: #E91E63; /* brand-pink */
    background-color: #FDEEF2; /* brand-light-pink */
    border: 1px solid #E91E63;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    cursor: pointer;
    margin-left: 0.75rem;
    transition: background-color 0.2s;
}
.try-on-button:hover { background-color: #fce4ec; }
.recommendation-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f3f4f6;
}

/* --- NEW MODAL STYLES --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    padding: 1rem;
}
.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}
.modal-close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    font-size: 1.75rem;
    font-weight: bold;
    color: #9ca3af; /* gray-400 */
    background: none;
    border: none;
    cursor: pointer;
}
.modal-close:hover { color: #1f2937; }
.modal-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; }
.modal-image-container { margin-top: 1rem; }
.modal-image { width: 100%; border-radius: 0.5rem; border: 1px solid #e5e7eb; }
.modal-prompt { font-size: 0.875rem; color: #6b7280; margin-top: 0.5rem; font-style: italic; }
.modal-content .spinner { margin: 2rem auto; }

.results-page-v2 { max-width: 64rem; /* max-w-4xl */ }
.results-title { font-size: 1.875rem; font-weight: 700; margin-bottom: 0.5rem; text-align: center; }
.results-subtitle { font-size: 1rem; color: #4b5563; margin-bottom: 2rem; text-align: center; }

/* Grid for Photo + Features */
.results-layout-v2 {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr)); /* 1 column on mobile */
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    align-items: start;
}
@media (min-width: 768px) { /* 2 columns on desktop */
    .results-layout-v2 { grid-template-columns: 1fr 1fr; } /* 1fr 1fr for 50/50 split */
}

/* Base Card Style */
.results-card-v2 {
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05); /* Lighter shadow */
}
.card-title-v2 {
    font-size: 1.125rem; /* text-lg */
    font-weight: 600; /* font-semibold */
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
}
.card-icon-sm { color: #E91E63; margin-right: 0.5rem; font-size: 1.1rem; }

/* Photo Card */
.result-image-container-v2 {
    width: 100%;
    margin: 0 auto;
    aspect-ratio: 1 / 1; /* Square */
    background-color: #f3f4f6;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.result-image-container-v2 p { color: #6b7280; font-style: italic; }
.result-image-preview-v2 { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0.5rem; }

/* Features Card */
.feature-list-v2 p {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6; /* Lighter separator */
}
.feature-list-v2 p:last-child { border-bottom: none; }
.feature-list-v2 span { font-weight: 600; color: #374151; }

/* Recommendations Card */
.recommendation-list-v2 .recommendation-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.recommendation-list-v2 .recommendation-item:last-child { border-bottom: none; }
.recommendation-list-v2 .rec-text { flex: 1; }
.recommendation-list-v2 .rec-text span { font-weight: 600; color: #374151; display: block; margin-bottom: 0.25rem; }
.recommendation-list-v2 .rec-text p { margin: 0; font-size: 0.875rem; color: #4b5563; }

/* Try On Button */
.try-on-button-v2 {
    font-size: 0.875rem; /* text-sm */
    font-weight: 600;
    color: #E91E63;
    background-color: white;
    border: 1px solid #E91E63;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap; /* Prevent button text from wrapping */
}
.try-on-button-v2:hover { background-color: #FDEEF2; }

/* Save Look Button */
.save-button-container-v2 { text-align: center; margin-top: 1.5rem; }
.button-save-look { padding: 0.75rem 2.5rem; }

/* --- MODAL STYLES (Same as before) --- */
.modal-overlay { /* ... */ }
.modal-content { /* ... */ }
/* ... (all other .modal- styles) ... */



/* Pop-up confirmation styles */
/* --- MODAL STYLES (Add or verify in style.css) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    padding: 1rem;
}
.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}
/* New style for smaller modal */
.modal-small {
    max-width: 400px; 
}
.modal-close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    font-size: 1.75rem;
    font-weight: bold;
    color: #9ca3af; /* gray-400 */
    background: none;
    border: none;
    cursor: pointer;
}
.modal-close:hover { color: #1f2937; }
.modal-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; }
.modal-text { margin-bottom: 1.5rem; color: #4b5563; }
.modal-buttons {
    display: flex;
    justify-content: flex-end; /* Align buttons to the right */
    gap: 0.75rem;
}
/* Re-use button styles */
.button {
    display: inline-block;
    font-weight: 700;
    padding: 0.75rem 1.5rem; /* Slightly smaller padding */
    border-radius: 9999px;
    text-decoration: none;
    transition: background-color 0.3s;
    cursor: pointer;
    border: none; /* Ensure buttons don't have default borders */
}
.button-pink {
    background-color: #E91E63;
    color: white;
}
.button-pink:hover { background-color: #c2185b; }
.button-grey {
    background-color: #e5e7eb;
    color: #374151;
}
.button-grey:hover { background-color: #d1d5db; }

/* ... (Other modal styles like spinner, image container...) ... */




/* --- NEW: Customization Modal Styles (Add to style.css) --- */

/* Larger modal size */
.modal-large {
    max-width: 900px; /* Wider for the two-column layout */
    padding: 1.5rem;
}

.customize-layout {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns */
    gap: 1.5rem; /* Gap between columns */
    margin-top: 1rem;
}

.customize-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Color Palette */
.color-palette {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap; /* Allow colors to wrap */
}

.color-palette input[type="radio"] {
    display: none; /* Hide default radio button */
}

.color-swatch {
    width: 2.25rem; /* size of color swatch */
    height: 2.25rem;
    border-radius: 50%; /* Make it circular */
    cursor: pointer;
    border: 2px solid transparent; /* Default border */
    display: inline-block; /* For proper sizing */
    transition: border-color 0.2s ease-in-out;
}

/* Styles for active color swatch */
.color-palette input[type="radio"]:checked + .color-swatch {
    border-color: #E91E63; /* Pink border when selected */
    box-shadow: 0 0 0 2px rgba(233, 30, 99, 0.5); /* Soft glow */
}

/* Specific colors */
.bg-red-500 { background-color: #ef4444; }
.bg-pink-500 { background-color: #ec4899; }
.bg-yellow-700 { background-color: #b45309; } /* Nude-ish */
.bg-amber-900 { background-color: #78350f; } /* Brown */
.bg-black { background-color: #000; }
.bg-gray-300 { background-color: #d1d5db; } /* Default/placeholder */


/* Slider for Intensity */
.slider {
    -webkit-appearance: none; /* Override default look */
    width: 100%;
    height: 8px;
    background: #d1d5db; /* Gray-300 */
    outline: none;
    border-radius: 5px;
    opacity: 0.7;
    -webkit-transition: .2s;
    transition: opacity .2s;
}

.slider:hover { opacity: 1; }

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #E91E63; /* Pink */
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #E91E63;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db; /* gray-300 */
    border-radius: 0.375rem; /* rounded-md */
    font-size: 1rem;
    line-height: 1.5rem;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}
.form-textarea:focus {
    border-color: #E91E63; /* pink-500 */
    outline: none;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.2);
}


/* Preview Section */
.customize-preview {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.image-box {
    border: 1px solid #e5e7eb; /* gray-200 */
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
    background-color: #ffffff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    flex: 1; /* Make both image boxes take equal height */
}

.box-title {
    font-size: 1.125rem; /* text-lg */
    font-weight: 600; /* semi-bold */
    margin-bottom: 0.75rem;
    color: #1f2937; /* gray-800 */
}

.image-preview-thumbnail {
    width: 100%;
    height: 200px; /* Fixed height for consistent layout */
    object-fit: contain; /* Ensure entire image is visible without cropping */
    border: 1px dashed #d1d5db; /* gray-300 */
    border-radius: 0.375rem;
    background-color: #f9fafb; /* gray-50 */
    display: block; /* For correct sizing */
    margin: 0 auto;
}

/* Placeholder inside image-preview-thumbnail */
.image-preview-thumbnail.flex { /* To center placeholder text */
    display: flex;
    align-items: center;
    justify-content: center;
}
.tutorials-page { max-width: 56rem; /* max-w-3xl */ }
.tutorials-title { font-size: 1.875rem; font-weight: 700; margin-bottom: 0.5rem; text-align: center; }
.tutorials-subtitle { font-size: 1rem; color: #4b5563; margin-bottom: 2rem; text-align: center; }
.library-section { margin-top: 2.5rem; }
.library-title { font-size: 1.5rem; font-weight: 600; margin-bottom: 1.5rem; border-bottom: 1px solid #e5e7eb; padding-bottom: 0.5rem; }

.library-empty { text-align: center; padding: 3rem 1rem; background-color: #f9fafb; border-radius: 0.5rem; }
.empty-icon { font-size: 3rem; color: #9ca3af; margin-bottom: 1rem; }
.library-empty h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.25rem; }
.library-empty p { color: #6b7280; }

.tutorial-grid { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 1.5rem; }
@media (min-width: 768px) { .tutorial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.tutorial-card { background-color: #ffffff; border-radius: 0.75rem; border: 1px solid #e5e7eb; box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05); overflow: hidden; }

/* --- MODIFICATIONS BELOW --- */

.video-container {
  width: 100%;
  background-color: #000;
  aspect-ratio: 16 / 9; /* Forces a 16:9 ratio */
  overflow: hidden;
}

.video-container video {
  width: 100%;
  height: 100%;      /* Fills the container's height */
  display: block;
  object-fit: cover;  /* Fills the space, cropping as needed */
}

/* --- END MODIFICATIONS --- */

.card-content { padding: 1.25rem; }
.card-category { font-size: 0.75rem; font-weight: 600; color: #E91E63; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.25rem; display: block; }
.card-title-md { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.5rem; }
.card-description-sm { font-size: 0.875rem; color: #4b5563; line-height: 1.4; }