:root {
    --app-primary: #1e3a8a;
    --app-secondary: #3b82f6;
    --app-accent: #f59e0b;
}

body.app-ui {
    font-family: 'Prompt', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body.app-surface-slate {
    background-color: #f1f5f9;
}

body.app-surface-soft {
    background-color: #f8fafc;
}

body.app-surface-gradient {
    background: #e2e8f0;
}

body.app-ui ::-webkit-scrollbar {
    display: none;
}

.app-shell {
    background: linear-gradient(180deg, #dbeafe 0%, #f8fafc 180px);
}

.app-shell-frame {
    min-height: 100vh;
    width: 100%;
    max-width: 28rem;
    margin: 0 auto;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
}

@media (min-width: 768px) {
    .app-shell-frame {
        max-width: none;
        box-shadow: none;
    }
}

.app-header-blue {
    background: rgba(30, 58, 138, 0.95);
    backdrop-filter: blur(14px);
}

.brand-badge {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.14);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.brand-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-wordmark {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-wordmark-compact {
    justify-content: center;
}

.app-header-light {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.bottom-nav {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    box-shadow: 0 -8px 30px rgba(15, 23, 42, 0.08);
}

.nav-item.active {
    color: var(--app-secondary);
}

.glass-card {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 10px 30px rgba(30, 41, 59, 0.08);
}

.feature-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}

.feature-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    border-radius: 999px;
    background: var(--feature-accent, #3b82f6);
}

.feature-card::after {
    content: "";
    position: absolute;
    right: -28px;
    top: -28px;
    width: 110px;
    height: 110px;
    border-radius: 999px;
    background: var(--feature-glow, rgba(59, 130, 246, 0.12));
}

.feature-card-blue {
    --feature-accent: #2563eb;
    --feature-glow: rgba(37, 99, 235, 0.14);
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.96), rgba(255, 255, 255, 0.96));
}

.feature-card-amber {
    --feature-accent: #d97706;
    --feature-glow: rgba(245, 158, 11, 0.16);
    background: linear-gradient(135deg, rgba(255, 251, 235, 0.96), rgba(255, 255, 255, 0.96));
}

.feature-card-emerald {
    --feature-accent: #059669;
    --feature-glow: rgba(16, 185, 129, 0.16);
    background: linear-gradient(135deg, rgba(236, 253, 245, 0.96), rgba(255, 255, 255, 0.96));
}

.feature-card-violet {
    --feature-accent: #7c3aed;
    --feature-glow: rgba(139, 92, 246, 0.16);
    background: linear-gradient(135deg, rgba(245, 243, 255, 0.96), rgba(255, 255, 255, 0.96));
}

.feature-card-cyan {
    --feature-accent: #0891b2;
    --feature-glow: rgba(6, 182, 212, 0.16);
    background: linear-gradient(135deg, rgba(236, 254, 255, 0.96), rgba(255, 255, 255, 0.96));
}

.card-orb {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.doc-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.06);
}

.doc-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    bottom: 18px;
    width: 4px;
    border-radius: 999px;
    background: var(--doc-accent, #3b82f6);
}

.doc-card-awaiting-deputy {
    --doc-accent: #f59e0b;
    background: linear-gradient(135deg, rgba(255, 251, 235, 0.96), rgba(255, 255, 255, 0.98));
}

.doc-card-awaiting-director {
    --doc-accent: #3b82f6;
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.96), rgba(255, 255, 255, 0.98));
}

.doc-card-forwarded {
    --doc-accent: #8b5cf6;
    background: linear-gradient(135deg, rgba(245, 243, 255, 0.96), rgba(255, 255, 255, 0.98));
}

.doc-card-assigned {
    --doc-accent: #10b981;
    background: linear-gradient(135deg, rgba(236, 253, 245, 0.96), rgba(255, 255, 255, 0.98));
}

.doc-card-draft {
    --doc-accent: #94a3b8;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.98), rgba(255, 255, 255, 0.98));
}

.flow-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.8rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.flow-pill-neutral {
    background: rgba(226, 232, 240, 0.9);
    color: #64748b;
}

.flow-pill-active {
    background: rgba(59, 130, 246, 0.14);
    color: #2563eb;
}

.flow-pill-done {
    background: rgba(16, 185, 129, 0.14);
    color: #059669;
}

.flow-arrow {
    color: #94a3b8;
    font-size: 0.75rem;
}

.file-upload-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    cursor: pointer;
}

.file-upload-wrapper input[type=file] {
    font-size: 100px;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    cursor: pointer;
}
