@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --brand-gold: #b99655;
    --brand-gold-dark: #9a7a3f;
    --brand-gold-light: #f7efd9;
    --brand-slate-dark: #2c343e;
    --brand-bg: #f4f5f8;
    --brand-dark-card: #1c1c1c;
    --brand-dark-border: #2a2a2a;
}

body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.text-brand-gold {
    color: var(--brand-gold);
}

.bg-brand-gold {
    background-color: var(--brand-gold);
}

.bg-brand-gold:hover,
.hover\:bg-brand-gold-dark:hover,
.hover\:bg-brand-goldDark:hover {
    background-color: var(--brand-gold-dark);
}

.text-brand-goldDark {
    color: var(--brand-gold-dark);
}

.bg-brand-goldLight,
.bg-brand-gold-light {
    background-color: var(--brand-gold-light);
}

.border-brand-gold {
    border-color: var(--brand-gold);
}

.app-drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.app-drawer {
    position: fixed;
    inset-block: 0;
    right: 0;
    z-index: 50;
    display: flex;
    width: 100%;
    max-width: 480px;
    flex-direction: column;
    background: #fff;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out, max-width 0.3s ease;
}

.app-drawer.app-drawer--expanded {
    max-width: min(720px, 100vw);
}

.toggle-switch {
    position: relative;
    display: inline-flex;
    height: 1.5rem;
    width: 2.75rem;
    flex-shrink: 0;
    cursor: pointer;
    align-items: center;
}

.toggle-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.toggle-switch span {
    display: block;
    height: 1.5rem;
    width: 2.75rem;
    border-radius: 9999px;
    background: #e4e4e7;
    transition: background-color 0.2s ease;
}

.toggle-switch span::after {
    content: "";
    position: absolute;
    top: 0.125rem;
    left: 0.125rem;
    height: 1.25rem;
    width: 1.25rem;
    border-radius: 9999px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
}

.toggle-switch input:checked + span {
    background: var(--brand-gold);
}

.toggle-switch input:checked + span::after {
    transform: translateX(1.25rem);
}

.toggle-switch input:focus-visible + span {
    outline: 2px solid var(--brand-gold);
    outline-offset: 2px;
}

.app-page {
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    padding: 0.25rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
}

.status-QUEUED,
.status-RETRY,
.status-AWAITING_COLUMN {
    background: #fef3c7;
    color: #92400e;
}

.status-RUNNING {
    background: #dbeafe;
    color: #1d4ed8;
}

.status-DONE {
    background: #dcfce7;
    color: #15803d;
}

.status-FAILED {
    background: #fee2e2;
    color: #b91c1c;
}

.status-NEEDS_INPUT,
.status-COMPLETED_WITH_ERRORS {
    background: #ffedd5;
    color: #c2410c;
}

.auth-panel-bg {
    background: #121212;
    min-height: 100vh;
}

.auth-panel-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    pointer-events: none;
}

.auth-panel-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        160deg,
        rgba(12, 12, 12, 0.55) 0%,
        rgba(12, 12, 12, 0.35) 50%,
        rgba(12, 12, 12, 0.65) 100%
    );
    pointer-events: none;
}

.auth-panel-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    height: 100%;
    padding: 3rem 3.5rem;
    color: #fff;
}

.tabs-nav {
    display: flex;
    gap: 0.25rem;
    overflow-x: auto;
    border-bottom: 1px solid #e4e4e7;
    padding: 0 0.25rem;
    background: transparent;
}

.tabs-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    white-space: nowrap;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: #71717a;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.85rem 1rem;
    cursor: pointer;
    margin-bottom: -1px;
}

.tabs-tab:hover {
    color: #18181b;
}

.tabs-tab.is-active {
    color: var(--brand-gold);
    border-bottom-color: var(--brand-gold);
    font-weight: 700;
}

.tabs-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.35rem;
    border-radius: 9999px;
    background: #e4e4e7;
    color: #52525b;
    font-size: 0.7rem;
    font-weight: 700;
}

.tabs-tab.is-active .tabs-count {
    background: var(--brand-gold-light);
    color: var(--brand-gold-dark);
}

.tabs-panel {
    display: none;
}

.tabs-panel.is-active {
    display: block;
}

button.is-loading,
input.is-loading {
    opacity: 0.85;
    cursor: wait;
    pointer-events: none;
}

form.is-submitting {
    pointer-events: none;
}

@keyframes app-spin {
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: app-spin 0.8s linear infinite;
}

