﻿/* =============== ENHANCED DASHBOARD - BEAUTIFUL UI =============== */

.scv-wrap {
    width: 100%;
    max-width: 1800px; /* slightly wider prompt area */
    margin: 0 auto;
    padding: 0 0.5rem;
    position: relative;
    z-index: 1;
}

.scv-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

@@media (max-width: 992px) {
    .scv-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@@media (max-width: 600px) {
    .scv-row {
        grid-template-columns: 1fr;
    }
}

/* ---------- Hero Section with Animated Gradient Text ---------- */
.hero-section {
    padding: 1rem 0 0.75rem 0;
    text-align: center;
}

.hero-greeting {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 30%, var(--box-accent) 70%, #ea4c89 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerText 4s ease-in-out infinite;
    text-shadow: 0 0 80px rgba(108,92,231,0.3);
}

@@keyframes shimmerText {
    0%, 100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.6);
    font-weight: 400;
    margin-bottom: 0;
}

.wave {
    display: inline-block;
    animation: waveHand 2.5s ease-in-out infinite;
    transform-origin: 70% 70%;
    font-size: 2rem;
}

@@keyframes waveHand {
    0%, 100% {
        transform: rotate(0deg);
    }

    10% {
        transform: rotate(14deg);
    }

    20% {
        transform: rotate(-8deg);
    }

    30% {
        transform: rotate(14deg);
    }

    40% {
        transform: rotate(-4deg);
    }

    50%, 100% {
        transform: rotate(0deg);
    }
}

/* ---------- Section Labels ---------- */
.section-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0.75rem;
}

    .section-label span {
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 2px;
        color: var(--text);
    }

    .section-label::after {
        content: '';
        flex: 1;
        height: 1px;
        background: linear-gradient(90deg, var(--text), transparent);
    }

/* ---------- Glassmorphism Cards / Quick Actions ---------- */
.scv-card-action {
    display: flex;
    gap: 14px;
    align-items: center;
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.06);
    color: var(--box-fg);
    border-radius: 21px;
    padding: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

html[data-theme="light"] .scv-card-action {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.scv-card-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    transition: left 0.6s ease;
}

.scv-card-action:hover::before {
    left: 100%;
}

.scv-card-action::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(108,92,231,0), rgba(234,76,137,0));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.scv-card-action:hover::after {
    background: linear-gradient(135deg, rgba(108,92,231,0.5), rgba(234,76,137,0.5));
    opacity: 1;
}

.scv-card-action:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.25), 0 0 40px rgba(108,92,231,0.1);
    background: rgba(255,255,255,0.06);
}

/* Card shuffle animations */
.scv-card-action.card-fade-out {
    animation: cardFadeOut 0.35s ease-out forwards;
}

.scv-card-action.card-fade-in {
    animation: cardFadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@@keyframes cardFadeOut {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
}

@@keyframes cardFadeIn {
    0% {
        opacity: 0;
        transform: translateY(25px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.scv-card-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(108,92,231,0.25) 0%, rgba(234,76,137,0.2) 100%);
    font-size: 24px;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

    .scv-card-icon i {
        font-size: 1.25rem;
        opacity: .95;
    }

.scv-card-action:hover .scv-card-icon {
    transform: scale(1.1) rotate(8deg);
    box-shadow: 0 12px 30px rgba(108,92,231,0.3), inset 0 1px 0 rgba(255,255,255,0.2);
}

.scv-card-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.scv-card-action:hover .scv-card-title {
    color: var(--box-accent);
}


.scv-card-desc {
    font-size: .9rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.4;
}

/* ---------- Main Panel with Glow Effect ---------- */
.scv-panel {
    background: rgba(12,15,25,0.85);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255,255,255,0.06);
    color: var(--box-fg);
    border-radius: 24px;
    width: 100%;
    padding: 0;
    position: relative;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
}

    .scv-panel::before {
        content: '';
        position: absolute;
        inset: -1px;
        border-radius: 24px;
        padding: 1px;
        background: linear-gradient(135deg, rgba(108,92,231,0.3), transparent 50%, rgba(234,76,137,0.3));
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        opacity: 0;
        transition: opacity 0.4s ease;
        pointer-events: none;
    }

    .scv-panel:focus-within::before {
        opacity: 1;
    }

    .scv-panel:focus-within {
        box-shadow: 0 30px 60px rgba(0,0,0,0.3), 0 0 60px rgba(108,92,231,0.15);
    }

/* ---------- Enhanced Textarea ---------- */
.scv-textarea {
    background: transparent;
    color: #fff;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    min-height: 180px;
    width: 100%;
    display: block;
    border-radius: 24px 24px 0 0;
    padding: 20px 24px;
    font-size: 1.05rem;
    line-height: 1.6;
    transition: all 0.3s ease;
    resize: none;
}

    .scv-textarea::placeholder {
        color: rgba(255,255,255,0.35);
    }

    .scv-textarea:focus {
        background: rgba(255,255,255,0.02);
        outline: none;
        box-shadow: none;
    }

/* Typewriter placeholder effect */
.scv-textarea-wrap {
    position: relative;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.typewriter-placeholder {
    position: absolute;
    top: 24px;
    left: 28px;
    pointer-events: none;
    color: var(--box-accent);
    font-size: 1.15rem;
    font-family: inherit;
    z-index: 1;
    white-space: nowrap;
    overflow: hidden;
    opacity: 0.85;
}

    .typewriter-placeholder .cursor {
        display: inline-block;
        width: 2px;
        height: 1.25em;
        background: var(--box-accent);
        margin-left: 3px;
        vertical-align: text-bottom;
        animation: blink-cursor 0.85s infinite;
        box-shadow: 0 0 15px var(--box-accent);
    }

@@keyframes blink-cursor {
    0%, 50% {
        opacity: 1;
    }

    51%, 100% {
        opacity: 0;
    }
}

.scv-textarea.has-content + .typewriter-placeholder,
.scv-textarea:focus + .typewriter-placeholder {
    display: none;
}

/* ---------- Enhanced Buttons ---------- */
.scv-btn-ghost {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.8);
    border-radius: 12px;
    padding: 11px 20px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

    .scv-btn-ghost:hover {
        background: rgba(255,255,255,0.1);
        border-color: rgba(255,255,255,0.2);
        color: #fff;
        transform: translateY(-2px);
    }

.scv-btn-gradient {
    background: linear-gradient(135deg, rgba(108,92,231,0.9) 0%, rgba(234,76,137,0.9) 100%);
    color: #fff;
    border: 0;
    border-radius: 12px;
    padding: 11px 22px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(108,92,231,0.25);
    position: relative;
    overflow: hidden;
}

/* Dropdown-style selectors (Project Type / Layout / Colors) */
.scv-dd {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: 42px;
    padding: 0 14px;
    min-width: 190px;
    border-radius: 12px;
    /* Match purple button theme (non-button layout, same palette) */
    background: linear-gradient(135deg, rgba(108,92,231,0.72) 0%, rgba(168,85,247,0.62) 100%);
    color: #fff;
    border: 1px solid rgba(168,85,247,0.55);
    box-shadow: 0 6px 22px rgba(108,92,231,0.22);
    font-weight: 650;
    font-size: 0.9rem;
    line-height: 1;
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease, filter .15s ease;
    cursor: pointer;
    user-select: none;
}

    .scv-dd::after {
        content: "▴";
        font-size: 0.8rem;
        opacity: 0.9;
        transform: translateY(-1px);
        text-shadow: 0 1px 0 rgba(0,0,0,0.25);
    }

    .scv-dd:hover {
        filter: brightness(1.03);
        border-color: rgba(168,85,247,0.72);
        box-shadow: 0 10px 30px rgba(108,92,231,0.26);
        transform: translateY(-1px);
    }

    .scv-dd:active {
        transform: translateY(0px);
        box-shadow: 0 6px 18px rgba(108,92,231,0.22);
    }

    .scv-dd[aria-expanded="true"] {
        filter: brightness(1.04);
        border-color: rgba(168,85,247,0.85);
        box-shadow: 0 12px 34px rgba(108,92,231,0.30);
    }

    .scv-dd:focus {
        outline: none;
    }

    .scv-dd:focus-visible {
        outline: 2px solid rgba(168,85,247,0.65);
        outline-offset: 2px;
    }

.scv-btn-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.scv-btn-gradient:hover::before {
    left: 100%;
}

.scv-btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(108,92,231,0.4);
    color: #fff;
}

.scv-btn-gradient:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none;
}

/* ---------- Compact Action Launcher ---------- */
.scv-action-launcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.scv-action-trigger {
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.05);
    color: #fff;
    box-shadow: 0 10px 28px rgba(0,0,0,0.24), inset 0 1px 0 rgba(255,255,255,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    padding: 0;
}

    .scv-action-trigger i {
        font-size: 1.22rem;
        line-height: 1;
    }

    .scv-action-trigger:hover {
        transform: translateY(-2px);
        background: rgba(255,255,255,0.08);
        border-color: rgba(168,85,247,0.45);
        color: #fff;
        box-shadow: 0 16px 36px rgba(0,0,0,0.32), 0 0 0 1px rgba(168,85,247,0.12) inset;
    }

    .scv-action-trigger[aria-expanded="true"] {
        background: linear-gradient(135deg, rgba(108,92,231,0.84) 0%, rgba(168,85,247,0.78) 55%, rgba(236,72,153,0.7) 100%);
        border-color: rgba(168,85,247,0.7);
        box-shadow: 0 18px 40px rgba(108,92,231,0.34);
    }

.scv-action-menu {
    position: absolute;
    left: -24px;
    bottom: calc(100% + 6px);
    width: min(290px, calc(100vw - 36px));
    padding: 10px;
    border-radius: 20px;
    background: rgba(18,23,34,0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 26px 64px rgba(0,0,0,0.48), 0 0 0 1px rgba(255,255,255,0.03) inset;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.98);
    transform-origin: left bottom;
    transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
    z-index: 1200;
    overflow-y: auto;
    max-height: 330px;
}

    .scv-action-menu.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }

.scv-action-menu-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px 12px;
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.scv-action-menu-head-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(108,92,231,0.22), rgba(236,72,153,0.18));
    color: #fff;
    flex: 0 0 auto;
}

.scv-action-menu-head-copy {
    min-width: 0;
}

.scv-action-menu-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
}

.scv-action-menu-subtitle {
    font-size: 0.77rem;
    margin-top: 2px;
    line-height: 1.25;
}

.scv-action-items {
    display: grid;
    gap: 6px;
}

.scv-action-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    border: 1px solid transparent;
    background: transparent;
    color: rgba(255,255,255,0.92);
    border-radius: 14px;
    padding: 11px 12px;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

    .scv-action-item:hover:not(:disabled) {
        background: rgba(255,255,255,0.06);
        border-color: rgba(255,255,255,0.08);
        color: #fff;
        transform: translateX(2px);
    }

    .scv-action-item:disabled {
        opacity: 0.42;
        cursor: not-allowed;
        box-shadow: none;
    }

.scv-action-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.92);
    flex: 0 0 auto;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

    .scv-action-icon i {
        font-size: 1rem;
        line-height: 1;
    }

.scv-action-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1 1 auto;
}

.scv-action-label {
    color: var(--text);
    font-size: 0.93rem;
    font-weight: 650;
    line-height: 1.2;
}

.scv-action-desc {
    color: var(--text);
    font-size: 0.78rem;
    margin-top: 2px;
    line-height: 1.25;
}

.scv-action-item-primary {
    background: linear-gradient(135deg, rgba(108,92,231,0.26) 0%, rgba(168,85,247,0.18) 52%, rgba(236,72,153,0.18) 100%);
    border-color: rgba(168,85,247,0.3);
    box-shadow: 0 10px 28px rgba(108,92,231,0.16);
}

    .scv-action-item-primary .scv-action-icon {
        background: linear-gradient(135deg, rgba(108,92,231,0.28), rgba(236,72,153,0.18));
    }

    .scv-action-item-primary:hover:not(:disabled) {
        background: linear-gradient(135deg, rgba(108,92,231,0.34) 0%, rgba(168,85,247,0.24) 52%, rgba(236,72,153,0.24) 100%);
        border-color: rgba(168,85,247,0.42);
        box-shadow: 0 16px 34px rgba(108,92,231,0.2);
    }

.scv-inline-status {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    color: rgba(255,255,255,0.52);
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

    .scv-inline-status.is-ok {
        color: rgba(98, 214, 152, 0.95);
    }

    .scv-inline-status.is-warn {
        color: rgba(255, 204, 102, 0.95);
    }

    .scv-inline-status.is-err {
        color: rgba(255, 120, 120, 0.95);
    }

@@keyframes gradientPulse {
    0%, 100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@@media (max-width: 768px) {
    .scv-action-menu {
        left: 0;
        right: auto;
        width: min(280px, calc(100vw - 32px));
    }
}

/* ---------- Enhanced Popovers / Pickers ---------- */
.scv-pop {
    position: absolute;
    z-index: 1050;
    background: rgba(15,18,30,0.98);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.03) inset;
    display: none;
    max-height: 420px;
    overflow: auto;
    color: var(--box-fg);
}

    .scv-pop.show {
        display: block;
        animation: popIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }

@@keyframes popIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.scv-type {
    width: 460px;
    padding: 12px;
}

.scv-layout {
    width: 560px;
    padding: 14px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.scv-colors {
    width: 460px;
    padding: 14px;
}

.scv-type .hdr {
    padding: 10px 12px 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.4);
}

.scv-type .opt {
    display: flex;
    gap: 14px;
    padding: 14px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

    .scv-type .opt:hover {
        background: rgba(255,255,255,0.06);
        border-color: rgba(255,255,255,0.08);
        transform: translateX(4px);
    }

.scv-type .ic {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(108,92,231,0.2), rgba(234,76,137,0.15));
    font-size: 20px;
    flex-shrink: 0;
}

.scv-type .ttl {
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    margin-bottom: 2px;
}

.scv-type .dsc {
    font-size: .85rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.4;
}

.lyt-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 14px;
    cursor: pointer;
    color: var(--box-fg);
    transition: all 0.25s ease;
}

    .lyt-card:hover {
        background: rgba(255,255,255,0.08);
        border-color: rgba(255,255,255,0.12);
        transform: translateY(-3px);
    }

.lyt-thumb {
    height: 65px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(108,92,231,0.3), rgba(234,76,137,0.2));
    margin-bottom: 12px;
}

.lyt-title {
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
}

.lyt-note {
    font-size: .85rem;
    color: rgba(255,255,255,0.5);
}

.pal {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
}

    .pal:hover {
        background: rgba(255,255,255,0.07);
        border-color: rgba(255,255,255,0.1);
    }

    .pal:last-child {
        margin-bottom: 0;
    }

    .pal h6 {
        margin: 0 0 12px 0;
        font-size: 1rem;
        font-weight: 700;
        color: #fff;
    }

.sw {
    width: 36px;
    height: 26px;
    border-radius: 8px;
    display: inline-block;
    margin-right: 8px;
    border: 2px solid rgba(255,255,255,0.1);
    cursor: pointer;
    transition: all 0.2s ease;
}

    .sw:hover {
        transform: scale(1.15);
        border-color: rgba(255,255,255,0.4);
    }

    .sw:last-child {
        margin-right: 0;
    }

/* ---------- Actions Bar ---------- */
.scv-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding: 18px 28px 22px;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: rgba(0,0,0,0.15);
    border-radius: 0 0 24px 24px;
}

.char {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.anchor {
    position: relative;
}

/* ---------- Responsive Adjustments ---------- */
@@media (max-width: 768px) {
    .hero-greeting {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .scv-actions {
        padding: 14px 18px 18px;
    }

    .scv-textarea {
        padding: 18px 20px;
        font-size: 1rem;
    }

    .typewriter-placeholder {
        top: 18px;
        left: 20px;
        font-size: 1rem;
    }
}

/* ---------- No Scrollbar - Full Viewport ---------- */
html, body {
    overflow: hidden;
    height: 100%;
    margin: 0;
    padding: 0;
}

/* ---------- Dashboard Page Flex Layout ---------- */
.dashboard-page {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 60px); /* Account for navbar */
    overflow: hidden;
    position: relative;
}

    .dashboard-page .scv-wrap {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        padding-bottom: 1rem;
    }

    .dashboard-page .scv-panel {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        min-height: 0;
        overflow: hidden;
    }

        .dashboard-page .scv-panel .scv-textarea-wrap {
            flex: 1 1 auto;
            min-height: 0;
            overflow: hidden;
        }

        .dashboard-page .scv-panel .scv-textarea {
            flex: 1 1 auto;
            min-height: 200px;
            resize: none;
            height: 100%;
        }

        .dashboard-page .scv-panel .scv-actions {
            flex-shrink: 0;
        }


/* === Unified control height (buttons + dropdown triggers) === */
:root {
    --qc-control-h: 44px;
    --qc-control-px: 14px;
    --qc-control-radius: 12px;
    --qc-control-font: 600 14px/1.1 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Apply same height/typography across primary/secondary buttons and dropdown triggers */
.qc-primary,
.qc-secondary,
.qc-dd-btn {
    height: var(--qc-control-h);
    min-height: var(--qc-control-h);
    padding: 0 var(--qc-control-px);
    border-radius: var(--qc-control-radius);
    font: var(--qc-control-font);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    line-height: 1.1;
    white-space: nowrap;
}

    /* Ensure dropdown trigger text aligns like buttons */
    .qc-dd-btn .qc-dd-label {
        display: inline-flex;
        align-items: center;
        line-height: 1.1;
    }

    /* Icon sizing consistency */
    .qc-primary .qc-icon,
    .qc-secondary .qc-icon,
    .qc-dd-btn .qc-dd-caret {
        width: 16px;
        height: 16px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
    }



/* === Ensure equal heights for Generate/Enhance buttons and dropdown selectors === */
:root {
    --scv-control-h: 42px;
    --scv-control-radius: 12px;
    --scv-control-px: 18px;
    --scv-control-font: 600 0.9rem/1 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.scv-btn-gradient,
.scv-dd {
    height: var(--scv-control-h);
    min-height: var(--scv-control-h);
    padding: 0 var(--scv-control-px);
    border-radius: var(--scv-control-radius);
    font: var(--scv-control-font);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    white-space: nowrap;
}

/* Keep dropdown's left text + right caret layout while matching height */
.scv-dd {
    justify-content: space-between;
    min-width: 190px;
}

/* ---- Hide right-side selectors (markup kept) ---- */
.scv-dd-hidden {
    display: none !important;
}

/* ---- Claude-style round send / Generate button ---- */
.scv-send-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    background: #6c5ce7;
    border: none;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 18px rgba(108,92,231,0.45);
}

    .scv-send-btn:hover:not(:disabled) {
        background: #7d70f0;
        transform: scale(1.08);
        box-shadow: 0 6px 26px rgba(108,92,231,0.6);
    }

    .scv-send-btn:active:not(:disabled) {
        transform: scale(0.96);
    }

    .scv-send-btn:disabled {
        background: rgba(108,92,231,0.35);
        cursor: not-allowed;
        transform: none !important;
        box-shadow: none;
    }

    .scv-send-btn .send-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        pointer-events: none;
    }

    .scv-send-btn .send-spin {
        display: none;
        align-items: center;
        justify-content: center;
    }

    .scv-send-btn.is-busy .send-icon {
        display: none;
    }

    .scv-send-btn.is-busy .send-spin {
        display: flex;
    }

@@keyframes scvSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.send-spin-ring {
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(255,255,255,0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: scvSpin 0.7s linear infinite;
}

html[data-theme="light"] .scv-card-icon, html[data-theme="light"] .scv-panel {
    color: #374151;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

html[data-theme="light"] .scv-card-action:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .scv-card-title, html[data-theme="light"] .scv-card-desc {
    color: var(--text);
}

html[data-theme="light"] .dashboard-page .scv-panel .scv-textarea {
    background-color: #ffffff !important;
}

html[data-theme="light"] .scv-actions {
    background: var(--dull-background);
}

html[data-theme="light"] textarea.form-control {
    color: var(--text) !important;
}

html[data-theme="light"] .scv-action-menu.show {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text) !important;
    border: 1px solid rgb(16 14 14 / 6%);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.06) inset, 0 14px 28px rgba(0, 0, 0, 0.22);
}

html[data-theme="light"] .scv-action-menu-head-icon, html[data-theme="light"] .scv-action-icon {
    color: #374151;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03)
}
