:root {
    --app-topbar-height: 56px;
    --app-bottomnav-height: 60px;
}

body {
    font-family: "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif;
    background-color: #f5f6f8;
}

body.has-app-nav {
    padding-top: var(--app-topbar-height);
    padding-bottom: calc(var(--app-bottomnav-height) + env(safe-area-inset-bottom, 0px));
}

/* Bottom nav is mobile-only (see .app-bottom-nav.d-md-none); desktop doesn't need the reserved space. */
@media (min-width: 768px) {
    body.has-app-nav {
        padding-bottom: 0;
    }
}

.guest-content {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* Bottom navigation: primary nav surface on phones, thumb-reachable */
.app-bottom-nav {
    height: var(--app-bottomnav-height);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.app-bottom-nav-link {
    flex: 1;
    text-align: center;
    padding: 0.65rem 0.25rem;
    font-size: 0.85rem;
    color: #495057;
    text-decoration: none;
}

.app-bottom-nav-link.active {
    color: #0d6efd;
    font-weight: bold;
}

/* Force LTR-direction data (phone numbers, dates, emails) to render in
   natural order when embedded inside RTL text, instead of being bidi-reordered. */
.ltr-text {
    direction: ltr;
    unicode-bidi: isolate;
    display: inline-block;
}

/* Status badges */
.badge-status {
    font-size: 0.8rem;
    padding: 0.4em 0.7em;
}

/* Lead cards (mobile-first list) */
.lead-card {
    display: block;
    color: inherit;
    text-decoration: none;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
}

.lead-card:hover {
    color: inherit;
    text-decoration: none;
}

.lead-card.overdue {
    border-inline-start: 4px solid #dc3545;
}

/* Large, thumb-friendly action buttons (call / whatsapp) */
.contact-actions .btn {
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
    font-size: 1.05rem;
}

/* Stat cards on the dashboard */
.stat-card {
    border-radius: 0.75rem;
}

.stat-card .stat-number {
    font-size: 1.9rem;
    font-weight: 700;
}
