.input-group {
    margin-bottom: 10px;
}
.input-group label {
    display: block;
    font-weight: 400;
    margin-bottom: 6px;
    font-size: 0.85em;
    color: #2d3748;
}
.input-group input[type="text"],
.input-group input[type="url"],
.input-group textarea,
.input-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 0.9em;
    background-color: #f8fafc;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.input-group input[type="text"]:focus,
.input-group input[type="url"]:focus,
.input-group textarea:focus,
.input-group select:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
}
.input-group textarea {
    min-height: 50px;
    resize: vertical;
}
.input-group input[type="file"] {
    font-size: 0.9em;
    background-color: #f8fafc;
    padding: 10px;
    border-radius: 8px;
    border: 1px dashed #cbd5e0;
    width: 100%;
    box-sizing: border-box;
}
.input-group .description {
    font-size: 0.75em;
    color: #718096;
    margin-top: 4px;
    line-height: 1.3;
}

.image-preview-container {
    display: none;
    flex: 1;
    min-height: 70px;
    /* border: 1px dashed #e2e8f0; */
    border-radius: 8px;
    padding: 2px;
    background-color: #f8fafc;
    transition: all 0.2s ease;
}

.image-preview-container.has-images {
    display: flex;
    flex-direction: column;
    border-color: #cbd5e0;
    background-color: #ffffff;
}

.image-preview-container:not(.has-images)::before {
    content: "Images will appear here";
    color: #c4d3e6;
    font-size: 0.575rem;
    font-style: italic;
    text-align: center;
}

.image-upload-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-top: 8px;
}

.image-upload-button-area {
    flex: 0 0 auto;
    min-width: 140px;
}

.image-upload-button-area .description {
    margin-top: 8px;
    font-size: 0.75em;
    color: #718096;
    line-height: 1.3;
}

.image-preview {
    max-width: 100%;
    max-height: 150px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.style-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 5px;
}
.style-option {
    position: relative;
    border: 1px solid #e2e8f0;
    padding: 0px;
    text-align: center;
    cursor: pointer;
    font-size: 0.7em;
    transition: all 0.2s ease;
    background-color: #f8fafc;
    border-radius: 4px;
}
.style-option .style-img {

}

.style-option .style-img img{
    width: 100%;
    height: 70px;
    object-fit: contain;
    margin-bottom: 4px;
    background-color: #fff;
    border-radius: 3px;
}
.style-option.selected {
    border-color: #3313ec;
    background-color: #ff8407;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 0 0 2px rgba(66, 153, 225, 0.2);
}
.style-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Favorite Star Button */
.style-favorite-star {
    position: absolute;
    bottom: 0px;
    right: -3px;
    background: transparent;
    border: none;
    color:#555;
    font-size: 13px;
    cursor: pointer;
    opacity: 0.3;
    transition: all 0.2s ease;
    z-index: 10;
    padding: 2px 4px;
    line-height: 1;
}

.style-favorite-star:hover {
    opacity: 0.7;
    transform: scale(1.15);
}

.style-favorite-star.favorited {
    opacity: 1;
    font-size: 14px;
}

.style-favorite-star.favorited .star-icon {
    color: #fbbf24;
}

.generate-button {
    background-color: #4299e1;
    color: white;
    border: none;
    padding: 14px 18px;
    border-radius: 6px;
    font-size: 1.05em;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(66, 153, 225, 0.2);
    margin-top: 8px;
}
.generate-button:hover {
    background-color: #3182ce;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(66, 153, 225, 0.25);
}
.generate-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(66, 153, 225, 0.2);
}

/* Tips Section Styles */
.tips-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-top: 16px;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.tips-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(66, 153, 225, 0.1);
    border-bottom: 1px solid #e2e8f0;
    border-radius: 8px 8px 0 0;
}

.tips-icon {
    font-size: 1.2em;
    margin-right: 8px;
}

.tips-title {
    font-weight: 600;
    color: #2d3748;
    font-size: 0.9em;
    flex: 1;
}

.tips-dismiss {
    background: none;
    border: none;
    cursor: pointer;
    color: #718096;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tips-dismiss:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: #4a5568;
}

.tips-content {
    padding: 16px;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
}

.tip-item:last-child {
    margin-bottom: 0;
}

.tip-number {
    background-color: #4299e1;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75em;
    font-weight: 600;
    margin-right: 12px;
    margin-top: 2px;
    flex-shrink: 0;
}

.tip-text {
    font-size: 0.85em;
    line-height: 1.5;
    color: #4a5568;
}

.tip-text strong {
    color: #2d3748;
    font-weight: 600;
}

/* Animation for showing/hiding tips */
.tips-section.show {
    animation: slideDown 0.3s ease-out;
}

.tips-section.hide {
    animation: slideUp 0.3s ease-in;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 200px;
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0);
        max-height: 200px;
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }
}

.thumbnail-container {
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.loading-state {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    color: #718096;
    position: relative;
}
.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4299e1;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
    z-index: 10;
    position: relative;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-preview-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.loading-preview-image {
    max-width: 400px;
    max-height: 250px;
    border-radius: 12px;
    filter: blur(50px) brightness(0.3);
    opacity: 0;
    transition: all 3s ease-in-out;
    object-fit: cover;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .loading-preview-image {
        max-width: 300px;
        max-height: 180px;
    }
}

@media (max-width: 480px) {
    .loading-preview-image {
        max-width: 250px;
        max-height: 150px;
    }
}

.loading-preview-image.revealing {
    filter: blur(5px) brightness(0.9);
    opacity: 0.8;
}

.loading-preview-image.revealed {
    filter: blur(0px) brightness(1);
    opacity: 1;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(248, 250, 252, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: opacity 1s ease-in-out;
}

.loading-overlay.fading {
    opacity: 0.7;
}

.results-grid {
    display: none;
    gap: 20px;
}

.inline-loading-notification {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 20px;
    animation: fadeInDown 0.3s ease-out;
}

.inline-loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4299e1;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    flex-shrink: 0;
}

.inline-loading-text h4 {
    margin: 0 0 2px 0;
    font-size: 0.9em;
    color: #334155;
    font-weight: 600;
}

.inline-loading-text p {
    margin: 0;
    font-size: 0.85em;
    color: #64748b;
    transition: opacity 0.2s ease-in-out;
}

.thumbnail-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(520px, 1fr));
    gap: 20px;
}

.thumbnail-card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.thumbnail-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

@keyframes shimmer-bg {
    0% {
        background-position: -800px 0;
    }
    100% {
        background-position: 800px 0;
    }
}

.thumbnail-card.is-loading {
    pointer-events: none;
}

.thumbnail-card.is-loading .thumbnail-image {
    background: linear-gradient(to right, #e2e8f0 8%, #f1f5f9 20%, #e2e8f0 33%);
    background-size: 800px 104px;
    animation: shimmer-bg 1.5s linear infinite;
}

.thumbnail-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0aec0;
    font-size: 0.9em;
    position: relative;
}
.thumbnail-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.thumbnail-actions {
    padding: 12px;
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    background-color: #f8fafc;
    align-items: center;
}
.thumbnail-actions button {
    background: #fff;
    border: none;
    cursor: pointer;
    font-size: 0.85em;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.2s;
}
.thumbnail-actions button span {
    vertical-align: sub !important;
}
.thumbnail-actions button:hover {
    background-color: #edf2f7;
}
.thumbnail-actions button.select { color: #38a169; }
.thumbnail-actions button.edit { color: #4299e1; }
.thumbnail-actions a.download { color: #718096; }
.thumbnail-actions button.fit-text { color: #8b5cf6; }

.generation-style-info {
    font-size: 0.8em;
    color: #64748b;
    margin-left: auto;
    padding-left: 12px;
    white-space: nowrap;
}

.generation-style-info strong {
    font-weight: 600;
    color: #334155;
}

.performance-score {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 0.75em;
    padding: 5px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.editor-view {
    display: none;
    gap: 30px;
    padding: 20px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}
.editor-canvas {
    flex-grow: 1;
    background-color: #e2e8f0;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0aec0;
    font-size: 1.2em;
    border-radius: 8px;
    overflow: hidden;
}
.editor-canvas img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.editor-controls {
    width: 250px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.editor-controls h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1em;
    color: #2d3748;
}
.editor-controls button {
    display: block;
    width: 100%;
    padding: 10px 14px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-align: left;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.2s ease;
}
.editor-controls button:hover {
    background-color: #edf2f7;
    transform: translateY(-1px);
}
.editor-controls .control-group label {
    display: block;
    font-size: 0.85em;
    margin-bottom: 5px;
    color: #4a5568;
}
.editor-controls .control-group input[type="text"],
.editor-controls .control-group input[type="color"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-sizing: border-box;
    margin-bottom: 10px;
    background-color: #f8fafc;
}
.editor-actions {
    margin-top: auto;
    display: flex;
    gap: 10px;
}
.editor-actions button {
    flex-grow: 1;
    text-align: center;
    font-weight: 600;
}
.editor-actions button.save {
    background-color: #48bb78;
    color: white;
    border: none;
}
.editor-actions button.save:hover {
    background-color: #38a169;
}
.editor-actions button.cancel {
    background-color: #f56565;
    color: white;
    border: none;
}
.editor-actions button.cancel:hover {
    background-color: #e53e3e;
}

.sidebar-container {
    background-color: #ffffff;
    padding: 20px;
    border-right: 1px solid #f1f5f9;
    /* overflow-y: auto; */
    box-shadow: 2px 0 10px rgba(0,0,0,0.03);
}
.content-container {
    flex-grow: 1;
    padding: 0 30px;
    overflow-y: auto;
    background-color: #f8fafc;
}

.custom-container {
    display: flex;
    flex-grow: 1;
    min-height: 100vh;
}

/* Media query for mobile responsiveness */
@media (max-width: 768px) {
    .custom-container {
        flex-direction: column;
    }
    
    .sidebar-container {
        width: 100%;
        padding: 16px;
        max-height: none;
        overflow: visible;
        border-right: none;
        border-bottom: 1px solid #f1f5f9;
        order: 2; /* Default to second on mobile */
    }
    
    .content-container {
        order: 1; /* Default to first on mobile */
        padding: 20px;
    }

    /* When on create page, reverse the order */
    .create-page .sidebar-container {
        order: 1;
    }
    
    .create-page .content-container {
        order: 2;
    }

    .thumbnail-cards-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .thumbnail-card {
        max-width: 100%;
    }

    .thumbnail-image {
        width: 100%;
    }

    .thumbnail-image img {
        width: 100%;
        height: auto;
    }
}

/* Extra small screens (phones) */
@media (max-width: 480px) {
    .content-container {
        padding: 12px;
    }

    .results-grid {
        gap: 12px;
    }

    .thumbnail-actions {
        flex-wrap: wrap;
        gap: 8px;
    }
}

.form-section {

}

.form-section-title {
    font-size: 0.7em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #4299e1;
    color: white;
    font-weight: 600;
    font-size: 0.75em;
    margin-right: 8px;
    flex-shrink: 0;
}

.generation-controls-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: normal;
}

@media (max-width: 600px) {
    .generation-controls-grid {
        grid-template-columns: 1fr;
    }
}

.variations-control {
    display: flex;
    align-items: center;
      border-radius: 6px;
    background-color: #f8fafc;
    padding: 1px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.variations-control button {
    background-color: #e2e8f0;
    color: #4a5568;
    border: none;
    width: 32px;
    height: 32px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.variations-control button:hover {
    background-color: #cbd5e0;
}

.variations-control input[type="number"] {
    width: 50px;
    text-align: center;
    border: none;
    background-color: transparent;
    font-size: 0.9em;
    padding: 10px 0px;
    box-shadow: none;
    -moz-appearance: textfield;
}

.variations-control input[type="number"]::-webkit-outer-spin-button,
.variations-control input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.aspect-ratio-select-wrapper {
    position: relative;
}

.aspect-ratio-select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 30px;
}

.aspect-ratio-select-wrapper::after {
    content: '▼';
    font-size: 0.8em;
    color: #718096;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.input-group .description.small-text {
    font-size: 0.75em;
    margin-top: 3px;
}

/* Marketing Section Styles */
.marketing-section {
    padding: 40px 20px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.marketing-title {
    font-size: 3.8rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 16px;
    background: linear-gradient(90deg, #111, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.marketing-subtitle {
    font-size: 1.4rem;
    color: #64748b;
    margin-bottom: 48px;
    font-weight: 400;
}

.social-proof-section {
    text-align: center;
    margin-bottom: 48px;
    padding: 20px 0;
    background-color: #f8fafc;
    border-radius: 12px;
}

.social-proof-banner {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 24px;
}

.social-proof-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.social-proof-logos img {
    height: 40px;
    max-width: 120px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.social-proof-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Add individual hover effect for each logo */
.social-proof-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.marketing-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.feature-card {
    background-color: white;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1e293b;
}

.feature-card p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
}

.cta-container {
    margin-bottom: 48px;
}

.get-started-btn {
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.get-started-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3);
}

.guarantee {
    margin-top: 16px;
    font-size: 0.9rem;
    color: #64748b;
}

.marketing-gallery {
    
    column-gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.slideshow-container {
    height: 262px;
    overflow: hidden;
    position: relative;
    margin-bottom: 48px;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.slideshow-container::before,
.slideshow-container::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 50px;
    z-index: 1;
    pointer-events: none;
}

.slideshow-container::before {
    top: 0;
}

.slideshow-container::after {
    bottom: 0;
    background: linear-gradient(to top, rgba(248, 250, 252, 1) 0%, rgba(248, 250, 252, 0) 100%);
}

.scrolling-showcase-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    min-height: 400px;
    object-fit: cover;
    object-position: top;
    animation: scrollShowcase 30s linear infinite;
    margin: 0 auto;
    display: block;
}
.showcase{
    width: 100%;
    height: auto;
    min-height: 400px;
    object-fit: cover;
    object-position: top;
}

@keyframes scrollShowcase {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

.sample-thumbnail {
    break-inside: avoid;
    margin-bottom: 16px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
}

.sample-thumbnail:hover {
    transform: translateY(-4px);
}

.sample-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Back to home button */
.back-to-home {
    grid-column: 1 / -1;
    margin-bottom: 20px;
}

.back-home-btn {
    background-color: transparent;
    color: #64748b;
    border: 1px solid #e2e8f0;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.back-home-btn:hover {
    background-color: #f1f5f9;
    color: #334155;
}

@media (max-width: 768px) {
    .marketing-title {
        font-size: 2rem;
    }
    
    .marketing-subtitle {
        font-size: 1.1rem;
    }
    
    .marketing-features {
        grid-template-columns: 1fr;
    }

    .marketing-gallery {
       
    }
    
    .slideshow-container {
        height: 200px;
        margin-bottom: 32px;
    }
    
    .scrolling-showcase-image {
        min-height: 300px;
    }

    .lite-plan-section .lite-plan-content {
        flex-direction: column !important;
        gap: 8px !important;
        
    }

    .lite-plan-section .lite-plan-content span {
        font-size: 0.85rem !important;
    }

    .thumbnail-actions {
        flex-wrap: wrap;
        gap: 4px;
    }

    .thumbnail-actions button {
        font-size: 0.75em;
        padding: 6px 8px;
        flex: 1;
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .marketing-gallery {
       
    }
    
    .slideshow-container {
        height: 150px;
        margin-bottom: 24px;
    }
    
    .scrolling-showcase-image {
        min-height: 200px;
    }
}

/* Authentication and Pricing Modal Styles */
.auth-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    /* backdrop-filter: blur(5px); */
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.auth-modal {
    background: white;
    border-radius: 16px;
    padding: 32px;
    width: 90%;
    max-width: 700px;
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
}

.pricing-modal {
    background: white;
    border-radius: 16px;
    padding: 32px;
    width: 90%;
    max-width: 700px;
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #64748b;
    padding: 4px;
    line-height: 1;
}

.auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-header h2 {
    font-size: 1.8rem;
    color: #1e293b;
    margin-bottom: 8px;
    font-weight: 700;
}

.auth-header p {
    color: #64748b;
    font-size: 1.1rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
}

.auth-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

.auth-button {
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.auth-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.auth-separator {
    display: flex;
    align-items: center;
    text-align: center;
    color: #64748b;
    margin: 20px 0;
}

.auth-separator::before,
.auth-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.auth-separator span {
    padding: 0 10px;
}

.social-auth {
    display: grid;
    gap: 12px;
}

.social-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.social-button:hover {
    background: #f8fafc;
    transform: translateY(-1px);
}

.social-button img {
    width: 20px;
    height: 20px;
}

/* Pricing Section Styles */
.pricing-header {
    text-align: center;
    margin-bottom: 24px;
}

.pricing-header h2 {
    font-size: 1.6rem;
    color: #1e293b;
    margin-bottom: 8px;
}

.pricing-header p {
    color: #64748b;
    font-size: 1rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.pricing-plan {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s;
}

.pricing-plan.popular {
    border: 2px solid #3b82f6;
    transform: scale(1.02);
}

.pricing-plan:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.plan-header {
    text-align: center;
    margin-bottom: 16px;
}

.plan-name {
    font-size: 1.1rem;
    color: #1e293b;
    font-weight: 600;
    margin-bottom: 6px;
}

.plan-price {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.plan-billing {
    color: #64748b;
    font-size: 0.85rem;
}

.plan-features {
    margin: 16px 0;
}

.plan-feature {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    color: #475569;
    font-size: 0.9rem;
}

.plan-feature svg {
    color: #22c55e;
    flex-shrink: 0;
}

.plan-cta {
    display: block;
    width: 100%;
    padding: 12px;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
}

.plan-cta.primary {
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    color: white;
    border: none;
}

.plan-cta.secondary {
    background: white;
    color: #3b82f6;
    border: 2px solid #3b82f6;
}

.plan-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

@media (max-width: 768px) {
    .auth-modal,
    .pricing-modal {
        width: 95%;
        padding: 24px;
    }

    .social-auth {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-plan.popular {
        transform: none;
    }
}

/* FAQ Section Styles */
.faq-section {
    margin-top: 60px;
    padding: 30px 0;
    border-top: 1px solid #f1f5f9;
}

.faq-section h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    margin-bottom: 40px;
}

.faq-item {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    overflow: hidden;
}

.faq-question {
    padding: 18px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}

.faq-question:hover {
    background-color: #f8fafc;
}

.faq-question::after {
    content: '+';
    font-size: 1.6rem;
    font-weight: 300;
    color: #4299e1;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 24px;
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.7;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    padding: 10px 24px 20px;
    max-height: 500px;
}

.pricing-guarantees {
    background-color: #f8fafc;
    border-radius: 8px;
    padding: 16px;
    margin-top: 20px;
    text-align: left;
}

.guarantee-item {
    display: flex;
    align-items: center;
    color: #334155;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.guarantee-item:last-child {
    margin-bottom: 0;
}

.guarantee-item svg {
    width: 16px;
    height: 16px;
    color: #22c55e;
    margin-right: 8px;
    flex-shrink: 0;
}

.image-previews {
    display: flex;
    flex-wrap: wrap;
    /* gap: 8px; */
    align-items: flex-start;
}

.image-preview-item {
    position: relative;
    width: 80px;
    height: 45px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 11px;
    padding: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.image-preview-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 11px;
    transition: background-color 0.2s;
    opacity: 0.8;
}

.image-preview-remove:hover {
    background: rgba(0, 0, 0, 0.9);
    opacity: 1;
}

.image-preview-crop {
    position: absolute;
    top: 2px;
    left: 2px;
    background: rgba(34, 197, 94, 0.8);
    color: white;
    border: none;
    border-radius: 3px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 9px;
    transition: all 0.2s;
    opacity: 0;
}

.image-preview-item:hover .image-preview-crop {
    opacity: 1;
}

.image-preview-crop:hover {
    background: rgba(34, 197, 94, 1);
    transform: scale(1.1);
}

/* Mobile adjustments for image previews */
@media (max-width: 600px) {
    .image-preview-item {
        width: 70px;
        height: 39px;
    }
    
    .image-preview-remove,
    .image-preview-crop {
        width: 16px;
        height: 16px;
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .image-previews {
        gap: 6px;
    }
    
    .image-preview-item {
        width: 60px;
        height: 34px;
    }
    
    .image-preview-remove,
    .image-preview-crop {
        width: 14px;
        height: 14px;
        font-size: 9px;
    }
}

/* Advanced Settings Styles */
.advanced-settings {
    margin-top: 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.advanced-settings-toggle {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 10px;
    font-weight: 500;
    color: #4a5568;
    transition: all 0.2s ease;
}

.advanced-settings-toggle:hover {
    background-color: #edf2f7;
    color: #2d3748;
}

.advanced-settings-toggle::after {
    content: '▼';
    font-size: 0.8rem;
    color: #718096;
    transition: transform 0.3s ease;
}

.advanced-settings.collapsed .advanced-settings-toggle::after {
    transform: rotate(-90deg);
}

.advanced-settings-content {
    padding: 0 2px;
    transition: all 0.3s ease;
}

.advanced-settings.collapsed .advanced-settings-content {
    max-height: 0;
    padding: 0 16px;
}

.advanced-settings-content .input-group {
    margin-bottom: 12px;
    padding-bottom: 12px;
}

.advanced-settings-content .input-group:last-child {
    margin-bottom: 0;
    padding-bottom: 12px;
}

/* Highlight effect for form elements */
.form-element-highlight {
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.3) !important;
    border-color: #4299e1 !important;
    transition: all 0.3s ease !important;
}

.form-section-highlight {
    background-color: rgba(66, 153, 225, 0.05) !important;
    border-radius: 8px !important;
    padding: 16px !important;
    margin: -8px !important;
    transition: all 0.3s ease !important;
}

/* Style Tooltip Styling */
.style-tooltip {
    background-color: #fffcef;
    border: 1px solid #fad8b6;
    padding: 6px 8px;
    margin: 6px 0 12px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-radius: 4px;
    width: 100%;
   
}

.style-tooltip .tooltip-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.style-tooltip #tooltip-title {
    color: #2d3748;
    font-size: 0.7em;
    font-weight: 600;
    margin: 0;
}

.style-tooltip #tooltip-description {
    color: #4a5568;
    font-size: 0.6em;
    line-height: 1.3;
    margin: 0;
}

.style-tooltip.highlight {
    background-color: #ebf8ff;
    border-color: #4299e1;
    box-shadow: 0 0 0 2px rgba(66, 153, 225, 0.2);
}

/* Uploads Modal Styles */
.uploads-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    /* backdrop-filter: blur(5px); */
    z-index: 1000;
}

.uploads-modal-overlay.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.uploads-modal {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    margin: auto;
}

.uploads-modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.uploads-modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.uploads-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #64748b;
    padding: 4px;
    line-height: 1;
    border-radius: 4px;
    transition: all 0.2s;
}

.uploads-modal-close:hover {
    background-color: #f1f5f9;
    color: #334155;
}

.uploads-modal-content {
    padding: 16px 24px;
    overflow-y: auto;
    flex: 1;
    min-height: 300px;
}

.uploads-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #64748b;
}

.uploads-loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4299e1;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

.uploads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.upload-item {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    position: relative;
}

.upload-item:hover {
    border-color: #4299e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.upload-item.selected {
    border-color: #4299e1;
    box-shadow: 0 0 0 2px rgba(66, 153, 225, 0.2);
}

.upload-item-image {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #f8fafc;
}

.upload-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
}

.upload-item:hover .upload-item-image img {
    transform: scale(1.05);
}

.upload-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    font-size: 0.75rem;
    color: #64748b;
}

.upload-item-meta .upload-item-filename {
    color: #1e293b;
    font-weight: 500;
}

.upload-item-meta .upload-item-time {
    color: #94a3b8;
}

.upload-item-selected-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #4299e1;
    color: white;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.upload-item.selected .upload-item-selected-indicator {
    display: flex;
}

.uploads-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
}

.uploads-empty-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.uploads-empty-state h3 {
    font-size: 1.25rem;
    color: #334155;
    margin-bottom: 8px;
}

.uploads-empty-state p {
    font-size: 0.95rem;
    line-height: 1.5;
}

.uploads-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    background: #f8fafc;
}

.uploads-modal-footer .footer-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.clear-selection-btn {
    background: none;
    border: none;
    color: #64748b;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
}

.clear-selection-btn:hover {
    color: #dc2626;
    background: #fef2f2;
}

.selected-count {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

.modal-actions {
    display: flex;
    gap: 12px;
}

.modal-btn {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.modal-btn-secondary {
    background: white;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.modal-btn-secondary:hover {
    background: #f8fafc;
    color: #334155;
}

.modal-btn-primary {
    background: #4299e1;
    color: white;
}

.modal-btn-primary:hover {
    background: #3182ce;
}

.modal-btn-primary:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
}

/* Mobile adjustments for compact design */
@media (max-width: 768px) {
    .uploads-modal {
        width: 95%;
        max-height: 90vh;
    }
    
    .uploads-modal-header {
        padding: 20px 16px 12px;
    }
    
    .uploads-modal-content {
        padding: 12px 16px;
    }
    
    .uploads-modal-footer {
        padding: 12px 16px;
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .modal-actions {
        order: 2;
    }
    
    .selected-count {
        order: 1;
        text-align: center;
    }
    
    .uploads-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }
}

/* Prompt Suggestions Styles */
#prompt-suggestions-container {
    animation: fadeInDown 0.2s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.suggestion-item {
    position: relative;
}

.suggestion-item::before {
    /* content: "💡";
    position: absolute;
    left: -2px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7em;
    opacity: 0;
    transition: opacity 0.2s ease; */
}

.suggestion-item:hover::before {
    opacity: 1;
}

.suggestion-item:hover {
   
}

.suggestions-loading {
    animation: pulse 1.5s ease-in-out infinite alternate;
}

@keyframes pulse {
    from {
        opacity: 0.6;
    }
    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    #prompt-suggestions-container {
        max-height: 190px;
    }

    .suggestion-item {
        font-size: 0.8em !important;
        padding: 8px 10px !important;
    }
}

/* Ensure thumbnail-image label is specifically block */
label[for="thumbnail-image"] {
    display: block !important;
    width: 100%;
    margin-bottom: 12px;
}

/* Auto-detection notice styles */
.auto-detection-notice {
    grid-column: 1 / -1;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #ebf8ff 0%, #f0f9ff 100%);
    border: 1px solid #4299e1;
    border-radius: 8px;
    color: #2b6cb0;
    box-shadow: 0 2px 4px rgba(66, 153, 225, 0.1);
    animation: slideInFromTop 0.5s ease-out;
}

.auto-detection-notice .notice-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.auto-detection-notice .notice-icon {
    font-size: 1.2em;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes sparkle {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@media (max-width: 768px) {
    .auto-detection-notice {
        margin-bottom: 16px;
        padding: 10px 12px;
        font-size: 0.9rem;
    }
}

.upload-item.selected .upload-item-selected-indicator {
    display: flex;
}

.upload-item-delete {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    opacity: 0;
    transform: scale(0.8);
}

.upload-item:hover .upload-item-delete {
    opacity: 1;
    transform: scale(1);
}

.upload-item-delete:hover {
    background: rgba(239, 68, 68, 1);
    transform: scale(1.1);
}

.upload-item-delete:disabled {
    background: rgba(156, 163, 175, 0.9);
    cursor: not-allowed;
    transform: scale(1);
}

/* Mobile adjustments for compact design */
@media (max-width: 768px) {
    .sidebar-container {
        padding: 16px;
    }
    
    .generation-controls-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .style-options {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        max-height: 376px;
    }
    
    .style-option img, .style-option .style-img {
        height: 70px;
    }
}

@media (max-width: 600px) {
    .generation-controls-grid {
        grid-template-columns: 1fr 1fr;
    }

    .style-options {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Aspect ratio radio buttons */
.aspect-ratio-options {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    justify-content: center;
    align-items: center;
}

.aspect-ratio-option {
    flex: 0 0 auto;
}

.aspect-ratio-option input[type="radio"] {
    display: none;
}

/* Ensure the main label doesn't interfere */
.aspect-ratio-options ~ label,
.input-group > label {
    display: block !important;
    width: 100% !important;
    position: static !important;
    margin-bottom: 6px !important;
    float: none !important;
}

.aspect-ratio-option label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    background-color: #f8fafc;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.75em;
    color: #64748b;
    text-align: center;
    position: relative;
    width: 80px;
}

/* Specific aspect ratio shapes */
.aspect-16-9 label {
    aspect-ratio: 16/9;
    width: 70px;
}

.aspect-1-1 label {
    aspect-ratio: 1/1;
    height: 50px;
    width: 50px;
}

.aspect-9-16 label {
    aspect-ratio: 9/16;
    height: 70px;
    width: 40px;
}

.aspect-4-5 label {
    aspect-ratio: 4/5;
    height: 60px;
    width: 40px;
}

.aspect-ratio-option.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.aspect-ratio-option.disabled label {
    cursor: not-allowed;
    border-color: #e2e8f0;
}

.aspect-ratio-option label:hover {
    border-color: #cbd5e0;
    background-color: #f1f5f9;
    transform: translateY(-1px);
}

.aspect-ratio-option input[type="radio"]:checked + label {
    border-color: #4299e1;
    background-color: #ebf8ff;
    color: #2b6cb0;
    box-shadow: 0 0 0 2px rgba(66, 153, 225, 0.2);
}

.platform-support-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
    padding: 6px 10px;
    background-color: #f8fafc;
    border-radius: 6px;
    font-size: 0.75em;
    width: inherit;
    opacity: .8;
}

.platform-icons {
    display: flex;
    gap: 4px;
    margin-top: 6px;
    min-height: 20px;
    align-items: center;
    justify-content: center;
}

.platform-icon {
    font-size: 12px;
    opacity: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.platform-icon img {
    width: 13px;
    height: 13px;
    margin: 1px;
    opacity: 0.9;
}

.aspect-ratio-option .ratio-text {
    font-size: 0.7em;
    font-weight: 600;
    line-height: 1.3;
}

/* Update generation controls grid to 2 columns since aspect ratio is moved */


/* Mobile adjustments for aspect ratio */
@media (max-width: 600px) {
    .aspect-ratio-options {
        gap: 8px;
    }

    .aspect-16-9 label {
        height: 40px;
        width: 70px;
    }

    .aspect-1-1 label {
        height: 60px;
        width: 60px;
    }

    .aspect-9-16 label {
        height: 75px;
        width: 42px;
    }

    .aspect-4-5 label {
        height: 62px;
        width: 50px;
    }

    .aspect-ratio-option .ratio-text {
        font-size: 0.65em;
    }

    .platform-support-note {
        font-size: 0.7em;
        padding: 4px 8px;
    }

    .platform-icon img {
        width: 11px;
        height: 11px;
    }
}

/* Add Image Button */
.add-image-btn {
    width: 50%;
    background: linear-gradient(135deg, #c2b1ae, #afcdea);
    color: white;
    border: none;
    padding: 7px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(66, 153, 225, 0.2);
    margin-bottom: 8px;
    min-width:120px;
}

.add-image-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(66, 153, 225, 0.3);
}

.add-image-btn:active {
    transform: translateY(0);
}

/* Upload Section in Modal */
.upload-section {
    padding: 16px 0;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 16px;
}

.upload-area {
    text-align: center;
    padding: 20px;
    border: 2px dashed #cbd5e0;
    border-radius: 12px;
    background: #f8fafc;
    transition: all 0.2s ease;
}

.upload-area:hover {
    border-color: #4299e1;
    background: #ebf8ff;
}

.upload-files-btn {
    background: linear-gradient(135deg, #4299e1, #3182ce);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(66, 153, 225, 0.2);
    margin-bottom: 8px;
}

.upload-files-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(66, 153, 225, 0.3);
}

.upload-help-text {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
}

/* Modal Divider */
.modal-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 500;
}

.modal-divider::before,
.modal-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.modal-divider span {
    padding: 0 16px;
    background: white;
}

/* My Uploads Section */
.my-uploads-section {
    margin-top: 16px;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
    margin-top: 0;
}

@media (max-width: 768px) {
    .image-upload-layout {
        flex-direction: row;
        gap: 12px;
        align-items: stretch;
    }

    .image-upload-button-area {
        min-width: auto;
    }

    .image-preview-container {
        min-height: 60px;
    }
}

/* Prompt Suggestions Carousel */
.suggestions-carousel {
    position: relative;
    padding: 0;
    margin: 0;
}

.suggestions-navigation {
    position: relative;
    display: flex;
    align-items: center;
}

.suggestions-wrapper {
    overflow: hidden;
    width: 100%;
}

.suggestions-list {
    display: flex;
    transition: transform 0.3s ease;
    width: 100%;
}

.suggestion-item {
    flex: 0 0 100%;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85em;
    transition: all 0.2s ease;
    color: #334155;
    padding: 10px;
    margin: 2px 0;
    height: 100px;
    overflow-y: scroll;
}

.suggestion-item:hover {
    background-color: #f1f5f9;
    border-color: #4299e1;
    transform: translateY(-1px);
}

.suggestion-nav-btn {
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.8;
    transition: all 0.2s ease;
}

.suggestion-nav-btn:hover {
    opacity: 1;
    background-color: #e2e8f0;
}

.suggestion-counter {
    text-align: center;
    font-size: 0.75em;
    color: #64748b;
    margin-top: 5px;
}

/* Sleek SweetAlert Styles */
.swal-sleek-popup {
    border-radius: 16px !important;
    padding: 32px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.swal-sleek-title {
    font-size: 24px !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
    margin-bottom: 16px !important;
}

.swal-sleek-content {
    margin-bottom: 24px !important;
}

.swal-sleek-button {
    border-radius: 12px !important;
    padding: 12px 24px !important;
    font-weight: 500 !important;
    font-size: 15px !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    min-width: 120px !important;
}

.swal-sleek-button-primary {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: white !important;
    box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.3) !important;
}

.swal-sleek-button-primary:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 20px 0 rgba(16, 185, 129, 0.4) !important;
}

.swal-sleek-button-secondary {
    background: #f3f4f6 !important;
    color: #6b7280 !important;
    border: 1px solid #e5e7eb !important;
}

.swal-sleek-button-secondary:hover {
    background: #e5e7eb !important;
    transform: translateY(-1px) !important;
}

.swal-toast-sleek {
    border-radius: 12px !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px) !important;
}
