/* Nivah E-vites: Premium Design with Professional Blue Theme */

/* Importing Google Fonts for elegance and readability */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=Playfair+Display:wght@700&display=swap');

/* Reset and global styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    /* Original body background */
    background: linear-gradient(135deg, #f9fafb 0%, #dbeafe 100%);
    color: #1e3a8a;
    line-height: 1.6;
    padding: 40px 20px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: static;
    overflow: visible;
    z-index: auto;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    background: #ffffff; /* Original white background */
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(30, 58, 138, 0.1); /* Original shadow */
    padding: 40px; /* Original padding */
    transition: transform 0.3s ease;
    /* Removed custom border and related pseudo-elements */
    position: static; /* Ensure no unwanted positioning context */
    z-index: auto; /* Revert z-index */
    overflow: visible; /* Revert overflow */
    isolation: auto; /* Revert isolation */
}

/* Removed .container::before and .container::after */


.venue-update-feedback {
    display: inline-block; /* To allow margin and proper positioning */
    margin-left: 10px;
    color: #10B981; /* A nice green for success */
    font-weight: bold;
    opacity: 0; /* Start hidden */
    transition: opacity 0.5s ease-out; /* Smooth fade-out */
}

.venue-update-feedback.show {
    opacity: 1; /* Show when 'show' class is added */
}

.container:hover {
    transform: translateY(-5px);
}

/* Logo Styling - Reverted to basic */
#site-logo {
    max-width: 150px;
    height: auto;
    display: block;
    margin: 0 auto 30px auto;
    /* Removed border-radius, box-shadow, and animations */
    transition: none; /* Remove any lingering transitions */
    animation: none; /* Remove any lingering animations */
}
#site-logo:hover {
    transform: none; /* Remove hover transform */
    box-shadow: none; /* Remove hover shadow */
}

/* Removed @keyframes pulseLogo */


/* Headings */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    color: #1e3a8a;
    text-align: center;
    margin-bottom: 20px;
}

h1 {
    font-size: 2.8rem;
    font-weight: 700;
    background: linear-gradient(to right, #1e3a8a, #b91c1c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    /* Removed text-shadow and underline styling */
    text-shadow: none;
    position: static;
    width: auto;
    margin: 0 auto 20px auto;
    padding-bottom: 0;
}

/* Removed h1::after */


h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.2rem;
}

/* Stepper navigation */
.stepper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    background: transparent; /* Remains transparent to show the gradient border */
    padding: 15px;
    border-radius: 12px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    isolation: isolate; /* Keep for proper z-index with pseudo-elements */
}

/* Animated Gradient Border Layer for Stepper - Retained */
.stepper::before {
    content: '';
    position: absolute;
    top: -100%; /* Start off-center for rotation */
    left: -100%;
    width: 300%; /* Large enough to ensure gradient covers whole border during rotation */
    height: 300%;
    border-radius: 12px; /* Match stepper border-radius */
    background: conic-gradient(from 0deg at 50% 50%,
                               #b91c1c 0%,    /* Red */
                               #f97316 25%,   /* Orange */
                               #3b82f6 50%,   /* Blue */
                               #1e3a8a 75%,   /* Darker Blue */
                               #b91c1c 100%); /* Back to Red */
    z-index: -2; /* Place behind the inner background (::after) */
    animation: rotateGradient 3s linear infinite; /* Animation */
    filter: blur(8px); /* Apply blur for a softer glow effect */
    opacity: 0.8; /* Control visibility of the glow */
}

/* Inner background to create the border effect - Retained */
.stepper::after {
    content: '';
    position: absolute;
    top: 2px; /* Adjust this value for border thickness */
    left: 2px; /* Adjust this value for border thickness */
    right: 2px; /* Adjust this value for border thickness */
    bottom: 2px; /* Adjust this value for border thickness */
    background: #eff6ff; /* Original stepper background color */
    border-radius: 10px; /* Slightly smaller radius than stepper to expose gradient */
    z-index: -1; /* Place between ::before and the actual .step elements */
}

@keyframes rotateGradient {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.step {
    flex: 1;
    text-align: center;
    padding: 12px 8px;
    background: #e0e0e0; /* Original background for steps */
    border-radius: 8px;
    margin: 0 4px;
    font-size: 0.95rem; /* Slightly increased font size for better readability */
    font-weight: 700; /* Made text bolder for more impact */
    color: #444; /* Slightly darker text for better contrast */
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 1;
    /* Stronger, more visible shadow for clear separation */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.step.active {
    background: linear-gradient(45deg, #1e3a8a, #3b82f6);
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.step:hover:not(.active) {
    background: #d0d0d0;
    transform: scale(1.02);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); /* Enhanced hover shadow */
}

/* Step panels */
.step-panel {
    display: none;
}

.step-panel.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Form styling */
form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

label {
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 8px;
    font-size: 1rem;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    background: #fafafa;
    transition: all 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    border-color: #1e3a8a;
    background: #fff;
    box-shadow: 0 0 8px rgba(30, 58, 138, 0.2);
    outline: none;
}

textarea {
    height: 120px;
    resize: vertical;
}

/* Buttons */
.buttons {
    margin-top: 30px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

button {
    padding: 12px 24px;
    background: linear-gradient(45deg, #1e3a8a, #3b82f6);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

button:hover {
    background: linear-gradient(45deg, #1e40af, #1e3a8a);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(30, 58, 138, 0.4);
}

button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.2);
}

/* Error Logging */
.error-message {
    color: #b91c1c;
    text-align: center;
    font-size: 0.9rem;
    margin-top: 10px;
    display: none;
}

/* Event selection grid */
.event-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.event-selection label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: #eff6ff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.event-selection input[type="checkbox"] {
    accent-color: #1e3a8a;
    width: 18px;
    height: 18px;
}

.event-selection label:hover {
    background: #dbeafe;
    transform: translateY(-2px);
}

/* Image gallery */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.image-gallery-item {
    position: relative;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.image-gallery-item img, .image-gallery-item iframe {
    width: 100%;
    display: block;
    object-fit: cover;
}

.image-gallery-item img.background, .image-gallery-item iframe.background {
    aspect-ratio: 9 / 16;
}

.image-gallery-item img:not(.background), .image-gallery-item iframe:not(.background) {
    aspect-ratio: 4 / 5;
}

.image-gallery-item.selected {
    border: 3px solid #1e3a8a;
    box-shadow: 0 6px 16px rgba(30, 58, 138, 0.3);
    transform: scale(1.03);
}

.image-gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.2);
}

.image-name {
    display: block;
    font-size: 0.85rem;
    color: #666;
    text-align: center;
    padding: 8px;
    background: #fafafa;
}

.image-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
    padding: 10px;
}

.select-btn, .preview-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 6px;
}

.preview-btn {
    background: linear-gradient(45deg, #1e3a8a, #3b82f6);
    color: #fff;
}

.preview-btn:hover {
    background: linear-gradient(45deg, #1e40af, #1e3a8a);
    transform: translateY(-2px);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 58, 138, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #fff;
    transition: transform 0.3s ease;
}

.lightbox-close:hover {
    transform: scale(1.2);
}

/* Font preview */
#primary-font-preview, #secondary-font-preview {
    font-size: 24px;
    background: #eff6ff;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 10px 0;
    display: block;
}
#secondary-font-preview {
    font-size: 18px; /* Original font size */
}


/* Playlist - Enhanced Styling */
.playlist {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.playlist-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.playlist-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.15);
    border-color: #3b82f6;
}

.song-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-grow: 1;
}

.song-number {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e3a8a;
    min-width: 25px;
    text-align: right;
}

.song-name {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    flex-grow: 1;
}

.listen-button {
    padding: 8px 15px;
    background: linear-gradient(45deg, #3b82f6, #60a5fa);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.2);
}

.listen-button:hover {
    background: linear-gradient(45deg, #1e3a8a, #3b82f6);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(30, 58, 138, 0.3);
}

.listen-button i {
    font-size: 1.1em;
}

/* YouTube Player Controls Styling */
.player-display-box {
    background: #eff6f;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.08);
    margin-top: 20px;
    margin-bottom: 20px;
}

.player-display-box h3 {
    color: #1e3a8a;
    margin-bottom: 15px;
}

.player-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.player-button {
    padding: 10px 20px;
    background: linear-gradient(45deg, #1e3a8a, #3b82f6);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(30, 58, 138, 0.2);
    transition: all 0.2s ease-in-out;
}

.player-button:hover:not(:disabled) {
    background: linear-gradient(45deg, #1e40af, #1e3a8a);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(30, 58, 138, 0.3);
}

.player-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #ccc;
}

.player-button i {
    font-size: 1.2em;
}

/* Seeking Controls */
.seek-bar-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.seek-bar-container span {
    font-size: 0.9em;
    color: #555;
    min-width: 40px;
    text-align: center;
}

.seek-bar {
    flex-grow: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: #e0e0e0;
    border-radius: 5px;
    outline: none;
    transition: background 0.2s ease-in-out;
    cursor: pointer;
}

.seek-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(45deg, #1e3a8a, #3b82f6);
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(30, 58, 138, 0.3);
    transition: transform 0.2s ease-in-out;
}

.seek-bar::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(45deg, #1e3a8a, #3b82f6);
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(30, 58, 138, 0.3);
    transition: transform 0.2s ease-in-out;
}

.seek-bar:hover:not(:disabled)::-webkit-slider-thumb,
.seek-bar:active:not(:disabled)::-webkit-slider-thumb,
.seek-bar:focus:not(:disabled)::-webkit-slider-thumb {
    transform: scale(1.1);
}
.seek-bar:hover:not(:disabled)::-moz-range-thumb,
.seek-bar:active:not(:disabled)::-moz-range-thumb,
.seek-bar:focus:not(:disabled)::-moz-range-thumb {
    transform: scale(1.1);
}

.seek-bar:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #ccc;
}
.seek-bar:disabled::-webkit-slider-thumb {
    background: #999;
    cursor: not-allowed;
}
.seek-bar:disabled::-moz-range-thumb {
    background: #999;
    cursor: not-allowed;
}


/* Visually hide the YouTube iframe */
#player-container iframe,
#preview-player-container iframe {
    width: 1px;
    height: 1px;
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    pointer-events: none;
}


/* Preview event */
.preview-event {
    margin: 20px auto;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: #fff;
    transition: all 0.3s ease;
    max-width: 400px;
}

.preview-event:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(30, 58, 138, 0.2);
}

.preview-event h4 {
    font-size: 1.8rem;
    padding: 10px 15px;
    background: #eff6ff;
    border-radius: 8px;
    text-align: left;
    color: #1e3a8a;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(to right, #1e3a8a, #3b82f6) 1;
    margin-bottom: 15px;
}

/* Styles for preview event content - NO ANIMATIONS */
.preview-event-content {
    position: relative; /* Needed for absolute positioning of caricature/text */
    width: 360px; /* Same as canvas width */
    height: 640px; /* Same as canvas height */
    margin: 0 auto;
    overflow: hidden; /* Hide anything outside the bounds */
    background-color: #fff; /* Fallback background */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.preview-event-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.preview-event-caricature {
    position: absolute;
    width: 260px; /* Caricature size */
    height: 325px;
    bottom: 15px; /* Adjust as needed */
    left: 50%;
    transform: translateX(-50%); /* Centered horizontally */
    z-index: 2;
    opacity: 1; /* Always visible */
}

.preview-event-watermark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 4;
    opacity: 0.5;
}

.preview-event-text-container {
    position: absolute;
    /* `top` will be set by JavaScript based on scaled textY */
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 3;
    opacity: 1; /* Always visible */
    padding: 0 20px; /* Add some horizontal padding to prevent text touching edges */
}


/* Ensure text elements within the container are block-level for proper stacking */
.animated-text {
    display: block;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.primary-text {
    font-weight: bold;
}

.secondary-text {
    /* Styles are set dynamically by JS based on selected font sizes */
}

/* New styles for venue selection buttons */
.venue-options {
    display: flex;
    gap: 10px; /* Space between buttons */
    margin-bottom: 15px; /* Space below buttons before input field */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.venue-option-button {
    flex: 1; /* Distribute space equally */
    min-width: 120px; /* Minimum width for buttons */
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
    color: #1e3a8a;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.venue-option-button.selected {
    background: linear-gradient(45deg, #1e3a8a, #3b82f6);
    color: #fff;
    border-color: #1e3a8a;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
    transform: translateY(-2px);
}

.venue-option-button:hover:not(.selected) {
    background: #dbeafe;
    border-color: #3b82f6;
    transform: translateY(-1px);
}


/* File manager */
.file-manager {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.file-folder {
    background: #eff6ff;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.file-folder:hover {
    background: #dbeafe;
}

.file-folder-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.file-folder-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.file-folder-content {
    display: none;
}

.file-folder-content.active {
    display: block;
}

/* Admin Panel Specific Styles */
#login-panel, #admin-panel {
    display: none;
}

#login-panel.active, #admin-panel.active {
    display: block;
}

.dialog {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 1000;
    width: 90%;
    max-width: 800px;
}

.dialog.active {
    display: block;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.admin-options {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.admin-option-btn {
    padding: 15px 30px;
    background: linear-gradient(45deg, #1e3a8a, #3b82f6);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.admin-option-btn:hover {
    background: linear-gradient(45deg, #1e40af, #1e3a8a);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(30, 58, 138, 0.3);
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.image-item {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 10px;
    background: #fff;
    text-align: center;
    transition: all 0.3s ease;
}

.image-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.image-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(30, 58, 138, 0.2);
}

.image-item-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    margin-top: 10px;
}

.image-item-buttons button {
    padding: 6px 12px;
    font-size: 0.85rem;
}

.image-item-url {
    margin-top: 10px;
    font-size: 0.85rem;
}

.image-item-url a {
    color: #1e3a8a;
    text-decoration: underline;
}

.image-item-url form {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 5px;
}

.image-item-url input {
    padding: 6px;
    font-size: 0.85rem;
}

.image-count {
    font-size: 1rem;
    color: #1e3a8a;
    margin-bottom: 10px;
    text-align: left;
}

/* Custom Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    text-align: center;
    position: relative;
}

.modal-close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 20px;
}

.modal-close-btn:hover,
.modal-close-btn:focus {
    color: black;
    text-decoration: none;
}

#modal-message {
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #333;
}

.modal-ok-btn {
    background-color: #1e3a8a;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.modal-ok-btn:hover {
    background-color: #3b82f6;
}


/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 20px;
        border-radius: 12px;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .stepper {
        flex-wrap: wrap;
        gap: 8px;
    }

    .step {
        font-size: 0.8rem;
        padding: 10px;
        margin: 4px;
    }

    .image-gallery {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .image-gallery-item {
        width: 140px;
    }

    .image-gallery-item img.background, .image-gallery-item iframe.background {
        aspect-ratio: 9 / 16;
    }

    .image-gallery-item img:not(.background), .image-gallery-item iframe:not(.background) {
        aspect-ratio: 4 / 5;
    }

    .preview-event img.background, .preview-event iframe.background {
        max-height: 250px;
    }

    .preview-event img:not(.background), .preview-event iframe:not(.background) {
        max-height: 200px;
    }

    button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .image-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .image-item {
        padding: 8px;
    }

    .image-item-buttons button {
        padding: 5px 10px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 20px 10px;
    }

    .container {
        padding: 15px;
    }

    h1 {
        font-size: 1.8rem;
    }

    .event-selection {
        grid-template-columns: 1fr;
    }

    .buttons {
        flex-direction: column;
        gap: 10px;
    }

    .preview-event h4 {
        font-size: 1.5rem;
    }

    .image-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
}
