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

:root {
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background:
        radial-gradient(circle at top, rgba(124, 58, 237, 0.1), transparent 0, transparent 42%),
        #020617;
    color: #e5e7eb;
}

img {
    display: block;
}

.brand-logo {
    filter: drop-shadow(0 10px 24px rgba(124, 58, 237, 0.18));
}

.clean-shell,
.stat-card,
.list-card,
.quote-row {
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(15, 23, 42, 0.82);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.22);
}

.clean-shell {
    backdrop-filter: blur(10px);
}

.eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #c4b5fd;
}

.input-dark {
    border: 1px solid rgba(71, 85, 105, 0.72);
    background: rgba(2, 6, 23, 0.58);
    border-radius: 14px;
    padding: 0.78rem 0.9rem;
    color: #e2e8f0;
    outline: none;
}

.input-dark:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.14);
}

select.input-dark {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 2.4rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23cbd5e1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 0.95rem;
}

select.input-dark:focus,
select.input-dark:active {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.14);
    background-color: rgba(15, 23, 42, 0.94);
}

select.input-dark option {
    background-color: #0f172a;
    color: #e2e8f0;
}

.btn-primary,
.btn-ghost,
.clean-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 14px;
    padding: 0.78rem 1rem;
    font-weight: 600;
    transition: all 0.18s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: #fff;
}

.btn-primary:hover,
.btn-ghost:hover,
.clean-nav:hover {
    transform: translateY(-1px);
}

.btn-ghost {
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(255, 255, 255, 0.03);
    color: #e2e8f0;
}

.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(255, 255, 255, 0.04);
    color: #e2e8f0;
    transition: all 0.18s ease;
}

.icon-button:hover {
    transform: translateY(-1px);
    border-color: rgba(139, 92, 246, 0.45);
    background: rgba(124, 58, 237, 0.16);
}

.icon-button-danger {
    border-color: rgba(251, 113, 133, 0.35);
    color: #fecdd3;
}

.icon-button-danger:hover {
    border-color: rgba(251, 113, 133, 0.8);
    background: rgba(190, 24, 93, 0.2);
    color: #ffe4e6;
}

.modal-panel {
    max-height: min(90vh, 760px);
    overflow-y: auto;
}

.clean-nav {
    width: 100%;
    justify-content: flex-start;
    border: 1px solid rgba(71, 85, 105, 0.45);
    background: rgba(15, 23, 42, 0.65);
    color: #cbd5e1;
}

.clean-nav-active {
    border-color: rgba(139, 92, 246, 0.32);
    background: rgba(124, 58, 237, 0.16);
    color: #fff;
}

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    background: rgba(51, 65, 85, 0.7);
    padding: 0.35rem 0.7rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: #dbeafe;
}

.badge-success {
    background: rgba(16, 185, 129, 0.12);
    color: #86efac;
}

.badge-muted {
    background: rgba(148, 163, 184, 0.12);
    color: #cbd5e1;
}

.badge-info {
    background: rgba(14, 165, 233, 0.12);
    color: #7dd3fc;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.12);
    color: #fcd34d;
}

.badge-danger {
    background: rgba(244, 63, 94, 0.12);
    color: #fda4af;
}

.stat-card {
    padding: 1rem;
}

.list-card {
    padding: 1rem;
}

.quote-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
}

.timeline-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-card {
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(15, 23, 42, 0.72);
    border-radius: 18px;
    padding: 1rem 1.1rem;
}

.timeline-dot {
    flex: none;
    width: 0.72rem;
    height: 0.72rem;
    margin-top: 0.35rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #8b5cf6, #0ea5e9);
}

pre {
    white-space: pre-wrap;
    word-break: break-word;
}

h1, h2, h3 {
    letter-spacing: -0.03em;
}

p {
    line-height: 1.55;
}

.link-button {
    background: none;
    border: none;
    color: #8b5cf6;
    cursor: pointer;
    text-decoration: underline;
    font-weight: 600;
    padding: 0;
    transition: color 0.18s ease;
}

.link-button:hover:not(:disabled) {
    color: #7c3aed;
}

.link-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.results-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border: 1px solid rgba(139, 92, 246, 0.35);
    background: rgba(139, 92, 246, 0.1);
    color: #c4b5fd;
    border-radius: 10px;
    padding: 0.25rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
}

.results-badge:hover:not(:disabled) {
    border-color: rgba(139, 92, 246, 0.7);
    background: rgba(139, 92, 246, 0.2);
    color: #ddd6fe;
}

.results-badge:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


