:root {
    --cafe1-primary: #00113a;
    --cafe1-primary-container: #002366;
    --cafe1-secondary: #003ec6;
    --cafe1-secondary-container: #0052fe;
    --cafe1-primary-fixed: #dbe1ff;
    --cafe1-primary-fixed-dim: #b3c5ff;
    --cafe1-surface: #f9f9f9;
    --cafe1-surface-low: #f3f3f4;
    --cafe1-surface-high: #e8e8e8;
    --cafe1-outline: #c5c6d2;
    --cafe1-text: #1a1c1c;
    --cafe1-muted: #444650;
    --cafe1-danger: #ba1a1a;
    --cafe1-success: #067647;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Plus Jakarta Sans", sans-serif;
    color: var(--cafe1-text);
    background: var(--cafe1-surface);
}

button,
input,
select,
textarea {
    font: inherit;
}

a {
    text-decoration: none;
}

.material-symbols-outlined {
    font-variation-settings:
        "FILL" 0,
        "wght" 500,
        "GRAD" 0,
        "opsz" 24;
}

.stitch-nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0.6rem 0.15rem;
    border-bottom: 2px solid transparent;
    color: var(--cafe1-muted);
    font-size: 0.875rem;
    font-weight: 600;
    transition:
        color 0.2s ease,
        border-color 0.2s ease;
}

.stitch-nav-link:hover,
.stitch-nav-link.is-active {
    color: var(--cafe1-secondary);
    border-color: var(--cafe1-secondary);
}

.stitch-btn-primary,
.stitch-btn-secondary,
.stitch-btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 44px;
    padding: 0.65rem 1.15rem;
    border-radius: 0.75rem;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 700;
    transition:
        transform 0.2s ease,
        filter 0.2s ease,
        background-color 0.2s ease;
}

.stitch-btn-primary {
    color: #ffffff;
    background: var(--cafe1-primary);
}

.stitch-btn-primary:hover {
    filter: brightness(1.15);
    transform: translateY(-1px);
}

.stitch-btn-secondary {
    color: var(--cafe1-secondary);
    background: #ffffff;
    border-color: var(--cafe1-secondary);
}

.stitch-btn-secondary:hover {
    background: #eef3ff;
}

.stitch-btn-danger {
    color: #ffffff;
    background: var(--cafe1-danger);
}

.stitch-side-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border: 0;
    border-radius: 0.7rem;
    color: #4b5563;
    background: transparent;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: left;
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.stitch-side-link:hover,
.stitch-side-link.is-active {
    color: #ffffff;
    background: var(--cafe1-secondary);
}

.stitch-side-link .material-symbols-outlined {
    font-size: 20px;
}

.stitch-card {
    border: 1px solid var(--cafe1-outline);
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 35, 102, 0.08);
}

.stitch-input {
    display: block;
    width: 100%;
    min-height: 46px;
    padding: 0.75rem 0.85rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.55rem;
    color: #0f172a;
    background: #ffffff;
    font-size: 0.875rem;
}

textarea.stitch-input {
    min-height: 110px;
    resize: vertical;
}

.stitch-input:focus {
    border-color: var(--cafe1-secondary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 62, 198, 0.12);
}

.stitch-input:disabled {
    color: #94a3b8;
    background: #f1f5f9;
    cursor: not-allowed;
}

.stitch-label {
    display: block;
    margin-bottom: 0.45rem;
    color: #334155;
    font-size: 0.8rem;
    font-weight: 700;
}

.stitch-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.stitch-table {
    width: 100%;
    border-collapse: collapse;
}

.stitch-table th {
    padding: 0.8rem;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #f8fafc;
}

.stitch-table td {
    padding: 0.9rem 0.8rem;
    border-top: 1px solid #e5e7eb;
    color: #334155;
    font-size: 0.84rem;
    vertical-align: top;
}

.stitch-table tbody tr:hover {
    background: #f8fafc;
}

.stitch-alert-success,
.stitch-alert-error,
.stitch-alert-warning {
    padding: 0.9rem 1rem;
    border: 1px solid;
    border-radius: 0.75rem;
    font-size: 0.875rem;
}

.stitch-alert-success {
    color: #067647;
    background: #ecfdf3;
    border-color: #abefc6;
}

.stitch-alert-error {
    color: #b42318;
    background: #fef3f2;
    border-color: #fecdca;
}

.stitch-alert-warning {
    color: #93370d;
    background: #fffaeb;
    border-color: #fedf89;
}

.stitch-grid-bg {
    background-color: #f9f9f9;
    background-image:
        radial-gradient(
            circle at 10% 15%,
            rgba(0, 82, 254, 0.1),
            transparent 32%
        ),
        radial-gradient(
            circle at 90% 80%,
            rgba(0, 35, 102, 0.12),
            transparent 35%
        );
}

.stitch-mobile-menu {
    display: none;
}

@media (max-width: 767px) {
    .stitch-mobile-menu {
        display: block;
    }

    .stitch-table {
        min-width: 750px;
    }
}