/* 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; } 
 / *   - - -   E N H A N C E D   W E L C O M E   P A G E   S T Y L E S   - - -   * /  
  
 . w e l c o m e - p a g e - w r a p p e r   {  
         o v e r f l o w - x :   h i d d e n ;  
 }  
  
 / *   H e r o   S e c t i o n   * /  
 . h e r o - s e c t i o n   {  
         p a d d i n g :   4 r e m   0   6 r e m   0 ;  
         b a c k g r o u n d :   l i n e a r - g r a d i e n t ( t o   b o t t o m ,   # f f f 0 f 5   0 % ,   # f f f f f f   1 0 0 % ) ;   / *   S u b t l e   g r a d i e n t   f r o m   l i g h t   p i n k   * /  
         p o s i t i o n :   r e l a t i v e ;  
 }  
  
 . h e r o - c o n t a i n e r   {  
         d i s p l a y :   g r i d ;  
         g r i d - t e m p l a t e - c o l u m n s :   1 f r ;  
         g a p :   3 r e m ;  
         a l i g n - i t e m s :   c e n t e r ;  
 }  
  
 @ m e d i a   ( m i n - w i d t h :   1 0 2 4 p x )   {  
         . h e r o - c o n t a i n e r   {  
                 g r i d - t e m p l a t e - c o l u m n s :   1 . 2 f r   1 f r ;  
                 g a p :   4 r e m ;  
         }  
 }  
  
 . h e r o - c o n t e n t   {  
         t e x t - a l i g n :   c e n t e r ;  
 }  
  
 @ m e d i a   ( m i n - w i d t h :   1 0 2 4 p x )   {  
         . h e r o - c o n t e n t   {  
                 t e x t - a l i g n :   l e f t ;  
         }  
 }  
  
 . h e r o - b a d g e   {  
         d i s p l a y :   i n l i n e - b l o c k ;  
         b a c k g r o u n d - c o l o r :   # F D E E F 2 ;  
         c o l o r :   # E 9 1 E 6 3 ;  
         f o n t - w e i g h t :   6 0 0 ;  
         f o n t - s i z e :   0 . 8 7 5 r e m ;  
         p a d d i n g :   0 . 5 r e m   1 r e m ;  
         b o r d e r - r a d i u s :   9 9 9 9 p x ;  
         m a r g i n - b o t t o m :   1 . 5 r e m ;  
 }  
  
 . h e r o - t i t l e   {  
         f o n t - s i z e :   2 . 5 r e m ;  
         l i n e - h e i g h t :   1 . 2 ;  
         f o n t - w e i g h t :   8 0 0 ;  
         c o l o r :   # 1 f 2 9 3 7 ;  
         m a r g i n - b o t t o m :   1 . 5 r e m ;  
 }  
  
 @ m e d i a   ( m i n - w i d t h :   7 6 8 p x )   {  
         . h e r o - t i t l e   {  
                 f o n t - s i z e :   3 . 5 r e m ;  
         }  
 }  
  
 . t e x t - p i n k   {  
         c o l o r :   # E 9 1 E 6 3 ;  
 }  
  
 . h e r o - s u b t i t l e   {  
         f o n t - s i z e :   1 . 1 2 5 r e m ;  
         c o l o r :   # 4 b 5 5 6 3 ;  
         l i n e - h e i g h t :   1 . 7 5 ;  
         m a r g i n - b o t t o m :   2 . 5 r e m ;  
         m a x - w i d t h :   6 0 0 p x ;  
         m a r g i n - l e f t :   a u t o ;  
         m a r g i n - r i g h t :   a u t o ;  
 }  
  
 @ m e d i a   ( m i n - w i d t h :   1 0 2 4 p x )   {  
         . h e r o - s u b t i t l e   {  
                 m a r g i n - l e f t :   0 ;  
                 m a r g i n - r i g h t :   0 ;  
         }  
 }  
  
 . h e r o - b u t t o n s   {  
         d i s p l a y :   f l e x ;  
         f l e x - d i r e c t i o n :   c o l u m n ;  
         g a p :   1 r e m ;  
         j u s t i f y - c o n t e n t :   c e n t e r ;  
         m a r g i n - b o t t o m :   3 r e m ;  
 }  
  
 @ m e d i a   ( m i n - w i d t h :   6 4 0 p x )   {  
         . h e r o - b u t t o n s   {  
                 f l e x - d i r e c t i o n :   r o w ;  
         }  
 }  
  
 @ m e d i a   ( m i n - w i d t h :   1 0 2 4 p x )   {  
         . h e r o - b u t t o n s   {  
                 j u s t i f y - c o n t e n t :   f l e x - s t a r t ;  
         }  
 }  
  
 . b u t t o n - l g   {  
         p a d d i n g :   1 r e m   2 . 5 r e m ;  
         f o n t - s i z e :   1 . 1 2 5 r e m ;  
 }  
  
 . b u t t o n - o u t l i n e   {  
         b a c k g r o u n d - c o l o r :   t r a n s p a r e n t ;  
         c o l o r :   # 4 b 5 5 6 3 ;  
         b o r d e r :   2 p x   s o l i d   # e 5 e 7 e b ;  
 }  
  
 . b u t t o n - o u t l i n e : h o v e r   {  
         b o r d e r - c o l o r :   # d 1 d 5 d b ;  
         c o l o r :   # 1 f 2 9 3 7 ;  
 }  
  
 / *   H e r o   S t a t s   * /  
 . h e r o - s t a t s   {  
         d i s p l a y :   f l e x ;  
         a l i g n - i t e m s :   c e n t e r ;  
         j u s t i f y - c o n t e n t :   c e n t e r ;  
         g a p :   2 r e m ;  
 }  
  
 @ m e d i a   ( m i n - w i d t h :   1 0 2 4 p x )   {  
         . h e r o - s t a t s   {  
                 j u s t i f y - c o n t e n t :   f l e x - s t a r t ;  
         }  
 }  
  
 . s t a t - i t e m   {  
         d i s p l a y :   f l e x ;  
         f l e x - d i r e c t i o n :   c o l u m n ;  
 }  
  
 . s t a t - n u m b e r   {  
         f o n t - s i z e :   1 . 5 r e m ;  
         f o n t - w e i g h t :   7 0 0 ;  
         c o l o r :   # 1 f 2 9 3 7 ;  
 }  
  
 . s t a t - l a b e l   {  
         f o n t - s i z e :   0 . 8 7 5 r e m ;  
         c o l o r :   # 6 b 7 2 8 0 ;  
 }  
  
 . s t a t - d i v i d e r   {  
         w i d t h :   1 p x ;  
         h e i g h t :   4 0 p x ;  
         b a c k g r o u n d - c o l o r :   # e 5 e 7 e b ;  
 }  
  
 / *   H e r o   I m a g e / V i s u a l   * /  
 . h e r o - i m a g e   {  
         d i s p l a y :   n o n e ;  
 }  
  
 @ m e d i a   ( m i n - w i d t h :   1 0 2 4 p x )   {  
         . h e r o - i m a g e   {  
                 d i s p l a y :   b l o c k ;  
                 p o s i t i o n :   r e l a t i v e ;  
         }  
 }  
  
 . h e r o - i m a g e - p l a c e h o l d e r   {  
         p o s i t i o n :   r e l a t i v e ;  
         w i d t h :   1 0 0 % ;  
         a s p e c t - r a t i o :   1 ;  
         d i s p l a y :   f l e x ;  
         a l i g n - i t e m s :   c e n t e r ;  
         j u s t i f y - c o n t e n t :   c e n t e r ;  
 }  
  
 . h e r o - c i r c l e - b g   {  
         p o s i t i o n :   a b s o l u t e ;  
         w i d t h :   8 0 % ;  
         h e i g h t :   8 0 % ;  
         b a c k g r o u n d - c o l o r :   # F D E E F 2 ;  
         b o r d e r - r a d i u s :   5 0 % ;  
         z - i n d e x :   0 ;  
 }  
  
 . h e r o - i c o n - l a r g e   {  
         f o n t - s i z e :   1 0 r e m ;  
         c o l o r :   # f b c f e 8 ;   / *   L i g h t e r   p i n k   * /  
         z - i n d e x :   1 ;  
         p o s i t i o n :   r e l a t i v e ;  
 }  
  
 . f l o a t i n g - c a r d   {  
         p o s i t i o n :   a b s o l u t e ;  
         b a c k g r o u n d - c o l o r :   w h i t e ;  
         p a d d i n g :   0 . 7 5 r e m   1 . 2 5 r e m ;  
         b o r d e r - r a d i u s :   0 . 7 5 r e m ;  
         b o x - s h a d o w :   0   1 0 p x   1 5 p x   - 3 p x   r g b a ( 0 ,   0 ,   0 ,   0 . 1 ) ,   0   4 p x   6 p x   - 2 p x   r g b a ( 0 ,   0 ,   0 ,   0 . 0 5 ) ;  
         d i s p l a y :   f l e x ;  
         a l i g n - i t e m s :   c e n t e r ;  
         g a p :   0 . 5 r e m ;  
         f o n t - w e i g h t :   6 0 0 ;  
         f o n t - s i z e :   0 . 8 7 5 r e m ;  
         z - i n d e x :   2 ;  
         a n i m a t i o n :   f l o a t   6 s   e a s e - i n - o u t   i n f i n i t e ;  
 }  
  
 . c a r d - 1   {  
         t o p :   2 0 % ;  
         l e f t :   0 ;  
         a n i m a t i o n - d e l a y :   0 s ;  
 }  
  
 . c a r d - 2   {  
         b o t t o m :   2 0 % ;  
         r i g h t :   0 ;  
         a n i m a t i o n - d e l a y :   2 s ;  
 }  
  
 @ k e y f r a m e s   f l o a t   {  
         0 %   {   t r a n s f o r m :   t r a n s l a t e Y ( 0 p x ) ;   }  
         5 0 %   {   t r a n s f o r m :   t r a n s l a t e Y ( - 1 0 p x ) ;   }  
         1 0 0 %   {   t r a n s f o r m :   t r a n s l a t e Y ( 0 p x ) ;   }  
 }  
  
 . t e x t - y e l l o w   {  
         c o l o r :   # f b b f 2 4 ;  
 }  
  
 / *   F e a t u r e s   S e c t i o n   * /  
 . f e a t u r e s - s e c t i o n   {  
         p a d d i n g :   6 r e m   0 ;  
         b a c k g r o u n d - c o l o r :   # f f f f f f ;  
 }  
  
 . s e c t i o n - h e a d e r   {  
         m a r g i n - b o t t o m :   4 r e m ;  
         t e x t - a l i g n :   c e n t e r ;  
 }  
  
 . s e c t i o n - s u b t i t l e   {  
         f o n t - s i z e :   1 . 1 2 5 r e m ;  
         c o l o r :   # 6 b 7 2 8 0 ;  
         m a r g i n - t o p :   0 . 5 r e m ;  
 }  
  
 . f e a t u r e - c a r d - m o d e r n   {  
         b a c k g r o u n d - c o l o r :   w h i t e ;  
         p a d d i n g :   2 r e m ;  
         b o r d e r - r a d i u s :   1 r e m ;  
         b o r d e r :   1 p x   s o l i d   # f 3 f 4 f 6 ;  
         t r a n s i t i o n :   a l l   0 . 3 s   e a s e ;  
         p o s i t i o n :   r e l a t i v e ;  
         o v e r f l o w :   h i d d e n ;  
         h e i g h t :   1 0 0 % ;  
 }  
  
 . f e a t u r e - c a r d - m o d e r n : h o v e r   {  
         t r a n s f o r m :   t r a n s l a t e Y ( - 5 p x ) ;  
         b o x - s h a d o w :   0   2 0 p x   2 5 p x   - 5 p x   r g b a ( 0 ,   0 ,   0 ,   0 . 1 ) ,   0   1 0 p x   1 0 p x   - 5 p x   r g b a ( 0 ,   0 ,   0 ,   0 . 0 4 ) ;  
         b o r d e r - c o l o r :   # F D E E F 2 ;  
 }  
  
 . s t e p - n u m b e r   {  
         p o s i t i o n :   a b s o l u t e ;  
         t o p :   1 r e m ;  
         r i g h t :   1 r e m ;  
         f o n t - s i z e :   3 r e m ;  
         f o n t - w e i g h t :   9 0 0 ;  
         c o l o r :   # f 3 f 4 f 6 ;  
         l i n e - h e i g h t :   1 ;  
         o p a c i t y :   0 . 5 ;  
 }  
  
 . f e a t u r e - c a r d - m o d e r n : h o v e r   . s t e p - n u m b e r   {  
         c o l o r :   # F D E E F 2 ;  
         o p a c i t y :   1 ;  
 }  
  
 . i c o n - w r a p p e r   {  
         w i d t h :   6 0 p x ;  
         h e i g h t :   6 0 p x ;  
         b a c k g r o u n d - c o l o r :   # F D E E F 2 ;  
         b o r d e r - r a d i u s :   5 0 % ;  
         d i s p l a y :   f l e x ;  
         a l i g n - i t e m s :   c e n t e r ;  
         j u s t i f y - c o n t e n t :   c e n t e r ;  
         m a r g i n - b o t t o m :   1 . 5 r e m ;  
         c o l o r :   # E 9 1 E 6 3 ;  
         f o n t - s i z e :   1 . 5 r e m ;  
 }  
  
 / *   C T A   S e c t i o n   * /  
 . c t a - s e c t i o n   {  
         b a c k g r o u n d - c o l o r :   # E 9 1 E 6 3 ;  
         p a d d i n g :   5 r e m   0 ;  
         c o l o r :   w h i t e ;  
         t e x t - a l i g n :   c e n t e r ;  
 }  
  
 . c t a - c o n t e n t   {  
         m a x - w i d t h :   4 8 r e m ;  
         m a r g i n :   0   a u t o ;  
 }  
  
 . c t a - t i t l e   {  
         f o n t - s i z e :   2 . 2 5 r e m ;  
         f o n t - w e i g h t :   8 0 0 ;  
         m a r g i n - b o t t o m :   1 r e m ;  
         c o l o r :   w h i t e ;  
 }  
  
 . c t a - d e s c r i p t i o n   {  
         f o n t - s i z e :   1 . 1 2 5 r e m ;  
         c o l o r :   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 9 ) ;  
         m a r g i n - b o t t o m :   2 . 5 r e m ;  
 }  
  
 . b u t t o n - w h i t e   {  
         b a c k g r o u n d - c o l o r :   w h i t e ;  
         c o l o r :   # E 9 1 E 6 3 ;  
         f o n t - w e i g h t :   7 0 0 ;  
         p a d d i n g :   1 r e m   2 . 5 r e m ;  
         b o r d e r - r a d i u s :   9 9 9 9 p x ;  
         d i s p l a y :   i n l i n e - b l o c k ;  
         t r a n s i t i o n :   a l l   0 . 2 s ;  
 }  
  
 . b u t t o n - w h i t e : h o v e r   {  
         b a c k g r o u n d - c o l o r :   # f 9 f a f b ;  
         t r a n s f o r m :   s c a l e ( 1 . 0 5 ) ;  
 }  
 