/**
 * otk-base.css — minimal staging layout when Vite build is absent.
 *
 * Used by layouts/app.blade.php on staging before npm run build ships.
 * Provides .otk-* utility classes for QA consoles (cards, tables, alerts, forms).
 * Final Figma frontend will replace this with design-system CSS via Vite.
 *
 * Connects to: resources/views/layouts/app.blade.php
 */
/* Minimal layout styles when Vite build is not present (staging / early deploy). */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    line-height: 1.5;
    color: #0f172a;
    background: #f8fafc;
}

a {
    color: #1d4ed8;
}

a:hover {
    text-decoration: underline;
}

.otk-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem;
}

.otk-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.otk-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.otk-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.otk-card h2,
.otk-card h3 {
    margin-top: 0;
}

.otk-muted {
    color: #64748b;
    font-size: 0.9rem;
}

.otk-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    background: #e0f2fe;
    color: #0369a1;
}

.otk-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #0f172a;
    text-decoration: none;
    cursor: pointer;
    font: inherit;
}

.otk-btn-primary {
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
}

.otk-btn:hover {
    filter: brightness(0.97);
}

.otk-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .otk-grid-2 {
        grid-template-columns: 1fr 1fr;
    }
}

.otk-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.otk-table th,
.otk-table td {
    border-bottom: 1px solid #e2e8f0;
    padding: 0.5rem 0.4rem;
    text-align: left;
    vertical-align: top;
}

.otk-table th {
    background: #f1f5f9;
}

.otk-alert {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.otk-alert-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e3a8a;
}

.otk-alert-warn {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.otk-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.otk-alert-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.otk-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.otk-form input,
.otk-form select {
    width: 100%;
    max-width: 24rem;
    padding: 0.45rem 0.6rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.4rem;
    margin-bottom: 0.75rem;
}

.otk-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.85rem;
    background: #f1f5f9;
    padding: 0.1rem 0.35rem;
    border-radius: 0.25rem;
}

.otk-pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 0.75rem;
    border-radius: 0.5rem;
    overflow: auto;
    font-size: 0.8rem;
}
