/* ===============================
   BASE LAYOUT
=================================*/

.app-body {
    background-color: #f8f9fa;
}

.app-btn-pill {
    border-radius: 999px;
}

.app-alert {
    border-radius: 0.85rem;
}

/* ===============================
   PUBLIC / MARKETING NAVBAR
=================================*/

.app-public-navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 14px 0 8px;
    background: rgba(248, 250, 252, 0.82);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
}

.app-public-navbar-inner {
    min-height: 58px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 10px 12px 10px 18px;

    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 18px;

    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.035),
        0 10px 28px rgba(15, 23, 42, 0.045);

    backdrop-filter: blur(10px);
}

.app-public-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    min-width: 0;
}

.app-public-logo {
    height: 25px;
    width: auto;
    display: block;
}

.app-public-nav-wrap {
    justify-self: center;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
}

.app-public-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    color: #64748b;
    font-size: 13px;
    font-weight: 650;
    letter-spacing: -0.012em;
    text-decoration: none;
    transition:
        color 140ms ease,
        background 140ms ease,
        box-shadow 140ms ease;
}

.app-public-nav-link:hover {
    color: #0f172a;
    background: #ffffff;
}

.app-public-nav-link.active {
    color: #3730a3;
    background: #ffffff;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.05),
        inset 0 0 0 1px #e6ebf1;
}

.app-public-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.app-public-login,
.app-public-cta {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.012em;
    text-decoration: none;
    transition:
        transform 140ms ease,
        background 140ms ease,
        border-color 140ms ease,
        color 140ms ease,
        box-shadow 140ms ease;
}

.app-public-login {
    padding: 0 12px;
    border-radius: 10px;
    color: #475569;
    background: transparent;
    border: 1px solid transparent;
    font-weight: 650;
    transition:
        color 140ms ease,
        background 140ms ease,
        border-color 140ms ease;
}

.app-public-login:hover {
    color: #0f172a;
    background: #f8fafc;
    border-color: #eef2f6;
}

.app-public-cta {
    min-height: 38px;
    padding: 0 15px;
    border-radius: 11px;
    color: #ffffff;
    background: #4f46e5;
    border: 1px solid #4f46e5;
    box-shadow: 0 6px 14px rgba(79, 70, 229, 0.16);
    transition:
        background 140ms ease,
        border-color 140ms ease,
        transform 140ms ease,
        box-shadow 140ms ease;
}

.app-public-cta:hover {
    color: #ffffff;
    background: #4338ca;
    border-color: #4338ca;
    transform: translateY(-1px);
}

.app-public-user-menu {
    min-height: 38px;
    border: 1px solid #e6ebf1;
    background: #ffffff;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 4px 5px;
    border-radius: 999px;
    font-family: inherit;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition:
        background 140ms ease,
        border-color 140ms ease,
        box-shadow 140ms ease;
}

.app-public-user-menu:hover {
    background: #f8fafc;
    border-color: #d8e0ea;
}

.app-public-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f1f0fe;
    color: #4338ca;
    font-size: 12px;
    font-weight: 800;
}

.app-public-user-name {
    max-width: 130px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.012em;
}

.app-public-user-chevron {
    font-size: 10px;
    color: #94a3b8;
}

/* Mobile */

@media (max-width: 991.98px) {
    .app-public-navbar {
        padding: 10px 0 6px;
    }

    .app-public-navbar-inner {
        grid-template-columns: 1fr auto;
        border-radius: 22px;
        padding: 10px;
    }

    .app-public-nav-wrap {
        grid-column: 1 / -1;
        order: 3;
        justify-self: stretch;
        overflow-x: auto;
        justify-content: flex-start;
        scrollbar-width: none;
    }

    .app-public-nav-wrap::-webkit-scrollbar {
        display: none;
    }

    .app-public-nav-link {
        white-space: nowrap;
    }

    .app-public-user-name {
        display: none;
    }
}

@media (max-width: 640px) {
    .app-public-logo {
        height: 22px;
    }

    .app-public-login {
        display: none;
    }

    .app-public-cta {
        min-height: 34px;
        padding: 0 12px;
        font-size: 12.5px;
    }
}

/* ===============================
   SHARED TYPOGRAPHY
=================================*/

.page-title {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #212529;
}

.page-subtitle {
    color: #6c757d;
}


/* ===============================
   SHARED CARDS
=================================*/

.app-section-card,
.empty-state-card {
    border: none;
    border-radius: 1rem;
}


/* ===============================
   DROPDOWNS
=================================*/

.action-menu {
    border: none;
    border-radius: 0.85rem;
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.08);
    padding: 0.45rem;
    min-width: 200px;
    z-index: 1000;
}

.action-menu .dropdown-item {
    border-radius: 0.55rem;
    padding: 0.6rem 0.75rem;
    font-weight: 500;
}

.action-menu .dropdown-item:hover {
    background-color: #f8f9fa;
}


/* ===============================
   BADGES
=================================*/

.status-badge {
    font-weight: 600;
    padding: 0.5rem 0.8rem;
}

.app-status-badge,
.app-priority-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.22rem 0.6rem;
    font-size: var(--ui-text-xs);
    font-weight: var(--ui-weight-medium);
    line-height: 1.4;
    white-space: nowrap;
}

.app-status-scheduled {
    background: var(--ui-neutral-100);
    color: var(--ui-text-soft);
}

.app-status-sent {
    background: var(--ui-brand-50);
    color: var(--ui-brand-700);
}

.app-status-responded {
    background: var(--ui-warning-50);
    color: var(--ui-warning-700);
}

.app-status-reviewed {
    background: var(--ui-success-50);
    color: var(--ui-success-700);
}

.app-status-delivered {
    background: var(--ui-info-50);
    color: var(--ui-info-700);
}

.app-status-closed {
    background: var(--ui-text);
    color: #ffffff;
}

.app-status-cancelled,
.app-status-no-show {
    background: var(--ui-danger-50);
    color: var(--ui-danger-700);
}

.app-priority-low {
    background: var(--ui-neutral-100);
    color: var(--ui-text-soft);
}

.app-priority-normal {
    background: var(--ui-brand-50);
    color: var(--ui-brand-700);
}

.app-priority-high {
    background: var(--ui-warning-50);
    color: var(--ui-warning-700);
}

.app-priority-urgent {
    background: var(--ui-danger-50);
    color: var(--ui-danger-700);
}


/* ===============================
   MODALS
=================================*/

.share-modal-content,
.qr-modal-content,
.delete-modal-content,
.signature-modal-content {
    border: none;
    border-radius: 1rem;
}