body {
    font-family: "Inter", sans-serif;
}

body.gameplay-lock,
body.gameplay-lock * {
    -webkit-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important; /* iOS: disable copy/lookup callout */
    -webkit-tap-highlight-color: transparent; /* remove grey tap flash */
}

    /* Allow form fields to still behave normally if they ever show during lock */
    body.gameplay-lock input,
    body.gameplay-lock textarea,
    body.gameplay-lock [contenteditable="true"] {
        -webkit-user-select: text !important;
        user-select: text !important;
    }

    /* Reduce gesture handling on the game surface */
    body.gameplay-lock #gameOutput,
    body.gameplay-lock #gameFrame {
        touch-action: none; /* helps on modern browsers; iOS support varies */
    }

/* ---------------- GENERAL CSS ---------------- */

.gameIdeaInput {
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.dark .gameIdeaInput {
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.top-1\/2 {
    top: 45% !important; /*OVERRIDDING TAILWIND VERIONS*/
}

/* ---------------- LOADING ---------------- */
#loadingScreen {
    opacity: 1;
    margin: 0;
    padding: 0;
    height: 100vh;
    background: linear-gradient(135deg, #020617, #020617);
    transition: opacity 0.5s ease;
    overflow: hidden;
}

    #loadingScreen.is-fading {
        opacity: 0;
        animation: none;
    }

.loading-brand-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    width: min(980px, 92vw);
    margin: 0 auto;
    text-align: left;
}

.loading-brand-logo,
.loading-brand-copy {
    opacity: 0;
    will-change: transform, opacity;
}

.loading-brand-logo {
    flex: 0 0 auto;
    transform: translateY(-36px);
}

.loading-brand-copy {
    flex: 0 1 auto;
    transform: translateY(36px);
}

.loading-brand-logo.is-ready {
    animation: loadingLogoReveal 0.95s cubic-bezier(.22,1,.36,1) forwards;
}

.loading-brand-copy.is-ready {
    animation: loadingCopyReveal 0.95s cubic-bezier(.22,1,.36,1) 0.12s forwards;
}

.loading-img {
    display: block;
    width: clamp(140px, 16vw, 220px);
    height: auto;
    filter: drop-shadow(0 18px 40px rgba(15, 23, 42, 0.35));
}

.loading-brand-title {
    margin: 0;
    display: grid;
    gap: 0.1em;
    font-size: clamp(2rem, 4.8vw, 4.25rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    text-shadow: 0 10px 35px rgba(15, 23, 42, 0.35);
}

.loading-brand-copy .text-cyan {
    color: #67e8f9;
}

@keyframes loadingLogoReveal {
    from {
        opacity: 0;
        transform: translateY(-36px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes loadingCopyReveal {
    from {
        opacity: 0;
        transform: translateY(36px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .loading-brand-wrap {
        flex-direction: column;
        text-align: center;
        gap: 18px;
    }

    .loading-brand-logo,
    .loading-brand-copy {
        flex: none;
    }

    .loading-img {
        width: clamp(120px, 34vw, 180px);
    }

    .loading-brand-title {
        font-size: clamp(1.8rem, 8vw, 3rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .loading-brand-logo,
    .loading-brand-copy,
    .loading-brand-logo.is-ready,
    .loading-brand-copy.is-ready {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ---------------- SIDEBAR ---------------- */
.sidebar-btn {
    width: 52px;
    height: 52px;
}

    .sidebar-btn span {
        white-space: nowrap;
    }

/* Game actions block at top of sidebar */
.sidebar-game-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    /* animation defaults (hidden) */
    opacity: 0;
    transform: translateY(-10px);
    max-height: 0;
    margin-bottom: 0;
    overflow: hidden;
    pointer-events: none;
    transition: opacity 260ms ease, transform 260ms ease, max-height 320ms ease, margin-bottom 320ms ease;
}

    /* Visible state */
    .sidebar-game-actions.is-visible {
        opacity: 1;
        transform: translateY(0);
        max-height: 200px; /* enough for 2 buttons */
        margin-bottom: 6px;
        pointer-events: auto;
    }

/* Speech bubble to right of sidebar */
.suggest-bubble {
    position: fixed; /* sidebar is fixed on mobile; fixed keeps it stable */
    z-index: 60;
    left: 76px; /* approx: sidebar width + padding */
    top: 120px; /* will be set by JS for perfect alignment */
}

.suggest-bubble-inner {
    border-radius: 16px;
    padding: 14px;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgb(203 213 225);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.dark .suggest-bubble-inner {
    background: rgba(15,23,42,0.92);
    border-color: rgb(51 65 85);
}

/* Little “tail” */
.suggest-bubble-inner::before {
    content: "";
    position: absolute;
    left: -8px;
    top: 22px;
    width: 16px;
    height: 16px;
    transform: rotate(45deg);
    background: inherit;
    border-left: 1px solid rgba(203,213,225,1);
    border-bottom: 1px solid rgba(203,213,225,1);
}

.dark .suggest-bubble-inner::before {
    border-left-color: rgb(51 65 85);
    border-bottom-color: rgb(51 65 85);
}

/* Bubble animation */
.suggest-bubble.is-open .suggest-bubble-inner {
    animation: bubbleIn 220ms ease-out forwards;
}

@keyframes bubbleIn {
    from {
        opacity: 0;
        transform: translateX(-8px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}


/* ---------------- LANDING CARDS ---------------- */
.landing-card-modern {
    width: 320px;
    min-height: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08), 0 0 0 rgba(99, 102, 241, 0);
}

    .landing-card-modern:hover {
        transform: translateY(-10px);
        box-shadow: 0 22px 40px rgba(15, 23, 42, 0.14), 0 0 24px rgba(99, 102, 241, 0.18);
        border-color: rgb(99 102 241);
    }

.landing-card-icon {
    width: 52px;
    height: 52px;
}

.landing-card-cta {
    box-shadow: 0 8px 18px rgba(99, 102, 241, 0.22);
}

    .landing-card-cta:hover {
        transform: translateY(-1px);
    }

.dark .landing-card-modern {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28), 0 0 0 rgba(99, 102, 241, 0);
}

    .dark .landing-card-modern:hover {
        box-shadow: 0 24px 42px rgba(0, 0, 0, 0.36), 0 0 24px rgba(99, 102, 241, 0.22);
    }

/* ---------------- LOADING ANIMATIONS ---------------- */
@keyframes slideFadeLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideFadeRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-fade-left,
.slide-fade-up,
.slide-fade-right {
    opacity: 0;
    animation-fill-mode: forwards;
}

.slide-fade-left {
    animation: slideFadeLeft 0.9s ease-out forwards;
}

.slide-fade-up {
    animation: slideFadeUp 0.9s ease-out forwards;
}

.slide-fade-right {
    animation: slideFadeRight 0.9s ease-out forwards;
}

@keyframes idleFloat {
    0%,100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

.action-btn {
    padding: 1.5rem;
    border-radius: 1rem;
    font-family: "Manrope", sans-serif;
    font-weight: 700;
    letter-spacing: 0.02em;
    font-size: 0.75rem;
    background: rgba(255,255,255,0.9);
    border: 1px solid rgb(203 213 225);
    transition: transform 0.2s, border-color 0.2s;
}

.dark .action-btn {
    background: rgb(15 23 42);
    border-color: rgb(51 65 85);
}

.action-btn:hover {
    transform: scale(1.05);
    border-color: rgb(99 102 241);
}

.action-btn.is-tab-active,
.action-btn.is-selected {
    border-color: rgb(99 102 241) !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
    transform: none;
}

.action-btn-danger {
    padding: 1.5rem;
    border-radius: 1rem;
    font-family: "Manrope", sans-serif;
    font-weight: 700;
    letter-spacing: 0.02em;
    font-size: 0.75rem;
    background: rgba(239, 68, 68, 0.9);
    border: 1px solid rgb(220, 38, 38);
    color: white;
    transition: transform 0.2s, background-color 0.2s;
}

.dark .action-btn-danger {
    background: rgba(220, 38, 38, 0.9);
    border-color: rgb(185, 28, 28);
}

.action-btn-danger:hover {
    transform: scale(1.05);
    background: rgba(220, 38, 38, 1);
}

/* Wizard Slides */
.wizard-step {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding-top: 24px;
    padding-bottom: 40px;
}

/* Game type cards */
.game-type-card {
    height: 140px;
    border-radius: 1rem;
    background: linear-gradient(135deg, #0f172a, #334155);
    color: white;
    /*font-family: "Press Start 2P";
    font-size: 0.6rem;*/
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    transition: transform 0.2s;
}

.game-type-card {
    position: relative;
    overflow: hidden;
}

    /* Selected outline (you already added this) */
    .game-type-card.is-selected {
        outline: 3px solid rgba(99, 102, 241, 0.9);
        transform: scale(1.03);
    }

    /* Check icon */
    .game-type-card::after {
        content: "\f058"; /* Font Awesome check-circle */
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        position: absolute;
        top: 10px;
        right: 10px;
        width: 28px;
        height: 28px;
        border-radius: 999px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(99, 102, 241, 0.95);
        color: white;
        font-size: 14px;
        opacity: 0;
        transform: scale(0.5);
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    /* Show icon when selected */
    .game-type-card.is-selected::after {
        opacity: 1;
        transform: scale(1);
    }

    .game-type-card:hover {
        transform: scale(1.05);
    }

    .step4-option-card,
    .step4-section-card {
        min-height: 50px;
        height: auto;
        align-items: flex-end;
        justify-content: flex-start;
        text-align: left;
        border: 1px solid rgba(255,255,255,0.12);
    }

        .step4-option-card span,
        .step4-section-card span {
            position: relative;
            z-index: 1;
            line-height: 1.5;
        }

    .step4-option-card {
        background: linear-gradient(135deg, #0f172a, #334155);
    }

    .step4-section-card {
        background: linear-gradient(135deg, #0f172a, #334155);
    }

    #advancedStep4Settings summary::-webkit-details-marker {
        display: none;
    }

    #advancedStep4Settings[open] {
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.14);
    }

/* Asset slots */
.asset-slot {
    height: 140px;
    border: 2px dashed rgb(148 163 184);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background-repeat: no-repeat;
}

    .asset-slot.add-more {
        border-style: solid;
    }

.asset-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.asset-icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    border: 1px solid rgb(203 213 225);
    background: rgba(255,255,255,0.85);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

.dark .asset-icon-btn {
    border-color: rgb(51 65 85);
    background: rgba(15,23,42,0.75);
}

.asset-icon-btn:hover {
    transform: scale(1.05);
    border-color: rgb(99 102 241);
}

.asset-label {
    position: absolute;
    left: 12px;
    bottom: 12px;
    right: 12px;
    z-index: 1;
    padding: 8px 10px;
    border-radius: 14px;
    font-family: "Press Start 2P";
    font-size: 0.6rem;
    background: rgba(255,255,255,0.85);
    border: 1px solid rgb(203 213 225);
}

.dark .asset-label {
    background: rgba(15,23,42,0.75);
    border-color: rgb(51 65 85);
}

/* when removed */
.asset-slot.is-removed {
    opacity: 0.45;
    filter: grayscale(0.5);
}

    .asset-slot.is-removed::after {
        content: "Removed";
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-family: "Press Start 2P";
        font-size: 0.65rem;
        background: rgba(0,0,0,0.35);
        color: white;
    }


/* Modal animation states */
#assetModal {
    opacity: 0;
    transition: opacity 220ms ease;
}

    #assetModal.is-open {
        opacity: 1;
    }

/* Panel slides up/down (you can switch to left/right below) */
.asset-modal-panel {
    transform: translateY(20px);
    opacity: 0;
    transition: transform 260ms ease, opacity 260ms ease;
}

#assetModal.is-open .asset-modal-panel {
    transform: translateY(0);
    opacity: 1;
}

/* Optional: reduce motion */
@media (prefers-reduced-motion: reduce) {
    #assetModal, .asset-modal-panel {
        transition: none !important;
    }
}

/* Selected game type */
.game-type-card.is-selected {
    outline: 3px solid rgba(99, 102, 241, 0.9); /* indigo-ish */
    transform: scale(1.03);
}

.review-card {
    border: 1px solid rgb(203 213 225);
    border-radius: 1rem;
    padding: 1rem;
    background: rgba(255,255,255,0.75);
}

.dark .review-card {
    border-color: rgb(51 65 85);
    background: rgba(15,23,42,0.6);
}

.review-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.review-title {
    font-family: "Press Start 2P";
    font-size: 0.75rem;
}

.review-edit {
    font-size: 0.75rem;
    color: rgb(99 102 241);
}

.review-meta {
    font-size: 0.7rem;
    opacity: 0.8;
    margin-bottom: 0.25rem;
}

.review-row {
    display: grid;
    grid-template-columns: 1fr 180px;
    gap: 1rem;
    align-items: start;
}

.review-logo {
    width: 160px;
    height: 160px;
    border-radius: 1rem;
    object-fit: cover;
    border: 1px solid rgb(203 213 225);
}

.dark .review-logo {
    border-color: rgb(51 65 85);
}

.review-logo.empty {
    width: 160px;
    height: 160px;
    border-radius: 1rem;
    border: 2px dashed rgb(148 163 184);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .review-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.review-asset {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.review-thumb {
    width: 100%;
    height: 90px;
    border-radius: 0.9rem;
    object-fit: cover;
    border: 1px solid rgb(203 213 225);
}

.dark .review-thumb {
    border-color: rgb(51 65 85);
}

.review-thumb.empty {
    border: 2px dashed rgb(148 163 184);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    opacity: 0.8;
}

.review-label {
    font-size: 0.65rem;
    opacity: 0.85;
}

/* Panel transitions */
.panel {
    transition: opacity 220ms ease, transform 220ms ease;
}

.panel-hidden {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
}

.panel-shown {
    opacity: 1;
    transform: translateY(0);
}

/* Prevent animations from running before preload */
.preload-paused {
    animation-play-state: paused;
}

/* ---------------- OVERLAY LOADER FADE ---------------- */
#overlayLoader {
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
}

    #overlayLoader.is-open {
        opacity: 1;
        pointer-events: auto;
    }

/* Loading images default sizing */
.loading-img {
    width: 150px;
}

.loading-img--center {
    width: 240px;
}

/* Mobile: slightly smaller for better fit */
@media (max-width: 640px) {
    .loading-img {
        width: 110px;
    }

    .loading-img--center {
        width: 180px;
    }
}

/* Mobile sidebar becomes a full-width bottom sheet style panel */
@media (max-width: 768px) {

    #sidebar {
        width: 100vw;
        padding: 16px;
        justify-content: flex-start;
        align-items: stretch;
        /* Solid background with dark mode support */
        background: rgba(255,255,255,0.98);
    }

    .dark #sidebar {
        background: rgba(2,6,23,0.98); /* slate-950-ish */
    }

    /* Put buttons into a 2-column grid */
    #sidebarBaseButtons {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        width: 100%;
    }

    /* Same for game actions (when visible) */
    #sidebarGameActions {
        width: 100%;
    }

        #sidebarGameActions.is-visible {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 12px;
            max-height: none; /* override the “collapsed” logic */
            margin-bottom: 12px;
            overflow: visible;
        }

    /* Make buttons full-width in their grid cells */
    .sidebar-btn {
        width: 100%;
        height: 56px;
    }
}

@media (max-width: 768px) {
    .sidebar-btn span {
        display: none;
    }
}

/* Allow main content to scroll on mobile */
@media (max-width: 768px) {
    main {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 768px) {
    #landing {
        /* become a single column stack */
        grid-template-columns: 1fr !important;
        /* use full available height and allow scroll */
        height: 100%;
        overflow-y: auto;
        padding: 16px !important;
        gap: 14px !important;
        /* prevent horizontal clipping */
        justify-items: stretch;
    }

        #landing .landing-card {
            width: 100% !important;
        }

    .landing-card-modern {
        width: 100%;
        min-height: 260px;
    }

    #landingCardGrid {
        width: 100%;
    }
}

@media (max-width: 768px) {
    #sidebar {
        height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: space-between; /* distribute top/bottom space */
    }

        /* the wrapper that holds both action groups */
        #sidebar > .flex {
            height: 100%;
            width: 100%;
            justify-content: space-between; /* spreads groups */
        }

    /* Ensure the base buttons grid fills height nicely */
    #sidebarBaseButtons {
        flex: 1;
        align-content: stretch; /* helps grid fill height */
        grid-auto-rows: 1fr; /* each row takes equal height */
    }

        /* optional: keep buttons looking consistent */
        #sidebarBaseButtons .sidebar-btn {
            min-height: 100%; /* or 56px if you want tighter */
        }

            /* optional: keep buttons looking consistent */
            #sidebarBaseButtons .sidebar-btn i {
                font-size: 42px;
            }
}

/* Hide scrollbar but keep scrolling */
.auth-scroll::-webkit-scrollbar {
    width: 0px;
    height: 0px;
}

.auth-scroll {
    -ms-overflow-style: none; /* IE / Edge */
    scrollbar-width: none; /* Firefox */
}

/* Dark mode scrollbar styling */
.dark ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.dark ::-webkit-scrollbar-track {
    background: transparent;
}

.dark ::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.4);
    border-radius: 4px;
}

.dark ::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.6);
}

/* Firefox dark mode scrollbar */
.dark {
    scrollbar-color: rgba(148, 163, 184, 0.4) transparent;
}

/* --- Modal animation system --- */
.modal-root {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    /* hidden state */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 220ms ease, visibility 0ms linear 220ms;
}

    .modal-root.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: opacity 220ms ease, visibility 0ms linear 0ms;
    }

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.60);
    opacity: 0;
    transition: opacity 220ms ease;
}

.modal-root.is-open .modal-backdrop {
    opacity: 1;
}

.modal-panel {
    position: relative;
    z-index: 1;
    /* hidden state: slightly down + faded */
    opacity: 0;
    transform: translateY(18px) scale(0.98);
    transition: transform 260ms ease, opacity 220ms ease;
    will-change: transform, opacity;
}

.modal-root.is-open .modal-panel {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .modal-root,
    .modal-backdrop,
    .modal-panel {
        transition: none !important;
        transform: none !important;
    }
}

#advancedStep4Settings summary::-webkit-details-marker {
    display: none;
}

#advancedStep4Settings summary {
    user-select: none;
}

#advancedStep4Settings .advanced-step4-content-wrap {
    overflow: hidden;
    height: 0;
    opacity: 0;
    transition: height 280ms ease, opacity 220ms ease;
}

#advancedStep4Settings[open] .advanced-step4-content-wrap {
    opacity: 1;
}

#advancedStep4Settings .advanced-step4-content {
    transform: translateY(-8px);
    transition: transform 280ms ease;
}

#advancedStep4Settings[open] .advanced-step4-content {
    transform: translateY(0);
}

#advancedStep4Settings {
    transition: box-shadow 220ms ease, border-color 220ms ease;
}

    #advancedStep4Settings[open] {
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.14);
    }

@media (prefers-reduced-motion: reduce) {
    #advancedStep4Settings .advanced-step4-content-wrap,
    #advancedStep4Settings .advanced-step4-content,
    #advancedStep4Settings {
        transition: none !important;
    }
}

/* Sliding panel animations */
#websiteRefactorSection.expanded,
#websiteVersionsSection.expanded {
    max-height: 1000px;
}

#websiteRefactorSection,
#websiteVersionsSection {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

:root {
    --loading-robot-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 220'%3E%3Cdefs%3E%3ClinearGradient id='g1' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%23e2e8f0'/%3E%3Cstop offset='100%25' stop-color='%23cbd5e1'/%3E%3C/linearGradient%3E%3ClinearGradient id='g2' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%2360a5fa'/%3E%3Cstop offset='100%25' stop-color='%2322d3ee'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='110' cy='26' r='8' fill='%2322d3ee'/%3E%3Crect x='106' y='34' width='8' height='16' rx='4' fill='%2394a3b8'/%3E%3Crect x='42' y='48' width='136' height='112' rx='42' fill='url(%23g1)'/%3E%3Crect x='64' y='74' width='92' height='48' rx='24' fill='%230f172a'/%3E%3Ccircle cx='88' cy='98' r='10' fill='url(%23g2)'/%3E%3Ccircle cx='132' cy='98' r='10' fill='url(%23g2)'/%3E%3Cpath d='M92 118 Q110 132 128 118' fill='none' stroke='%2322d3ee' stroke-width='6' stroke-linecap='round'/%3E%3Ccircle cx='38' cy='98' r='16' fill='%2394a3b8'/%3E%3Ccircle cx='182' cy='98' r='16' fill='%2394a3b8'/%3E%3Ccircle cx='38' cy='98' r='8' fill='%230f172a'/%3E%3Ccircle cx='182' cy='98' r='8' fill='%230f172a'/%3E%3Crect x='88' y='160' width='44' height='22' rx='11' fill='%2394a3b8'/%3E%3Crect x='74' y='182' width='72' height='18' rx='9' fill='%230f172a' opacity='0.92'/%3E%3C/svg%3E");
}

/* Data Schemas Styling */
#dataSchemasList {
    display: flex;
    flex-direction: column;
}

.data-schema-card {
    transition: all 0.2s ease;
}

.data-schema-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dark .data-schema-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Data Viewer Modal */
#dataViewerModal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
}

#dataViewerModal .modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

#dataViewerModal table {
    width: 100%;
    border-collapse: collapse;
}

#dataViewerModal th {
    background-color: #f3f4f6;
    color: #374151;
    font-weight: 600;
    border-bottom: 2px solid #d1d5db;
}

#dataViewerModal .dark th {
    background-color: #1f2937;
    color: #e5e7eb;
    border-bottom-color: #4b5563;
}

#dataViewerModal td {
    border-bottom: 1px solid #e5e7eb;
    word-break: break-word;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
}

#dataViewerModal .dark td {
    border-bottom-color: #4b5563;
}

#dataViewerModal tr:last-child td {
    border-bottom: none;
}

/* Data Editor Modal */
#dataEditorModal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
}

#dataEditorModal .modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

/* Responsive Grid for Website Details */
@media (max-width: 1024px) {
    #websiteInfoPanel .grid {
        grid-template-columns: 1fr;
    }
}