@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400..900&family=Poppins:wght@300;400;600&display=swap');

:root {
    --primary-color: #2A75E9;
    --primary-color-darker: #1E5BBF;
    --primary-color-rgb: 42, 117, 233;
    --accent-color: #00C4D4;
    --accent-color-rgb: 0, 196, 212;
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #eef2f7;
    --bg-hero-light: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    --text-primary: #2c3e50;
    --text-secondary: #5a6f80;
    --text-inverted: #ffffff;
    --text-secondary-rgb: 90, 111, 128;
    --text-link: var(--primary-color);
    --text-link-hover: var(--primary-color-darker);
    --border-color: #e5e9f0;
    --border-color-darker: #d1d6dd;
    --card-shadow: 0 4px 12px rgba(44, 62, 80, 0.06);
    --card-shadow-hover: 0 7px 20px rgba(44, 62, 80, 0.09);
    --danger-color: #e74c3c;
    --danger-color-darker: #c0392b;
    --google-color: #DB4437;
    --google-color-hover: #c33d2e;
    --microsoft-color: #0078D4;
    --microsoft-color-hover: #005a9e;
    --placeholder-bg: #f0f2f5;
    --format-preview-bg: #e1e5ea;
    --format-preview-icon: #7a8b9a;
}

html[data-theme="dark"] {
    --primary-color: #3A86FF;
    --primary-color-darker: #286DE0;
    --primary-color-rgb: 58, 134, 255;
    --accent-color: #00E0F0;
    --accent-color-rgb: 0, 224, 240;
    --bg-primary: #1a202c;
    --bg-secondary: #2d3748;
    --bg-tertiary: #12161f;
    --bg-hero-dark: linear-gradient(135deg, #1A2956, #003F4A);
    --text-primary: #e2e8f0;
    --text-secondary: #a0aec0;
    --text-inverted: #ffffff;
    --text-secondary-rgb: 160, 174, 192;
    --text-link: var(--primary-color);
    --text-link-hover: var(--primary-color-darker);
    --border-color: #404a5c;
    --border-color-darker: #505d75;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    --card-shadow-hover: 0 7px 20px rgba(0, 0, 0, 0.35);
    --danger-color: #f16a5c;
    --danger-color-darker: #e74c3c;
    --google-color: #e57373;
    --google-color-hover: #ef9a9a;
    --microsoft-color: #4fc3f7;
    --microsoft-color-hover: #81d4fa;
    --placeholder-bg: #3a475a;
    --format-preview-bg: #4a5568;
    --format-preview-icon: #a0aec0;
}

    html[data-theme="dark"] .lmh-link {
        color: var(--text-primary);
    }

        html[data-theme="dark"] .lmh-link:hover {
            background: var(--bg-tertiary);
            color: var(--primary-color);
        }

        html[data-theme="dark"] .lmh-link.is-active {
            color: hsl(171, 100%, 27%); /* Original active link color */
        }

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-size: 16px;
}

main.content-area {
    flex-grow: 1;
}

.title, .subtitle, .label {
    color: var(--text-primary);
    word-break: break-word;
}

h1:focus,
h2:focus,
h3:focus,
h4:focus,
h5:focus,
h6:focus {
    outline: none;
    box-shadow: none;
}

.subtitle, p, .help, .card-meta, .request-meta, .step-text, .feature-text, .pagination-summary, .plan-subtitle {
    color: var(--text-secondary);
    line-height: 1.6;
}

.label {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5em;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    color: var(--text-primary);
    font-weight: 600;
}

.section-subtitle {
    color: var(--text-secondary);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.box, .card {
    background-color: var(--bg-secondary);
    box-shadow: var(--card-shadow);
    transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

    .box:hover, .card:hover {
        box-shadow: var(--card-shadow-hover);
    }

.input, .textarea, .select select {
    background-color: var(--bg-secondary);
    border-color: var(--border-color-darker);
    color: var(--text-primary);
    border-radius: 6px;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

    .input::placeholder, .textarea::placeholder {
        color: var(--text-secondary);
        opacity: 0.7;
    }

input[type="password"]::placeholder {
    font-family: sans-serif;
}

.input:focus, .textarea:focus, .select select:focus, .input.is-focused, .textarea.is-focused, .select.is-focused select {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.125em rgba(var(--primary-color-rgb), 0.25);
}

.select:not(.is-multiple):not(.is-loading)::after {
    border-color: var(--primary-color);
}

.checkbox:hover, .radio:hover {
    color: var(--primary-color);
}

input[type="checkbox"], input[type="radio"] {
    accent-color: var(--primary-color);
    margin-right: 0.25em;
    vertical-align: middle;
}

.checkbox, .radio {
    vertical-align: middle;
}

.button.is-primary {
    background-color: var(--primary-color);
    border-color: transparent;
    color: var(--text-inverted);
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

    .button.is-primary:hover {
        background-color: var(--primary-color-darker);
        color: var(--text-inverted);
        box-shadow: 0 4px 8px rgba(var(--primary-color-rgb), 0.2);
    }

    .button.is-primary.is-outlined {
        background-color: transparent;
        border-color: var(--primary-color);
        color: var(--primary-color);
        font-weight: 600;
        transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    }

        .button.is-primary.is-outlined:hover {
            background-color: var(--primary-color);
            color: var(--text-inverted);
            box-shadow: 0 2px 6px rgba(var(--primary-color-rgb), 0.15);
        }

    .button.is-primary.is-light {
        background-color: rgba(var(--primary-color-rgb), 0.1);
        color: var(--primary-color);
        font-weight: 600;
        transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    }

        .button.is-primary.is-light:hover {
            background-color: rgba(var(--primary-color-rgb), 0.2);
            color: var(--primary-color-darker);
        }

.button.is-light {
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    border-color: var(--border-color);
}

    .button.is-light:hover {
        background-color: var(--border-color);
        color: var(--text-primary);
    }

    .button.is-light.is-outlined {
        background-color: transparent;
        color: var(--text-secondary);
        border-color: var(--border-color-darker);
    }

        .button.is-light.is-outlined:hover {
            background-color: var(--bg-tertiary);
            border-color: var(--border-color-darker);
            color: var(--text-primary);
        }

.link-themed {
    color: var(--text-link);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

    .link-themed:hover {
        color: var(--text-link-hover);
        border-bottom-color: var(--text-link-hover);
    }

.has-text-danger-themed {
    color: var(--danger-color) !important;
}

    .has-text-danger-themed:hover {
        color: var(--danger-color-darker) !important;
    }

.navbar.is-primary-themed {
    position: relative;
    background-color: var(--bg-secondary);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

html[data-theme="dark"] .navbar.is-primary-themed {
    box-shadow: 0 2px 5px rgba(var(--primary-color-rgb), 0.05);
}

.navbar-item, .navbar-link {
    color: var(--text-secondary);
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
    /* General hover styles for background and color */
    .navbar-item:hover, .navbar-link:hover {
        background-color: var(--bg-tertiary) !important;
        color: var(--primary-color) !important;
    }

    /* Specific hover style for transform on eligible items */
    .navbar-item:not(.is-active):not(:has(> a.button)):hover,
    .navbar-link:not(.active):hover {
        transform: translateY(-2px);
    }

    .navbar-item.is-active,
    a.navbar-item.active,
    .navbar-link.active {
        background-color: transparent !important;
        color: var(--primary-color) !important;
        border-bottom: 3px solid var(--primary-color);
        padding-bottom: calc(0.5rem - 3px);
    }

    .navbar-item:has(> a.button) {
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
    }

        .navbar-item:has(> a.button):hover {
            background-color: transparent !important;
        }

.logo-text-adjacent {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary) !important;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    display: inline-block;
    vertical-align: middle;
}

html[data-theme="dark"] .logo-text-adjacent {
    color: var(--text-primary) !important;
}

.navbar-burger {
    color: var(--text-primary) !important;
    margin-right: 1.5em;
}

.theme-toggle-button {
    color: var(--text-secondary);
    background: transparent;
    border: none;
}

    .theme-toggle-button:hover {
        color: var(--primary-color);
        background-color: var(--bg-tertiary);
    }

.page-section {
    display: none;
    animation: fadeIn 0.5s ease-in-out forwards;
    min-height: calc(100vh - 5.25rem - 14rem);
    padding: 2rem 1.5rem;
}

    .page-section.active {
        display: block;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-section#frontpage {
    padding: 0;
}

.main-hero {
    background: var(--bg-hero-light);
    color: var(--text-inverted);
    position: relative;
    overflow: hidden;
    background-size: 150% 150%;
    animation: gradientAnim 18s ease infinite;
    transition: background 0.5s ease;
}

html[data-theme="dark"] .main-hero {
    background: var(--bg-hero-dark);
}

html[data-theme="light"] .main-hero {
    background: linear-gradient(135deg, #1d3a5f 40%, #4a0e6e 100%);
}

@keyframes gradientAnim {
    0% {
        background-position: 0% 50%
    }

    50% {
        background-position: 100% 50%
    }

    100% {
        background-position: 0% 50%
    }
}

.hero-body {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255,255,255,0.1);
    padding: 2.5rem;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    transition: background-color 0.3s ease;
}

html[data-theme="dark"] .hero-content-wrapper {
    background: rgba(var(--primary-color-rgb), 0.15);
    backdrop-filter: blur(5px);
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 800;
    color: var(--text-inverted) !important;
    margin-bottom: 1.5rem !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 300;
}

html[data-theme="dark"] .hero-subtitle {
    color: var(--text-secondary) !important;
}

.hero-subtitle strong {
    font-weight: 600;
    color: inherit;
}

.hero-cta {
    margin: 0.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(var(--primary-color-rgb), 0.3);
}

    .hero-cta:hover {
        transform: translateY(-3px) scale(1.03);
        box-shadow: 0 8px 20px rgba(var(--primary-color-rgb), 0.4);
    }

.frontpage-cta-buttons {
    margin-top: 2rem;
}

.hero-background-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

    .hero-background-shapes span {
        background-color: rgba(var(--primary-color-rgb), 0.1);
        position: absolute;
        border-radius: 50%;
        animation: float 20s infinite linear;
        bottom: -150px;
    }

html[data-theme="dark"] .hero-background-shapes span {
    background-color: rgba(var(--accent-color-rgb), 0.08);
}

.hero-background-shapes span:nth-child(1) {
    width: 80px;
    height: 80px;
    left: 10%;
    animation-duration: 22s;
}

.hero-background-shapes span:nth-child(2) {
    width: 120px;
    height: 120px;
    left: 30%;
    animation-duration: 18s;
    animation-delay: 2s;
}

.hero-background-shapes span:nth-child(3) {
    width: 50px;
    height: 50px;
    left: 55%;
    animation-duration: 25s;
    animation-delay: 5s;
}

.hero-background-shapes span:nth-child(4) {
    width: 150px;
    height: 150px;
    left: 75%;
    animation-duration: 15s;
}

.hero-background-shapes span:nth-child(5) {
    width: 90px;
    height: 90px;
    left: 90%;
    animation-duration: 20s;
    animation-delay: 3s;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(-120vh) rotate(720deg);
        opacity: 0;
    }
}

.features-section {
    padding: 3rem 1.5rem;
    background-color: var(--bg-primary);
}

.feature-column-redesigned {
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

    .feature-column-redesigned:hover {
        transform: translateY(-5px);
    }

.feature-icon-redesigned {
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: inline-block;
    transition: color 0.3s ease;
}

.feature-column-redesigned:hover .feature-icon-redesigned {
    color: var(--accent-color);
}

.feature-column-redesigned .title.is-5 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem !important;
}

.feature-text {
    font-size: 0.9rem;
}

.steps-section {
    padding: 3rem 1.5rem;
    background-color: var(--bg-tertiary);
}

.step-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
}

.step-arrow {
    color: var(--text-secondary);
    opacity: 0.5;
}

.form-box {
}

.form-subtitle {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    display: inline-block;
    margin-bottom: 1.5rem !important;
}

.color-input-picker {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-color-darker);
    background-color: var(--bg-secondary);
    border-radius: 6px;
    padding: 3px;
    cursor: pointer;
    vertical-align: middle;
    transition: border-color 0.3s ease;
}

    .color-input-picker::-webkit-color-swatch-wrapper {
        padding: 0;
    }

    .color-input-picker::-webkit-color-swatch {
        border: none;
        border-radius: 4px;
    }

.color-input-picker {
    border: none;
    border-radius: 4px;
}

.color-input-hex {
    font-family: monospace;
    font-size: 0.8rem;
    text-transform: uppercase;
    width: 70px;
    height: 32px;
    padding: 0.3em 0.5em;
    border-radius: 6px;
    border: 1px solid var(--border-color-darker);
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    margin-left: 0.5rem;
    vertical-align: middle;
}

    .color-input-hex:focus {
        border-color: var(--primary-color);
    }

.text-preview {
    border-radius: 6px;
    border: 1px dashed var(--border-color-darker);
    background-color: var(--bg-tertiary);
    transition: background-color 0.3s ease, border-color 0.3s ease;
    color: var(--text-secondary);
    padding: 1rem;
}

.banner-count-buttons .button {
    background-color: var(--bg-tertiary);
    border-color: var(--border-color);
    color: var(--text-secondary);
}

    .banner-count-buttons .button:hover {
        border-color: var(--border-color-darker);
        color: var(--text-primary);
        z-index: 2;
    }

    .banner-count-buttons .button.is-active {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
        color: var(--text-inverted);
        z-index: 3;
    }


.section-card {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1.5rem;
    background-color: var(--bg-secondary);
    position: relative;
}

    .section-card .title.is-6 {
        color: var(--text-secondary);
    }

    .section-card .remove-section-btn {
        position: absolute;
        top: 0.75rem;
        right: 0.75rem;
    }

    .section-card + .section-card {
        margin-top: 1.5rem;
    }

    .section-card .columns.is-vcentered .column {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .section-card .columns.is-vcentered .field {
        margin-bottom: 0;
    }

    .section-card .columns.is-vcentered .control {
        display: flex;
        align-items: center;
    }

#ai-model option i {
    margin-right: 0.5em;
    width: 1.28571429em;
    text-align: center;
}

.color-groups-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.color-picker-group {
    display: flex;
    align-items: center;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: auto;
}

    .color-picker-group .label {
        margin-bottom: 0;
        margin-right: 0.75rem;
        font-size: 0.8rem;
        color: var(--text-secondary);
        white-space: nowrap;
    }

    .color-picker-group .remove-color-btn {
        height: 32px;
        width: 32px;
        padding: 0;
        margin-left: 0.5rem;
        align-self: center;
    }

        .color-picker-group .remove-color-btn .icon {
            margin: 0;
            font-size: 0.8em;
        }

#add-color-btn {
    margin-top: 1rem;
}

.media-box .media-group {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1rem 1.5rem;
    background-color: var(--bg-secondary);
}

.media-box .media-group-title {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.media-hr {
    background-color: var(--border-color);
    height: 1px;
    margin: 2rem 0;
}

.login-section {
}

.login-box {
    max-width: 450px;
    margin: 2rem auto;
    padding: 2rem;
}

html[data-theme="dark"] .login-box {
    background-color: var(--bg-primary);
}

.login-box .level.login-options {
    align-items: center;
}

.login-hr {
    margin: 1rem 0;
    background-color: var(--border-color);
    height: 1px;
}

.is-divider {
    display: block;
    position: relative;
    border-top: 1px solid var(--border-color);
    height: 1px;
    margin: 2rem 0;
    text-align: center;
    transition: border-color 0.3s ease;
}

    .is-divider[data-content]::after {
        content: attr(data-content);
        display: inline-block;
        font-size: .75rem;
        padding: 0 .8em;
        position: relative;
        top: -.8em;
        background: var(--bg-secondary);
        color: var(--text-secondary);
        font-weight: 600;
        letter-spacing: 0.5px;
        transition: background-color 0.3s ease, color 0.3s ease;
    }

html[data-theme="dark"] .is-divider[data-content]::after {
    background: var(--bg-primary);
}

.button.is-google {
    background-color: var(--google-color);
    border-color: transparent;
    color: white;
    font-weight: 500;
}

    .button.is-google:hover {
        background-color: var(--google-color-hover);
        color: white;
    }

.button.is-microsoft {
    background-color: var(--microsoft-color);
    border-color: transparent;
    color: white;
    font-weight: 500;
}

    .button.is-microsoft:hover {
        background-color: var(--microsoft-color-hover);
        color: white;
    }

html[data-theme="dark"] .button.is-google {
    color: var(--text-primary);
}

html[data-theme="dark"] .button.is-microsoft {
    color: var(--text-primary);
}

.generation-results-box {
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.preview-card-style {
}

.banner-preview iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

figure.image.banner-preview {
    position: relative;
    background-color: var(--placeholder-bg);
    overflow: hidden;
}

.generated-list-section {
    background-color: var(--bg-tertiary);
    transition: background-color 0.3s ease;
}

.banner-request-group {
    border: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    border-radius: 8px;
}

.request-info {
    border-bottom: 1px solid var(--border-color);
    flex-wrap: nowrap;
}

.request-details-left {
    flex: 1;
    min-width: 0;
    max-width: 100%;
}

    .request-details-left .request-note,
    .request-details-left .request-instructions {
        margin-bottom: 0.5rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.request-details-right {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.generated-banner-card {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-secondary);
    transition: box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

    .generated-banner-card:hover {
        box-shadow: var(--card-shadow-hover);
    }

    .generated-banner-card .card-image {
        background: repeating-conic-gradient(#ccc 0% 25%, #eee 0% 50%) 50% / 20px 20px;
    }

    .generated-banner-card .card-content {
        flex-grow: 1;
    }

        .generated-banner-card .card-content p.card-meta {
            display: block;
            margin-bottom: 0.25rem;
            line-height: 1.4;
        }

    .generated-banner-card .card-footer {
        border-top: 1px solid var(--border-color);
        transition: border-color 0.3s ease;
        background-color: var(--bg-secondary);
    }

    .generated-banner-card .card-footer-item {
        transition: background-color 0.2s ease, color 0.2s ease;
        color: var(--text-secondary);
        font-size: 0.8rem;
        padding: 0.5em 0.75em;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .generated-banner-card .card-footer-item:hover {
            background-color: var(--bg-tertiary);
            color: var(--primary-color);
        }

        .generated-banner-card .card-footer-item .icon {
            color: var(--text-secondary);
            opacity: 0.7;
            transition: color 0.2s ease;
            font-size: 0.9em;
            vertical-align: middle;
        }

        .generated-banner-card .card-footer-item:hover .icon {
            color: var(--primary-color);
            opacity: 1;
        }


.show-more-container button {
    color: var(--text-secondary);
    transition: color 0.2s ease, border-color 0.2s ease;
}

    .show-more-container button:hover {
        color: var(--primary-color);
        border-color: var(--primary-color);
        background-color: transparent;
    }

.pagination-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1rem;
}

nav.pagination {
    order: 1;
    margin-bottom: 0.5rem;
}

.pagination-list {
    margin: 0 0.75rem;
}

.pagination-previous {
    margin-right: 0.75rem;
    order: initial;
}

.pagination-next {
    margin-left: 0.75rem;
}

.pagination-summary {
    color: var(--text-secondary);
    font-size: 0.85rem;
    white-space: nowrap;
    order: 2;
    margin-top: 0.25rem;
}

.pagination-link, .pagination-previous, .pagination-next {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-secondary);
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

    .pagination-link:hover, .pagination-previous:hover, .pagination-next:hover {
        border-color: var(--primary-color);
        color: var(--primary-color);
        background-color: var(--bg-tertiary);
    }

    .pagination-link.is-current {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
        color: var(--text-inverted);
    }

.pagination-ellipsis {
    color: var(--text-secondary);
    padding: 0 0.5em;
}

.pricing-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

    .pricing-card:hover {
        box-shadow: var(--card-shadow-hover);
        transform: translateY(-5px);
    }

    .pricing-card.is-highlighted {
        border: 2px solid var(--primary-color);
        box-shadow: 0 10px 30px rgba(var(--primary-color-rgb), 0.15);
    }

html[data-theme="dark"] .pricing-card.is-highlighted {
    box-shadow: 0 10px 30px rgba(var(--primary-color-rgb), 0.2);
}

.highlight-tag {
    position: absolute;
    top: 15px;
    right: -30px;
    background-color: var(--primary-color);
    color: var(--text-inverted);
    padding: 4px 30px;
    font-size: 0.7rem;
    font-weight: bold;
    transform: rotate(45deg);
    transform-origin: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1;
    line-height: 1.3;
    white-space: nowrap;
}

    .highlight-tag::before {
        content: "Populær";
    }

.pricing-card .card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

.plan-title {
    color: var(--text-primary);
    font-weight: 600;
}

.plan-subtitle {
    color: var(--text-secondary);
    margin-bottom: 1rem !important;
    font-size: 0.9rem !important;
}

.price {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

    .price .is-size-6 {
        color: var(--text-secondary);
        font-weight: 400;
        margin-left: 5px;
    }

.feature-list {
    list-style: none;
    margin-left: 0;
    flex-grow: 1;
    font-size: 0.9rem;
}

    .feature-list li {
        margin-bottom: 0.75rem;
        color: var(--text-secondary);
        display: flex;
        align-items: center;
        text-align: center;
    }

        .feature-list li.has-text-grey {
            color: var(--text-secondary);
            opacity: 0.6;
        }

.feature-icon-list {
    color: var(--primary-color);
    margin-right: 0.75rem;
    min-width: 20px;
    text-align: center;
}

.feature-list li.has-text-grey .feature-icon-list {
    color: var(--text-secondary);
}

.price-cta {
    margin-top: auto;
    font-weight: 600;
}

.site-footer {
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
    padding: 3rem 1.5rem 2rem 1.5rem;
    color: var(--text-secondary);
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    color: var(--text-secondary);
    margin-top: 0.25rem;
    font-size: 0.9rem;
}

.footer-column {
    margin-bottom: 1.5rem;
}

.footer-heading.menu-label {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: none;
    font-size: 1rem;
    letter-spacing: 0;
}

.menu-list a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 0.5em 0;
    transition: color 0.2s ease;
    border-bottom: 1px solid transparent;
    display: inline-block;
}

    .menu-list a:hover {
        background-color: transparent;
        color: var(--primary-color);
        border-bottom-color: transparent;
    }

.social-icons {
    margin-top: 0.5rem;
}

    .social-icons .icon {
        margin: 0 0.375rem;
        color: var(--text-secondary);
        transition: color 0.2s ease;
    }

        .social-icons .icon:hover {
            color: var(--primary-color);
        }

.footer-copyright {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem !important;
    margin-top: 2rem !important;
    transition: border-color 0.3s ease;
}

.footer-meta {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.format-option-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-secondary);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
}

    .format-option-card:hover {
        border-color: var(--primary-color);
        box-shadow: 0 3px 8px rgba(var(--primary-color-rgb), 0.1);
    }

.format-option-label {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1rem;
    cursor: pointer;
    text-align: center;
}

.format-preview {
    background-color: var(--format-preview-bg);
    border-radius: 4px;
    margin: 0 auto 0.75rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    color: var(--format-preview-icon);
}

    .format-preview .preview-icon {
        font-size: 1.5rem;
        opacity: 0.8;
    }

.format-preview-topscroll {
    height: 80px;
    width: 80px;
}

.format-preview-display {
    height: 23px;
    width: 120px;
    max-width: 100%;
}

.format-preview-skyscraper {
    height: 100px;
    width: 27px;
}

.format-preview-spot {
    height: 62.5px;
    width: 75px;
}

.format-details {
    margin-top: auto;
}

.format-name {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.format-description {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.styled-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

    .styled-checkbox:checked + .format-option-label .format-option-card,
    .format-option-card.is-checked {
        border-width: 2px;
        border-color: var(--primary-color);
        background-color: rgba(var(--primary-color-rgb), 0.05);
    }

    .styled-checkbox:focus + .format-option-label .format-option-card {
        box-shadow: 0 0 0 0.125em rgba(var(--primary-color-rgb), 0.25);
    }

    .styled-checkbox:checked + .format-option-label .format-preview {
        background-color: rgba(var(--primary-color-rgb), 0.2);
        color: var(--primary-color);
    }

@media screen and (min-width: 1408px) {
    .container {
        max-width: 1344px;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1.75rem;
    }

    .page-section {
        padding: 3rem 2rem;
    }

        .page-section#frontpage {
            padding: 0;
        }

    .features-section, .steps-section {
        padding: 5rem 2rem;
    }

    .pricing-card .card-content {
        padding: 2.5rem;
    }

    .site-footer {
        padding: 4rem 2rem 2rem 2rem;
    }
}

@media screen and (min-width: 1800px) {
    .container {
        max-width: 1600px;
    }

    .page-section {
        padding: 3rem 3rem;
    }

        .page-section#frontpage {
            padding: 0;
        }

    .features-section, .steps-section {
        padding: 6rem 3rem;
    }
}

@media screen and (min-width: 1024px) {
    .navbar-item.is-active,
    a.navbar-item.active,
    .navbar-link.active {
        padding-bottom: calc(0.5rem - 3px);
    }

    .footer-column {
        margin-bottom: 0;
    }
}

@media screen and (max-width: 1023px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-content-wrapper {
        padding: 2rem;
    }

    .page-section {
        padding: 2.5rem 1.5rem;
    }

        .page-section#frontpage {
            padding: 0;
        }

    .features-section, .steps-section {
        padding: 3.5rem 1.5rem;
    }

    .feature-column-redesigned {
        width: 50%;
        flex: none;
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    #preview-grid .column, .generated-banner-columns .column {
        flex: none;
        width: 50%;
    }

    .pagination-container {
        flex-direction: column;
        align-items: center;
    }

    nav.pagination {
        margin-bottom: 0.5rem;
    }

    .pagination-summary {
        margin-left: 0;
    }

    .form-subtitle {
        font-size: 1.5rem;
    }

    .footer-column {
        text-align: left;
        margin-bottom: 2rem;
        width: 50%;
    }

    .footer-brand-column {
        width: 100%;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .social-icons {
        text-align: left;
    }

    #format-selection-container .column {
        width: 50%;
    }

    .color-picker-group {
        flex-basis: calc(50% - 0.375rem);
    }
}

@media screen and (max-width: 768px) {
    body {
        font-size: 15px;
    }

    .page-section {
        padding: 2rem 1rem;
    }

        .page-section#frontpage {
            padding: 0;
        }

    .features-section, .steps-section {
        padding: 3rem 1rem;
    }

    .hero.is-fullheight-with-navbar {
        min-height: calc(85vh);
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .frontpage-cta-buttons .button {
        width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

        .frontpage-cta-buttons .button:last-child {
            margin-top: 0.75rem;
        }

    .hero-cta {
        font-size: 1rem;
        padding: 0.75rem 1.25rem;
    }

    .hero-content-wrapper {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }

    .hero-background-shapes span {
        width: 40px !important;
        height: 40px !important;
        opacity: 0.1 !important;
    }

    .feature-column-redesigned, .step-column, #preview-grid .column, .generated-banner-columns .column, .pricing-card .column, .columns .column.is-narrow, #format-selection-container .column {
        width: 100% !important;
        flex: none !important;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .feature-column-redesigned {
        margin-bottom: 2rem;
        padding: 1rem;
    }

    .pricing-card {
        margin-bottom: 1.5rem;
    }

    .feature-icon-redesigned {
        font-size: 2.5rem;
    }

    .step-icon {
        font-size: 2rem;
    }

    .field.is-grouped {
        flex-wrap: wrap;
    }

        .field.is-grouped > .control {
            margin-bottom: 0.5rem;
        }

    .form-subtitle {
        font-size: 1.3rem;
    }

    .generated-banner-card .card-footer {
        font-size: 0.8rem;
    }

    .pagination-container {
        margin-top: 1rem;
    }

    nav.pagination {
        transform: scale(0.95);
        justify-content: center;
        margin-bottom: 0.25rem;
        flex-wrap: wrap;
    }

    .pagination-previous, .pagination-next {
        margin-bottom: 0.5rem;
        order: initial;
    }

    .pagination-list {
        display: none;
    }

    .footer {
        padding: 2rem 1rem;
        text-align: center;
    }

    .footer-heading.menu-label {
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
    }

    .menu-list li {
        margin-bottom: 0.25rem;
        text-align: center;
    }

    .menu-list a {
        font-size: 0.85rem;
        display: inline-block;
        text-align: center;
    }

    .footer-column {
        text-align: center;
        margin-bottom: 2rem;
        width: 100%;
    }

    .footer-brand-column {
        text-align: center;
        order: -1;
        margin-bottom: 1.5rem;
    }

    .footer-logo {
        justify-content: center;
    }

    .social-icons {
        text-align: center;
    }

    .footer-title {
        font-size: 1rem;
    }

    .footer-meta {
        font-size: 0.75rem;
    }

    .logo-text-adjacent {
        font-size: 1rem;
    }

    .navbar-menu {
        padding: 0.5rem 0;
    }

    .login-box {
        padding: 1.5rem;
        margin-top: 1rem;
    }

    .is-divider[data-content]::after {
        font-size: 0.7rem;
        top: -0.7em;
    }

    .button.is-google, .button.is-microsoft {
        font-size: 0.9rem;
    }

    .banner-count-buttons {
        justify-content: center;
    }

    .section-card .columns.is-vcentered .column.is-narrow .field .control {
        flex-wrap: wrap;
    }

    .media-box .columns .column {
        padding: 0.5rem 0.75rem;
    }

    .media-box .file.is-small .file-cta {
        padding: 0.4rem 0.8rem;
    }

    .color-picker-group {
        flex-basis: calc(50% - 0.375rem);
    }
}

.redesigned-media-box .media-upload-group {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

    .redesigned-media-box .media-upload-group + .media-upload-group {
        margin-top: 1.5rem;
    }

.redesigned-media-box .media-group-title {
    color: var(--text-primary);
    font-weight: 600;
}

.media-upload-area {
    position: relative;
    border: 2px dashed var(--border-color-darker);
    border-radius: 6px;
    padding: 1rem;
    background-color: var(--bg-secondary);
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
}

    .media-upload-area:hover {
        border-color: var(--primary-color);
        background-color: var(--bg-tertiary);
    }

    .media-upload-area.is-dragging {
        border-color: var(--primary-color);
        border-style: solid;
        background-color: rgba(var(--primary-color-rgb), 0.05);
    }

    .media-upload-area.has-file {
        border-style: solid;
        border-color: var(--border-color);
        background-color: var(--bg-tertiary);
        cursor: default;
    }

        .media-upload-area.has-file:hover {
            border-color: var(--border-color);
            background-color: var(--bg-tertiary);
        }

    .media-upload-area .media-file-input {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        cursor: pointer;
        z-index: 1;
    }

    .media-upload-area.has-file .media-file-input {
        pointer-events: none;
    }

.media-upload-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    z-index: 2;
    pointer-events: auto !important;
}

.media-upload-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 80px;
    text-align: center;
    color: var(--text-secondary);
    position: relative;
    background-color: #ffffff;
    background-image: linear-gradient(45deg, #ccc 25%, transparent 25%), linear-gradient(-45deg, #ccc 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #ccc 75%), linear-gradient(-45deg, transparent 75%, #ccc 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.media-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.media-upload-area:hover .media-upload-placeholder {
    opacity: 1;
}

.media-upload-area.has-file .media-upload-placeholder {
    display: none;
}

.media-upload-preview img {
    max-width: 100%;
    max-height: 100px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
    object-fit: contain;
}

.media-upload-preview .video-preview-icon {
    font-size: 3rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

.media-upload-area .remove-media-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 4;
    pointer-events: all;
}

.media-upload-filename {
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
    padding: 0 5px;
    margin-top: auto;
    z-index: 2;
}

.media-upload-area.is-small {
    min-height: 90px;
    padding: 0.75rem;
}

    .media-upload-area.is-small .media-upload-preview {
        min-height: 50px;
    }

        .media-upload-area.is-small .media-upload-preview img {
            max-height: 60px;
        }

    .media-upload-area.is-small .media-upload-placeholder .icon {
        font-size: 1.5rem;
    }

        .media-upload-area.is-small .media-upload-placeholder .icon i {
            font-size: inherit;
        }

    .media-upload-area.is-small .media-upload-placeholder .media-upload-text {
        font-size: 0.75rem;
        margin-top: 0.25rem;
    }

    .media-upload-area.is-small .media-upload-filename {
        font-size: 0.7rem;
    }

    .media-upload-area.is-small .remove-media-btn {
        padding: 0.25rem 0.5rem;
        height: auto;
        font-size: 0.7rem;
    }

        .media-upload-area.is-small .remove-media-btn .icon.is-small {
            font-size: 0.8em;
        }

.media-upload-area .file-label,
.media-upload-area .file-cta,
.media-upload-area .file-name,
.media-upload-area .file-icon {
    display: none !important;
}

.field > .label .icon-text {
    vertical-align: middle;
}

.field > .label .icon {
    vertical-align: sub;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0s linear 0.3s;
}

html[data-theme="dark"] .loading-overlay {
    background-color: rgba(26, 32, 44, 0.9);
}

.loading-overlay.is-active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease-in-out;
}

.loading-spinner {
    text-align: center;
}

.loading-text {
}

.fa-pulse {
    animation-duration: 1s;
}

.request-instructions {
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 250px;
    overflow-y: auto;
    font-size: 0.9rem;
    background-color: var(--bg-tertiary);
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.detail-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.detail-label-small {
    display: inline-block;
    font-weight: 600;
    color: var(--text-primary);
    margin-right: 0.5em;
}

.media-details-list .media-detail-item {
    margin-bottom: 1rem; /* Adjusted margin */
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

    .media-details-list .media-detail-item:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

/*?? Åbn
 buttons ??*/
.media-details-list a.button {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    padding: 0.25em 0.5em;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    background-color: transparent;
    color: var(--primary-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

    .media-details-list a.button:hover {
        background-color: var(--primary-color);
        color: var(--text-inverted);
    }

/*?? Videos full-width + per-device max-heights ??*/
.media-details-list video {
    width: 100%;
    object-fit: cover;
    display: block;
    margin-top: 0.5rem;
}

.media-details-list .media-detail-item:nth-child(1) video { /* desktop */
    max-height: 100%;
}

.media-details-list .media-detail-item:nth-child(2) video, /* tablet */
.media-details-list .media-detail-item:nth-child(3) video { /* mobile */
    max-height: 120px;
}

/*?? Background image full-width + max-height ??*/
.media-details-list .media-detail-item:nth-child(4) figure.image img {
    width: 100%;
    max-height: 200px;
    object-fit: contain;
    background-color: #ffffff;
    background-image: linear-gradient(45deg, #ccc 25%, transparent 25%), linear-gradient(-45deg, #ccc 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #ccc 75%), linear-gradient(-45deg, transparent 75%, #ccc 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

/*?? Logos full-width + max-height ??*/
.media-details-list .media-detail-item:nth-child(5) figure.media-preview-image img,
.media-details-list .media-detail-item:nth-child(6) figure.media-preview-image img {
    width: 100%;
    max-height: 200px;
    object-fit: contain;
}

.media-details-list video {
    max-width: 100%;
    height: auto; /* Let height adjust */
    max-height: 200px; /* Limit max height */
    border-radius: 4px;
    display: block;
    margin-top: 0.5rem;
}

.media-details-list figure.image img {
    border-radius: 4px;
    object-fit: contain;
    border: 1px solid var(--border-color);
    max-height: 100px;
    width: auto; /* Let width adjust based on height constraint */
    max-width: 100%;
}

html .transparent-preview-wrapper {
    background-color: #ffffff;
    background-image: linear-gradient(45deg, #ccc 25%, transparent 25%), linear-gradient(-45deg, #ccc 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #ccc 75%), linear-gradient(-45deg, transparent 75%, #ccc 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.details-list .tags:not(:last-child) {
    margin-bottom: 0;
}

.color-swatch-tag {
    width: 1.5em;
    min-width: 1.5em;
    height: 1.5em;
    border: 1px solid rgba(0,0,0,0.1);
    padding: 0;
    margin-right: -1px;
    position: relative;
    z-index: 1;
}

.overlay-detail-box {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
}

html[data-theme="dark"] .overlay-detail-box {
    background-color: var(--bg-primary);
    border-color: var(--border-color-darker);
}

.generated-banners-section .title {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.link-wrap {
    word-break: break-all; /* Allow long links to wrap */
}

.button-view {
    background-color: rgba(var(--primary-color-rgb), 0.1);
}

.button-download {
    background-color: rgba(var(--accent-color-rgb), 0.1);
}

.button-edit {
    background-color: var(--bg-tertiary);
}

.button-delete {
    background-color: #ffebee;
}

/* Dark Mode Overrides */
html[data-theme='dark'] .button-view,
html.dark .button-view {
    background-color: #224F8D;
}

html[data-theme='dark'] .button-download,
html.dark .button-download {
    background-color: #006A73;
}

html[data-theme='dark'] .button-edit,
html.dark .button-edit {
    background-color: #e65100; /* darker orange */
}

html[data-theme='dark'] .button-delete,
html.dark .button-delete {
    background-color: #b71c1c; /* darker red */
}

.button-delete[disabled] {
    background-color: #f14668; /* Bulma's danger color */
    opacity: 0.5;
    cursor: not-allowed;
}

/* edit-banner-page specific */
.edit-banner-page .tabs ul {
    justify-content: center;
}

    .edit-banner-page .tabs ul li[data-target] {
        cursor: pointer;
    }

.edit-banner-page .tab-content .content {
    display: none;
}

    .edit-banner-page .tab-content .content.is-active {
        display: block;
    }

.edit-banner-hero {
    position: relative;
    background: var(--bg-hero-light);
    color: var(--text-inverted);
}

    .edit-banner-hero .bg-decoration {
        position: absolute;
        border-radius: 50%;
        opacity: 0.3;
    }

    .edit-banner-hero .bg-blue {
        width: 200px;
        height: 200px;
        background: var(--primary-color);
        top: -50px;
        left: -50px;
    }

    .edit-banner-hero .bg-purple {
        width: 150px;
        height: 150px;
        background: var(--accent-color);
        bottom: -50px;
        right: -50px;
    }

.loading-pulsating {
    width: 100%;
    height: 100%;
    background-color: #f0f0f0;
    border-radius: 4px;
    animation: pulsate 0.5s infinite;
}

.toast-host {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1050; /* Ensure it's above most other content, Bulma's modal is 40 */
    width: 350px; /* Or your preferred width */
    max-width: 90%;
}

.custom-toast {
    display: flex; /* For aligning icon/message with delete button */
    align-items: flex-start; /* Align items to the top */
    justify-content: space-between; /* Pushes delete button to the right */
    padding: 0.75rem 1.25rem;
    margin-bottom: 0.75rem;
    border-radius: 0.375rem; /* Softer corners */
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
    color: #fff; /* Default text color, overridden by specific types */
    position: relative; /* For absolute positioning of delete button if needed */
    overflow: hidden; /* Ensures content doesn't spill due to border-left */
    border-left-width: 5px;
    border-left-style: solid;
    /* Basic transition for appearance */
    opacity: 0;
    transform: translateX(100%);
    animation: slideInRight 0.3s forwards, fadeOut 0.3s forwards 4.7s; /* 4.7s + 0.3s = 5s total before fade starts */
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
        transform: translateX(5%); /* Slight move out */
    }
}

.custom-toast-content {
    display: flex;
    align-items: center; /* Vertically align icon and message */
    flex-grow: 1; /* Takes available space */
    padding-right: 1.5rem; /* Space for the delete button */
}

.custom-toast-icon {
    margin-right: 0.75rem;
    font-size: 1.2em; /* Make icon slightly larger */
    flex-shrink: 0; /* Prevent icon from shrinking */
}

.custom-toast-message {
    word-break: break-word; /* Prevent long messages from breaking layout */
}

.custom-toast-delete.delete {
    /* Bulma's delete is already pretty good, but we ensure it's positioned well */
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background-color: rgba(0,0,0,0.2); /* Make it slightly more visible on colored backgrounds */
}

    .custom-toast-delete.delete:hover {
        background-color: rgba(0,0,0,0.3);
    }


/* --- Success --- */
.custom-toast.custom-toast--success {
    background-color: #28a745; /* A common success green */
    border-left-color: #1e7e34;
    color: #fff;
}

    .custom-toast.custom-toast--success .custom-toast-delete.delete {
        /* No specific style needed, inherits well */
    }


/* --- Info --- */
.custom-toast.custom-toast--info {
    background-color: #17a2b8; /* A common info blue */
    border-left-color: #117a8b;
    color: #fff;
}

/* --- Warning --- */
.custom-toast.custom-toast--warning {
    background-color: #ffc107; /* A common warning yellow */
    border-left-color: #d39e00;
    color: #212529; /* Dark text for better contrast on yellow */
}

    .custom-toast.custom-toast--warning .custom-toast-delete.delete {
        background-color: rgba(0,0,0,0.3);
    }

        .custom-toast.custom-toast--warning .custom-toast-delete.delete:hover {
            background-color: rgba(0,0,0,0.4);
        }


/* --- Error --- */
.custom-toast.custom-toast--error {
    background-color: #dc3545; /* A common error red */
    border-left-color: #b02a37;
    color: #fff;
}

/* If you want to keep using Bulma's notification colors, you can do this: */
/*
    .custom-toast.notification.is-success {
        border-left: 5px solid darken(hsl(141, 53%, 53%), 10%);
    }
    .custom-toast.notification.is-info {
        border-left: 5px solid darken(hsl(204, 86%, 53%), 10%);
    }
    .custom-toast.notification.is-warning {
        border-left: 5px solid darken(hsl(48, 100%, 67%), 10%);
        color: rgba(0,0,0,.7); // Bulma's default text color for warning
    }
    .custom-toast.notification.is-danger {
        border-left: 5px solid darken(hsl(348, 100%, 61%), 10%);
    }
    */

.forgot-password-card {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
}

#forgotPasswordForm .field:not(:last-child),
.card-content > *:not(:last-child) {
    margin-bottom: 15px;
}

.reset-password-card {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
}

.field:not(:last-child),
.card-content > *:not(:last-child) {
    margin-bottom: 15px;
}

#components-reconnect-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    background: rgba(10,10,10,0.2);
}

.reconnect-modal-box {
    min-width: 320px;
    max-width: 95vw;
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    box-shadow: 0 6px 32px rgba(10,10,10,0.16);
    border-radius: 8px;
    background: white;
}

.loader.is-loading {
    display: inline-block;
    border: 0.3em solid #dbdbdb;
    border-top: 0.3em solid #3273dc;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.hero-404 {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    background: #fff;
    overflow: hidden;
}

.hero-bg-decoration {
    position: absolute;
    border-radius: 50%;
    opacity: 0.18;
    z-index: 0;
}

.hero-bg-blue {
    width: 450px;
    height: 450px;
    left: -120px;
    top: 20px;
    background: linear-gradient(135deg, #2196f3 0%, #90caf9 100%);
}

.hero-bg-purple {
    width: 320px;
    height: 320px;
    right: -90px;
    bottom: -40px;
    background: linear-gradient(135deg, #7c3aed 0%, #c084fc 100%);
}

.animate-slide-in {
    animation: slideIn 0.8s cubic-bezier(0.18,0.89,0.32,1.28);
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gradient Button style for Bulma */
.button.is-gradient {
    background-image: linear-gradient(90deg, #2196f3 0%, #7c3aed 100%);
    color: #fff;
    border: none;
    transition: background 0.2s;
}

    .button.is-gradient:hover, .button.is-gradient:focus {
        background-image: linear-gradient(90deg, #7c3aed 0%, #2196f3 100%);
        color: #fff;
    }

/* emphasise the active navigation button */
.button.is-gradient-active {
    /* example: subtle border and slight scale */
    border: 2px solid var(--bulma-primary-h); /* or any colour you prefer */
    transform: scale(1.02);
}

    /* optional: remove gradient so the highlight colour stands out */
    .button.is-gradient-active::before {
        background-image: none; /* overrides gradient layer if you use one */
    }

/* highlight current page in the sidebar */
.menu a.is-active {
    border-left: 3px solid hsl(171, 100%, 41%); /* Bulma primary */
    color: hsl(171, 100%, 41%);
    font-weight: 600;
    background-color: transparent;
}

/* ---- LMH sidebar navigation ---- */
.lmh-sidebar {
    padding: 0; /* remove default box padding  */
    border-radius: 0.5rem;
}

.lmh-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lmh-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: hsl(0, 0%, 29%); /* Bulma grey-dark */
    text-decoration: none;
    border-left: 4px solid transparent;
    transition: background 0.12s ease, border-color 0.12s ease;
}

    .lmh-link:hover {
        background: hsl(0, 0%, 96%); /* Bulma background-light */
    }

    .lmh-link.is-active {
        border-left-color: hsl(171, 100%, 41%); /* Bulma primary */
        background: hsl(171, 100%, 96%);
        color: hsl(171, 100%, 27%);
        font-weight: 600;
    }

.profile-info {
    position: relative;
}

/* avatar wrapper */
.profile-avatar-wrapper {
    width: 128px;
    height: 128px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f5f5f5;
    box-shadow: 0 0 0 0.25rem rgba(50,50,50,.1);
}

    /* image style */
    .profile-avatar-wrapper img {
        width: 128px;
        height: 128px;
        object-fit: cover;
        border-radius: 50%;
        border: 4px solid #fff;
    }

    /* fallback icon */
    .profile-avatar-wrapper i {
        font-size: 4rem;
        color: #b5b5b5;
        line-height: 1;
    }

/* AI Model Radio Group Styles - Row-based Layout */
.ai-model-row-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem; /* Replaces negative margins and padding for spacing between items */
    margin-top: 0.5rem; /* Space below the main label "Select AI model" */
}

.ai-model-option {
    flex-grow: 1; /* Allow items to grow and fill space */
    flex-basis: calc(20% - 1rem); /* 5 items per row, accounting for 1rem gap. (100% / 5 = 20%) */
    box-sizing: border-box;
    border: 1px solid var(--border-color);
    border-radius: 8px; /* Increased from 6px for a softer look */
    padding: 0.75rem; /* Uniform padding */
    transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    display: flex; /* To align label.radio correctly */
    flex-direction: column; /* Stack radio/label if radio is outside text content wrapper */
    position: relative; /* For potential absolute positioning of elements if needed later */
}

    .ai-model-option:hover {
        border-color: var(--primary-color-darker);
        background-color: var(--bg-tertiary);
        box-shadow: var(--card-shadow-hover);
    }

    .ai-model-option:has(input[type="radio"]:checked) {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 2px var(--primary-color), var(--card-shadow-hover); /* More prominent selection */
        background-color: rgba(var(--primary-color-rgb), 0.05);
    }

    /* The label.radio now contains InputRadio and ai-model-content-wrapper */
    .ai-model-option label.radio {
        display: flex; /* Align InputRadio and text content horizontally */
        align-items: flex-start; /* Align radio button to the top of the text content */
        width: 100%;
        height: 100%; /* Make label fill the option for clickability */
        padding: 0;
        margin: 0;
        font-weight: normal;
        color: inherit;
        cursor: pointer;
    }

        .ai-model-option label.radio::before,
        .ai-model-option label.radio::after {
            display: none; /* Remove Bulma's default radio pseudo-elements */
        }

        /* InputRadio itself */
        .ai-model-option label.radio input[type="radio"] {
            margin-top: 0.15em; /* Align with the first line of text (rank/name) */
            margin-right: 0.65rem; /* Space between radio and text content */
            flex-shrink: 0;
            accent-color: var(--primary-color);
        }

    .ai-model-option .ai-model-content-wrapper {
        display: flex;
        flex-direction: column;
        justify-content: center; /* Vertically center content if option is taller */
        flex-grow: 1; /* Take remaining space */
        text-align: left; /* Default text alignment */
    }

    .ai-model-option .ai-model-header {
        display: flex;
        align-items: baseline; /* Align rank and name nicely */
        margin-bottom: 0.35rem; /* Space between header and description */
    }

    .ai-model-option .ai-model-rank {
        font-weight: 700; /* Bolder */
        color: var(--primary-color);
        margin-right: 0.4em; /* Slightly reduced margin */
        font-size: 0.9em; /* Slightly smaller to make name more prominent */
    }

    .ai-model-option .ai-model-name {
        font-weight: 600;
        color: var(--text-primary);
        font-size: 0.95em; /* Main size for the name */
        line-height: 1.3;
    }

    .ai-model-option .ai-model-description {
        font-size: 0.8em; /* Slightly smaller for more dense info */
        color: var(--text-secondary);
        line-height: 1.4;
        margin-top: 0;
        margin-left: 2em; /* Indent description to align with name */
    }

/* Responsive adjustments */
@media screen and (max-width: 1400px) { /* Adjust breakpoint as needed */
    .ai-model-option {
        flex-basis: calc(25% - 1rem); /* 4 items per row */
    }
}

@media screen and (max-width: 1023px) { /* Tablet */
    .ai-model-option {
        flex-basis: calc(33.333% - 1rem); /* 3 items per row */
        min-height: 110px;
    }
}

@media screen and (max-width: 768px) { /* Mobile */
    .ai-model-row-container {
        gap: 0.75rem; /* Smaller gap on mobile */
    }

    .ai-model-option {
        flex-basis: calc(50% - 0.75rem); /* 2 items per row */
        min-height: 100px;
        padding: 0.6rem;
    }

        .ai-model-option .ai-model-name {
            font-size: 0.9em;
        }

        .ai-model-option .ai-model-description {
            font-size: 0.75em;
        }
}

@media screen and (max-width: 480px) { /* Smaller Mobile */
    .ai-model-option {
        flex-basis: 100%; /* 1 item per row */
    }
}

.format-preview-square {
    height: 80px;
    width: 80px;
}

.format-preview-portrait {
    height: 100px;
    width: 80px;
}

.format-preview-landscape {
    height: 47px;
    width: 90px;
    max-width: 100%;
}

.format-preview-stories {
    height: 100px;
    width: 56px;
}

.has-background-light {
    background-color: #f5f5f5 !important;
    color: #0a0a0a !important;
}

html[data-theme="dark"] .has-background-light {
    background-color: #2b2b2b !important;
    color: #f5f5f5 !important;
}

    html[data-theme="dark"] .has-background-light .card-content,
    html[data-theme="dark"] .has-background-light p {
        color: inherit !important;
    }

:root {
    --preview-text: #0a0a0a;
}

html[data-theme="dark"] {
    --preview-text: #f5f5f5;
}

.overlay-preview-element {
    color: var(--preview-text);
}

/* Company and Admin Layout Styles */
.company-layout,
.admin-layout {
    display: flex;
    min-height: calc(100vh - 52px);
    background-color: var(--bg-primary);
}

.company-sidebar,
.admin-sidebar {
    width: 260px;
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    padding: 1.5rem 0;
    flex-shrink: 0;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.company-sidebar-header,
.admin-sidebar-header {
    padding: 0 1.5rem 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

    .company-sidebar-header .title,
    .admin-sidebar-header .title {
        margin-bottom: 0.25rem;
    }

    .company-sidebar-header .subtitle,
    .admin-sidebar-header .subtitle {
        margin-bottom: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.company-sidebar-menu,
.admin-sidebar-menu {
    display: flex;
    flex-direction: column;
}

.company-sidebar-item,
.admin-sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    font-weight: 500;
}

    .company-sidebar-item:hover,
    .admin-sidebar-item:hover {
        background-color: var(--bg-tertiary);
        color: var(--text-primary);
    }

    .company-sidebar-item.active,
    .admin-sidebar-item.active {
        background-color: rgba(var(--primary-color-rgb), 0.1);
        color: var(--primary-color);
        border-left-color: var(--primary-color);
        font-weight: 600;
    }

    .company-sidebar-item .icon,
    .admin-sidebar-item .icon {
        width: 1.25rem;
        text-align: center;
        flex-shrink: 0;
    }

/* Menu section styling */
.menu-section {
    margin-bottom: 0.5rem;
}

.menu-section-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
    margin-bottom: 0.25rem;
}

    .menu-section-label .icon {
        opacity: 0.7;
    }

/* Company-specific items styling */
.company-specific-item {
    padding-left: 2rem !important;
    opacity: 0.95;
}

    .company-specific-item:hover {
        opacity: 1;
    }

.company-content,
.admin-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

@media screen and (max-width: 768px) {
    .company-layout,
    .admin-layout {
        flex-direction: column;
    }

    .company-sidebar,
    .admin-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .company-sidebar-menu,
    .admin-sidebar-menu {
        flex-direction: row;
        overflow-x: auto;
    }

    .company-sidebar-item,
    .admin-sidebar-item {
        border-left: none;
        border-bottom: 3px solid transparent;
        white-space: nowrap;
        padding: 0.875rem 1rem;
    }

        .company-sidebar-item.active,
        .admin-sidebar-item.active {
            border-left-color: transparent;
            border-bottom-color: var(--primary-color);
        }

    .company-content,
    .admin-content {
        padding: 1rem;
    }
}

.company-sidebar {
    position: absolute;
    height: 100vh;
}

/* Hide footer on specific pages (e.g., Meta Designer) */
body.hide-footer .site-footer {
    display: none;
}