/* Modern Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #0f6b68;
    --primary-dark: #083f49;
    --primary-light: #58b7aa;
    --secondary-color: #f59e0b;
    --accent-color: #ef5b7d;
    --text-primary: #15212f;
    --text-secondary: #546173;
    --bg-primary: #ffffff;
    --bg-secondary: #f6faf9;
    --bg-tertiary: #edf5f2;
    --bg-beige-light: #fffaf1;
    --border-color: #d8e5e2;
    --success-color: #10845f;
    --error-color: #c2415d;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    padding: 20px;
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.18), transparent 30%),
        linear-gradient(135deg, #e8f6f3 0%, #f8fbff 48%, #fff4f6 100%);
    min-height: 100vh;
    line-height: 1.6;
    color: var(--text-primary);
    font-size: 16px;
}

/* Ensure consistent font throughout */
*, *::before, *::after {
    font-family: inherit;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    background: var(--bg-primary);
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

/* Header Styles */
.header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background:
        linear-gradient(135deg, rgba(8, 63, 73, 0.95) 0%, rgba(15, 107, 104, 0.95) 100%),
        url("assets/basket.gif") right 24px center / 92px auto no-repeat;
    padding: 40px clamp(24px, 6vw, 72px);
    margin-bottom: 0;
    box-shadow: var(--shadow-md);
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.logo {
    width: 50px;
    height: auto;
    filter: brightness(0) invert(1);
    flex-shrink: 0;
}

/* Final logo appears in same spot as GIF animation (beside title) */
.logo-final {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: none; /* Show clipboard in original colors; .logo invert would make it invisible */
}

.title-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex: 1;
    width: min(100%, 920px);
    margin: 0 auto;
    min-width: 0;
    padding-right: 110px;
}

/* Animation happens here: beside the title, not at far left */
.gif-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    min-width: 80px;
    flex-shrink: 0;
    margin-right: 8px;
    overflow: visible;
}

.bouncing-gif {
    width: 60px;
    height: 60px;
    object-fit: contain;
    position: absolute;
    opacity: 0;
    z-index: 1;
    --from-x: 0px;
    --from-y: 28px;
    --from-rotate: 0deg;
    animation: gifCarousel 1.5s ease-in-out forwards;
}

.bouncing-gif:nth-child(1) {
    --from-x: -90px;
    --from-y: -38px;
    --from-rotate: -14deg;
    animation-delay: 0s;
}

.bouncing-gif:nth-child(2) {
    --from-x: 82px;
    --from-y: -44px;
    --from-rotate: 12deg;
    animation-delay: 1.5s;
}

.bouncing-gif:nth-child(3) {
    --from-x: -78px;
    --from-y: 46px;
    --from-rotate: 10deg;
    animation-delay: 3s;
}

.bouncing-gif:nth-child(4) {
    --from-x: 88px;
    --from-y: 42px;
    --from-rotate: -10deg;
    animation-delay: 4.5s;
}

.bouncing-gif:nth-child(5) {
    --from-x: 0px;
    --from-y: -76px;
    --from-rotate: 16deg;
    animation-delay: 6s;
}

.bouncing-gif:nth-child(6) {
    --from-x: -98px;
    --from-y: 0px;
    --from-rotate: -8deg;
    animation-delay: 7.5s;
}

.final-gif {
    width: 80px;
    height: 80px;
    object-fit: contain;
    position: absolute;
    z-index: 10;
    opacity: 0;
}

.final-gif.is-visible {
    animation: fadeInScale 0.8s ease-out forwards;
}

@keyframes gifCarousel {
    0% {
        opacity: 0;
        transform: translate(var(--from-x), var(--from-y)) rotate(var(--from-rotate)) scale(0.72);
    }
    18%, 72% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-12px) scale(0.9);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.heading {
    margin: 0;
    color: #ffffff;
    font-weight: 600;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: 0;
    font-family: inherit;
    position: relative;
    z-index: 2;
    line-height: 1.1;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
}

.tagline {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.45;
    max-width: 620px;
}

.receipt-overview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.receipt-overview div {
    padding: 18px 22px;
    background: var(--bg-primary);
}

.receipt-overview span {
    display: block;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.receipt-overview strong {
    display: block;
    margin-top: 4px;
    color: var(--text-primary);
    font-size: 1.35rem;
}

/* Responsive Grid Layout */
.sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 22px;
    margin: 22px;
}

.section-card {
    margin-bottom: 0;
    padding: 22px;
    border-radius: 8px;
    background-color: var(--bg-primary);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.section-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.section-card h3 {
    margin-top: 0;
    margin-bottom: 16px;
    color: var(--text-primary);
    font-size: 1.4rem;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    font-family: inherit;
}

.full-width {
    width: auto;
    grid-column: 1 / -1;
    margin: 0 22px 22px 22px;
}

/* Standardized Form Styles */
.placeShoppedDetails {
    margin-bottom: 20px;
    padding: 14px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border-radius: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    border: 1px solid var(--border-color);
}

.placeShoppedDetails label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    margin: 0;
}

/* Standardized Input Styles - All inputs look the same */
.placeShoppedDetails input[type="text"],
.placeShoppedDetails input[type="date"],
.mdl-textfield__input,
.expense-options select,
.edit-modal-field select {
    padding: 11px 14px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: var(--bg-primary);
    font-family: inherit;
    color: var(--text-primary);
    width: 100%;
    box-sizing: border-box;
}

.placeShoppedDetails input[type="text"],
.placeShoppedDetails input[type="date"] {
    flex: 1;
    min-width: 150px;
}

.placeShoppedDetails input[type="text"]:focus,
.placeShoppedDetails input[type="date"]:focus,
.mdl-textfield__input:focus,
.expense-options select:focus,
.edit-modal-field select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(15, 107, 104, 0.12);
}

.participant-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    min-height: 32px;
}

.participant-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #e8f6f3;
    color: var(--primary-dark);
    border: 1px solid #bfe1db;
    font-size: 13px;
    font-weight: 700;
}

.expense-options {
    display: grid;
    gap: 7px;
    margin-bottom: 14px;
}

.expense-options label {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 700;
}

.placeShoppedDetails input[type="text"]::placeholder,
.placeShoppedDetails input[type="date"]::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.entry {
    margin-bottom: 16px;
}

.mdl-textfield {
    width: 100%;
    margin-bottom: 14px;
    position: relative;
    display: flex;
    flex-direction: column-reverse;
    gap: 7px;
}

/* Override Material Design textfield styles for uniformity */
.mdl-textfield__input {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    font-size: 15px;
    height: auto;
    margin: 0;
    border-bottom: 2px solid var(--border-color);
}

.mdl-textfield__input:focus {
    border-color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    box-shadow: 0 0 0 3px rgba(15, 107, 104, 0.12);
}

/* Standardized Label Styles */
.mdl-textfield__label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
    font-family: inherit;
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    transition: color 0.2s ease;
    background: transparent;
    padding: 0;
}

.mdl-textfield--floating-label .mdl-textfield__label {
    top: auto;
}

.mdl-textfield__input:focus + .mdl-textfield__label,
.mdl-textfield--floating-label.is-focused .mdl-textfield__label,
.mdl-textfield--floating-label.is-dirty .mdl-textfield__label {
    color: var(--primary-color);
    font-weight: 600;
    top: auto;
    font-size: 13px;
    background: transparent;
}

.mdl-textfield__input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
    font-family: inherit;
}

/* Button Styles */
.mdl-button {
    margin-top: 10px;
    margin-left: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
    color: #ffffff !important;
    padding: 11px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    font-size: 14px;
    letter-spacing: 0.3px;
    border: none;
    font-family: inherit;
}

.mdl-button:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.mdl-button:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

/* Checkbox Container */
.checkbox-container {
    margin-top: 24px;
    display: flex !important;
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 12px;
    min-height: 60px;
    visibility: visible;
    opacity: 1;
    border: 1px solid var(--border-color);
}

.checkbox-circle {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.checkbox-circle-input {
    display: none;
}

.checkbox-circle-label {
    padding: 12px 24px;
    background-color: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    min-width: 70px;
    text-align: center;
    font-family: inherit;
}

.checkbox-circle-label:hover {
    background-color: var(--bg-tertiary);
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.checkbox-circle-input:checked + .checkbox-circle-label {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    border-color: var(--primary-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Table Styles */
.mdl-data-table {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    font-family: inherit;
}

.mdl-data-table thead {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #ffffff;
}

.mdl-data-table th {
    color: #ffffff !important;
    font-weight: 600;
    padding: 18px;
    text-align: left;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: inherit;
}

.mdl-data-table td {
    padding: 18px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
}

.mdl-data-table tbody tr {
    transition: background-color 0.2s ease;
}

.mdl-data-table tbody tr:hover {
    background-color: var(--bg-secondary);
}

.mdl-data-table tbody tr:last-child td {
    border-bottom: none;
}

.mdl-data-table button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
    color: var(--primary-color);
}

.mdl-data-table button:hover {
    background-color: var(--bg-tertiary);
    transform: scale(1.1);
}

.mdl-data-table button i {
    font-size: 20px;
}

/* Results Section */
#results {
    margin-top: 24px;
    font-family: inherit;
}

#results h2 {
    color: var(--text-primary);
    margin-bottom: 24px;
    font-size: 1.75rem;
    font-weight: 600;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary-color);
    font-family: inherit;
}

#results > div {
    padding: 18px 24px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    border-left: 4px solid var(--primary-color);
    transition: all 0.2s ease;
    font-family: inherit;
}

#results > div:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

#results > div:last-child {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    border-left: none;
    margin-top: 20px;
    box-shadow: var(--shadow-md);
}

#results > div:last-child:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

#results .result-row,
.settlements .settlement-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

#results .result-row span:last-child {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    text-align: right;
}

.settlements {
    margin-top: 20px;
}

.settlements h2 {
    color: var(--text-primary);
    margin-bottom: 16px;
    font-size: 1.35rem;
    font-weight: 700;
}

.settlements .settlement-row {
    padding: 16px 20px;
    margin-bottom: 10px;
    background: #fff7e6;
    border: 1px solid #ffd99a;
    border-left: 4px solid var(--secondary-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-weight: 700;
}

.settlements .settlement-row strong {
    color: var(--primary-dark);
    font-size: 1.05rem;
}

/* Download Buttons */
.download-btn {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
    width: 100%;
}

.download-btn .mdl-button {
    margin-top: 0;
    margin-left: 0;
    min-width: 140px;
}

.download-btn .mdl-button:last-child {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-dark) 100%) !important;
}

.download-btn .mdl-button:last-child:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-color) 100%) !important;
}

.download-btn .danger-button {
    background: linear-gradient(135deg, #c2415d 0%, #8f2f46 100%) !important;
}

.download-btn .danger-button:hover {
    background: linear-gradient(135deg, #8f2f46 0%, #c2415d 100%) !important;
}

/* Edit Modal */
.edit-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(28, 25, 20, 0.45);
    z-index: 1000;
}

.edit-modal.is-open {
    display: flex;
}

.edit-modal-card {
    width: 100%;
    max-width: 460px;
    background: var(--bg-primary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-xl);
    padding: 20px;
}

.edit-modal-card h3 {
    margin: 0 0 14px;
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
}

.edit-modal-field {
    margin-bottom: 12px;
}

.edit-modal-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.edit-modal-field .checkbox-container {
    margin-top: 0;
    padding: 12px;
    min-height: 0;
}

.edit-modal-field input,
.edit-modal-field select {
    width: 100%;
    padding: 11px 14px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-primary);
}

.edit-modal-field input:focus,
.edit-modal-field select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(15, 107, 104, 0.12);
}

.edit-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
}

.edit-modal-actions #edit-cancel {
    background: var(--bg-tertiary) !important;
    color: var(--text-primary) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        border-radius: 16px;
    }

    .header {
        flex-direction: column;
        padding: 30px 20px;
        overflow: visible;
        justify-content: center;
        background:
            linear-gradient(135deg, rgba(8, 63, 73, 0.95) 0%, rgba(15, 107, 104, 0.95) 100%);
    }
    
    .title-container {
        width: 100%;
        padding-right: 0;
        gap: 16px;
    }
    
    .logo {
        align-self: flex-start;
        margin-bottom: 15px;
    }
    
    .gif-container {
        width: 70px;
        min-width: 70px;
        height: 70px;
    }
    
    .bouncing-gif {
        width: 50px;
        height: 50px;
    }
    
    .final-gif {
        width: 70px;
        height: 70px;
    }

    .heading {
        font-size: 1.75rem;
    }

    .brand-copy {
        align-items: flex-start;
        flex: 1;
    }

    .tagline {
        margin: 4px 0 0;
        text-align: left;
        font-size: 14px;
    }

    .receipt-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sections-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 20px;
    }

    .full-width {
        margin: 0 20px 20px 20px;
    }

    .section-card {
        padding: 24px;
    }

    .placeShoppedDetails {
        flex-direction: column;
        align-items: stretch;
    }

    .placeShoppedDetails input[type="text"],
    .placeShoppedDetails input[type="date"] {
        width: 100%;
    }

    .checkbox-container {
        justify-content: center;
    }

    .download-btn {
        flex-direction: column;
        align-items: stretch;
    }

    .download-btn .mdl-button {
        width: 100%;
    }

    .edit-modal-actions {
        flex-direction: column-reverse;
    }

    .edit-modal-actions .mdl-button {
        width: 100%;
    }

    #results .result-row,
    .settlements .settlement-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    #results .result-row span:last-child {
        text-align: left;
    }

    .mdl-data-table {
        font-size: 14px;
    }

    .mdl-data-table th,
    .mdl-data-table td {
        padding: 12px 10px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 26px 16px;
    }

    .title-container {
        flex-direction: column;
        text-align: center;
    }

    .brand-copy {
        align-items: center;
    }

    .heading {
        font-size: 1.5rem;
    }

    .tagline {
        text-align: center;
        max-width: 280px;
    }

    .section-card {
        padding: 20px;
    }

    .section-card h3 {
        font-size: 1.25rem;
    }

    .receipt-overview {
        grid-template-columns: 1fr;
    }

    .mdl-data-table {
        font-size: 12px;
    }

    .mdl-data-table th,
    .mdl-data-table td {
        padding: 10px 8px;
    }
}

/* Empty State */
#entries:empty::before {
    content: "No entries yet. Add your first expense above!";
    display: block;
    text-align: center;
    color: var(--text-secondary);
    padding: 44px 18px;
    font-style: italic;
    font-size: 16px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 2px dashed var(--border-color);
    font-family: inherit;
}

#results:empty::before {
    content: "Click 'Calculate Total' to see the split amounts.";
    display: block;
    text-align: center;
    color: var(--text-secondary);
    padding: 44px 18px;
    font-style: italic;
    font-size: 16px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 2px dashed var(--border-color);
    font-family: inherit;
}

/* Smooth Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-card {
    animation: fadeIn 0.4s ease-out;
}

/* Focus States for Accessibility */
.mdl-button:focus,
.mdl-textfield__input:focus,
.checkbox-circle-label:focus,
.placeShoppedDetails input:focus {
    outline: 3px solid rgba(15, 107, 104, 0.28);
    outline-offset: 2px;
}

/* Additional Polish */
.mdl-card {
    border-radius: 8px;
    overflow: hidden;
}

/* Better visual hierarchy */
.section-card h3::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 24px;
    background: var(--primary-color);
    margin-right: 12px;
    vertical-align: middle;
    border-radius: 2px;
}

/* Ensure Material Design textfield doesn't override our styles */
.mdl-textfield--floating-label .mdl-textfield__input {
    border-bottom: 2px solid var(--border-color);
}

.mdl-textfield--floating-label.is-focused .mdl-textfield__input,
.mdl-textfield--floating-label.is-dirty .mdl-textfield__input {
    border-bottom: 2px solid var(--primary-color);
}

/* Remove Material Design's default underline animation */
.mdl-textfield__input:not(:focus) {
    border-bottom: 2px solid var(--border-color);
}
.image-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.image-preview-container img {
    width: 120px;
    height: auto;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 3px;
}
