/* ============ BREADCRUMBS ============ */
.breadcrumbs { padding: 14px 0; font-size: 0.82rem; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs .sep { color: var(--text-muted); margin: 0 2px; font-size: 0.65rem; }
.breadcrumbs .current { color: var(--text-secondary); font-weight: 500; }

/* ============ FORMS ============ */
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    margin-bottom: 7px;
    font-weight: 500;
    font-size: 0.84rem;
    color: var(--text-primary);
    letter-spacing: 0.01em;
}
.form-group input,
.form-group textarea,
.form-group select,
.form-control {
    width: 100%;
    padding: 11px 16px;
    background: var(--bg-input);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    transition: var(--transition);
    line-height: 1.5;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus,
.form-control:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 4px var(--focus-ring);
    background: var(--bg-card);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-card);
}

/* ============ SEARCH MODAL ============ */
.search-overlay {
    position: fixed; inset: 0;
    background: rgba(26,26,46,0.45);
    backdrop-filter: blur(12px);
    z-index: 5000;
    display: flex; align-items: flex-start; justify-content: center;
    padding-top: 14vh;
    opacity: 0; pointer-events: none;
    transition: opacity 0.2s ease;
}
.search-overlay.active { opacity: 1; pointer-events: all; }
.search-modal {
    width: 90%; max-width: 540px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: translateY(-12px);
    transition: transform 0.2s ease;
}
.search-overlay.active .search-modal { transform: translateY(0); }
.search-input-wrap { display: flex; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--border-color); gap: 10px; }
.search-input-wrap i { color: var(--text-muted); font-size: 0.95rem; flex-shrink: 0; }
.search-input-wrap input { flex: 1; background: none; border: none; color: var(--text-primary); font-size: 1rem; font-family: var(--font-primary); outline: none; }
.search-input-wrap input::placeholder { color: var(--text-muted); }
.voice-btn { background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 6px; border-radius: 50%; transition: var(--transition); }
.voice-btn:hover { color: var(--primary); background: rgba(139,105,20,0.08); }
.voice-btn.listening { color: var(--danger); animation: pulse 1s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(192,57,43,0.4); } 50% { box-shadow: 0 0 0 8px rgba(192,57,43,0); } }
.search-close { background: none; border: none; color: var(--text-muted); font-size: 1.4rem; cursor: pointer; padding: 0 4px; line-height: 1; }
.search-close:hover { color: var(--text-primary); }
.search-results { max-height: 380px; overflow-y: auto; padding: 8px; }
.search-result-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--text-primary); transition: background 0.15s ease; }
.search-result-item:hover { background: var(--bg-section-alt); }
.search-result-item .icon { width: 34px; height: 34px; background: rgba(26,26,46,0.06); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--primary); flex-shrink: 0; }
.search-result-item .info h4 { font-size: 0.9rem; margin-bottom: 2px; font-family: var(--font-primary); font-weight: 500; }
.search-result-item .info p { font-size: 0.78rem; color: var(--text-muted); }
.search-empty { padding: 32px 16px; text-align: center; color: var(--text-muted); font-size: 0.87rem; }
.search-hint { display: flex; gap: 14px; padding: 8px 18px; border-top: 1px solid var(--border-color); font-size: 0.7rem; color: var(--text-muted); }
.search-hint kbd { background: var(--bg-input); padding: 2px 6px; border-radius: 4px; border: 1px solid var(--border-color); font-size: 0.68rem; font-family: var(--font-primary); }

/* ============ WHATSAPP FLOAT ============ */
.whatsapp-float {
    position: fixed;
    right: 18px; bottom: 18px;
    width: 52px; height: 52px;
    background: #25D366;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white;
    font-size: 1.6rem;
    box-shadow: 0 4px 20px rgba(37,211,102,0.35);
    z-index: 900;
    transition: transform 0.3s ease;
}
.whatsapp-float:hover { transform: scale(1.1); color: white; }
@media (max-width: 768px) { .whatsapp-float { width: 46px; height: 46px; font-size: 1.4rem; right: 12px; bottom: 76px; } }

/* ============ SOCIAL SHARE FAB ============ */
.social-share-fab { position: fixed; left: 14px; bottom: 88px; z-index: 900; display: flex; flex-direction: column; gap: 6px; }
.social-share-fab a, .social-share-fab button { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 0.8rem; text-decoration: none; box-shadow: 0 2px 10px rgba(0,0,0,0.15); transition: transform 0.2s ease; border: none; cursor: pointer; }
.social-share-fab a:hover, .social-share-fab button:hover { transform: scale(1.1); }
.social-share-fab a[href*="facebook"] { background: #1877F2; }
.social-share-fab a[href*="twitter"] { background: #1DA1F2; }
.social-share-fab a[href*="wa.me"] { background: #25D366; }
.social-share-fab a[href*="linkedin"] { background: #0A66C2; }
.fab-scroll-top { background: var(--secondary) !important; color: var(--accent-gold) !important; }

/* ============ MOBILE BOTTOM NAV ============ */
.mobile-bottom-nav {
    display: none;
    position: fixed; bottom: 0; left: 0; right: 0;
    height: 60px;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    z-index: 999;
    padding: 0 4px;
    padding-bottom: env(safe-area-inset-bottom, 0);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 0 -2px 12px rgba(26,26,46,0.06);
}
@media (max-width: 768px) {
    .mobile-bottom-nav { display: flex; align-items: center; justify-content: space-around; }
    .social-share-fab { display: none !important; }
}
.mobile-nav-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; color: var(--text-muted); font-size: 0.6rem; font-weight: 500; padding: 4px 0; min-width: 52px; -webkit-tap-highlight-color: transparent; transition: color 0.2s ease; }
.mobile-nav-item i { font-size: 1.05rem; }
.mobile-nav-item.active { color: var(--primary); }
.mobile-nav-cta { position: relative; top: -10px; }
.mobile-nav-cta-icon { width: 48px; height: 48px; background: linear-gradient(135deg, #C9871A 0%, #A86A0A 100%); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #FFFFFF; font-size: 1.2rem; box-shadow: 0 4px 18px rgba(180,110,10,0.40); }
.mobile-nav-cta span { margin-top: 1px; color: var(--primary); font-weight: 600; }

/* ============ BADGES ============ */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: var(--radius-pill); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.3px; }
.badge-pending { background: rgba(201,168,76,0.12); color: var(--warning); }
.badge-confirmed { background: rgba(37,99,235,0.10); color: var(--info); }
.badge-completed { background: rgba(46,125,82,0.10); color: var(--success); }
.badge-cancelled { background: rgba(192,57,43,0.10); color: var(--danger); }
.badge-active { background: rgba(46,125,82,0.10); color: var(--success); }
.badge-inactive { background: rgba(192,57,43,0.10); color: var(--danger); }
.badge-in_progress { background: rgba(111,66,193,0.10); color: #6f42c1; }
.badge-no_show { background: rgba(106,106,122,0.10); color: var(--text-muted); }
.badge-online { background: rgba(37,99,235,0.10); color: var(--info); }
.badge-phone { background: rgba(232,150,58,0.10); color: var(--accent-saffron); }
.badge-video { background: rgba(111,66,193,0.10); color: #6f42c1; }
.badge-in_person { background: rgba(46,125,82,0.10); color: var(--success); }
.badge-low { background: rgba(46,125,82,0.10); color: var(--success); }
.badge-medium { background: rgba(201,168,76,0.12); color: var(--warning); }
.badge-high { background: rgba(232,150,58,0.10); color: var(--accent-saffron); }
.badge-urgent { background: rgba(192,57,43,0.10); color: var(--danger); }
.badge-paid { background: rgba(46,125,82,0.10); color: var(--success); }
.badge-unpaid { background: rgba(201,168,76,0.12); color: var(--warning); }

/* ============ ALERTS ============ */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; font-size: 0.88rem; }
.alert-success { background: rgba(46,125,82,0.08); color: var(--success); border: 1px solid rgba(46,125,82,0.15); }
.alert-danger { background: rgba(192,57,43,0.08); color: var(--danger); border: 1px solid rgba(192,57,43,0.15); }
.alert-info { background: rgba(37,99,235,0.08); color: var(--info); border: 1px solid rgba(37,99,235,0.15); }

/* ============ TOAST ============ */
.toast-container { position: fixed; top: 80px; right: 18px; z-index: 3000; display: flex; flex-direction: column; gap: 6px; }
.toast { padding: 12px 16px; border-radius: var(--radius-sm); background: var(--bg-card); border: 1px solid var(--border-color); box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px; min-width: 280px; animation: slideInToast 0.3s ease; }
.toast-success { border-left: 3px solid var(--success); }
.toast-error { border-left: 3px solid var(--danger); }
.toast-info { border-left: 3px solid var(--info); }
@keyframes slideInToast { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@media (max-width: 576px) { .toast-container { right: 10px; left: 10px; } .toast { min-width: auto; width: 100%; } }

/* ============ PAGINATION ============ */
.pagination { display: flex; justify-content: center; gap: 4px; margin-top: 28px; }
.page-link { padding: 7px 13px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-pill); color: var(--text-secondary); font-size: 0.85rem; transition: var(--transition); }
.page-link:hover, .page-link.active { background: var(--secondary); color: var(--accent-gold); border-color: var(--secondary); }

/* ============ MODAL ============ */
.modal-overlay { position: fixed; inset: 0; background: rgba(26,26,46,0.45); backdrop-filter: blur(8px); z-index: 2000; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: var(--transition); }
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); width: 90%; max-width: 500px; max-height: 80vh; overflow-y: auto; box-shadow: var(--shadow-lg); }
.modal-header { padding: 18px 22px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; }
.modal-header h3 { font-size: 1rem; font-family: var(--font-primary); font-weight: 600; }
.modal-close { background: none; border: none; color: var(--text-muted); font-size: 1.2rem; cursor: pointer; }
.modal-body { padding: 22px; }
.modal-footer { padding: 14px 22px; border-top: 1px solid var(--border-color); display: flex; justify-content: flex-end; gap: 10px; }

/* ============ SPINNER ============ */
.spinner { width: 38px; height: 38px; border: 2.5px solid var(--border-color); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.75s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ TABLE ============ */
.table-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.table-card .table-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 22px; border-bottom: 1px solid var(--border-color); }
.table-card .table-header h3 { font-size: 1rem; font-family: var(--font-primary); font-weight: 600; }
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; }
table th, table td { padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--border-color); }
table th { font-weight: 600; color: var(--text-muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; background: var(--bg-section-alt); font-family: var(--font-primary); }
table td { font-size: 0.88rem; color: var(--text-primary); }
table tr:hover td { background: var(--table-row-hover); }
