/**
 * Executive Real Estate System - Premium Design System (RTL)
 * Modern, Crisp, Light & Ultra-Clean Aesthetics
 */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&family=Tajawal:wght@400;500;700;800&display=swap');

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;
    --primary-gradient: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    
    --success-color: #10b981;
    --success-light: #ecfdf5;
    --success-gradient: linear-gradient(135deg, #059669 0%, #10b981 100%);

    --warning-color: #f59e0b;
    --warning-light: #fffbeb;

    --danger-color: #ef4444;
    --danger-light: #fef2f2;

    --dark-slate: #0f172a;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;

    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 15px -3px rgba(0,0,0,0.05), 0 2px 6px -2px rgba(0,0,0,0.02);
    --shadow-lg: 0 10px 30px -5px rgba(0,0,0,0.08);
}

body {
    font-family: 'Cairo', 'Tajawal', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* =========================================================
   Navbar Styling
   ========================================================= */
.navbar-custom {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px -4px rgba(15, 23, 42, 0.04);
    padding: 0.35rem 0;
}

@media (min-width: 992px) {
    .navbar-toggler {
        display: none !important;
    }
}

.brand-logo {
    font-weight: 800;
    color: var(--dark-slate);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none !important;
}

.brand-logo .logo-icon {
    width: 30px;
    height: 30px;
    background: var(--primary-gradient);
    color: #ffffff;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
}

.logo-title-text {
    font-size: 0.92rem;
    line-height: 1.2;
}

.logo-sub-text {
    font-size: 0.68rem !important;
    line-height: 1.2;
}

/* Minimalist Ultra-Sleek Navigation Menu Items */
.nav-btn-colorful {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.3rem 0.65rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.82rem;
    color: #475569 !important;
    background: transparent;
    border: 1px solid transparent;
    text-decoration: none !important;
    white-space: nowrap;
    width: auto;
    transition: all 0.15s ease-in-out;
}

.nav-btn-colorful .nav-icon-box {
    width: auto;
    height: auto;
    background: transparent !important;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
}

.nav-btn-colorful .nav-icon-box svg {
    width: 15px;
    height: 15px;
}

.nav-btn-colorful:hover {
    background: #f1f5f9;
    color: #0f172a !important;
}

.nav-btn-colorful:hover .nav-icon-box {
    color: #0f172a;
}

/* Active Nav States */
.nav-btn-blue.active {
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    border-color: #bfdbfe;
}
.nav-btn-blue.active .nav-icon-box { color: #1d4ed8 !important; }

.nav-btn-emerald.active {
    background: #ecfdf5 !important;
    color: #047857 !important;
    border-color: #a7f3d0;
}
.nav-btn-emerald.active .nav-icon-box { color: #047857 !important; }

.nav-btn-purple.active {
    background: #faf5ff !important;
    color: #7e22ce !important;
    border-color: #e9d5ff;
}
.nav-btn-purple.active .nav-icon-box { color: #7e22ce !important; }

.nav-btn-amber.active {
    background: #fffbeb !important;
    color: #b45309 !important;
    border-color: #fde68a;
}
.nav-btn-amber.active .nav-icon-box { color: #b45309 !important; }

.nav-btn-rose.active {
    background: #fff1f2 !important;
    color: #be123c !important;
    border-color: #fecdd3;
}
.nav-btn-rose.active .nav-icon-box { color: #be123c !important; }

.notif-badge-pill {
    background: #ef4444;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.1em 0.45em;
    border-radius: 50px;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.35);
    animation: pulse-red 2s infinite;
}

.nav-btn-rose:hover .notif-badge-pill, .nav-btn-rose.active .notif-badge-pill {
    background: #ffffff;
    color: #e11d48;
}

/* =========================================================
   Hero Welcome Banner
   ========================================================= */
.hero-banner {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
    border-radius: var(--radius-xl);
    padding: 2.2rem 2.5rem;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px -5px rgba(37, 99, 235, 0.3);
    margin-bottom: 2rem;
}

.hero-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.hero-title {
    font-weight: 800;
    font-size: 1.9rem;
    margin-bottom: 0.4rem;
    color: #ffffff;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    margin-bottom: 0;
}

/* =========================================================
   Stat Cards (KPI Cards)
   ========================================================= */
.stat-card-executive {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.stat-card-executive:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: #cbd5e1;
}

.stat-card-executive .card-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
}

.stat-card-executive .card-icon-wrapper.blue {
    background: #dbeafe;
    color: #1d4ed8;
}

.stat-card-executive .card-icon-wrapper.emerald {
    background: #d1fae5;
    color: #047857;
}

.stat-card-executive .card-icon-wrapper.amber {
    background: #fef3c7;
    color: #b45309;
}

.stat-card-executive .card-icon-wrapper.rose {
    background: #ffe4e6;
    color: #be123c;
}

.stat-card-executive .stat-number {
    font-size: 2.3rem;
    font-weight: 900;
    color: var(--dark-slate);
    line-height: 1;
    margin-bottom: 0.3rem;
}

.stat-card-executive .stat-title {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 700;
}

/* =========================================================
   Cards & Table Layout
   ========================================================= */
.section-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-bottom: 2rem;
}

.section-card-header {
    padding: 1.25rem 1.75rem;
    background: #ffffff;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-card-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--dark-slate);
    margin: 0;
}

.custom-table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.custom-table th {
    background-color: #f8fafc;
    color: #475569;
    font-weight: 800;
    font-size: 0.88rem;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.custom-table td {
    padding: 1.1rem 1.25rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.95rem;
    color: var(--text-primary);
}

.custom-table tr:hover td {
    background-color: rgba(37, 99, 235, 0.02);
}

.custom-table tr:last-child td {
    border-bottom: none;
}

/* =========================================================
   Progress Bar & Score Badges
   ========================================================= */
.score-progress-container {
    width: 100%;
    background-color: #e2e8f0;
    border-radius: 50px;
    height: 10px;
    overflow: hidden;
    margin-top: 0.4rem;
}

.score-progress-bar {
    height: 100%;
    border-radius: 50px;
    transition: width 0.6s ease;
}

.score-progress-bar.perfect { background: linear-gradient(90deg, #10b981, #059669); }
.score-progress-bar.high    { background: linear-gradient(90deg, #3b82f6, #1d4ed8); }
.score-progress-bar.medium  { background: linear-gradient(90deg, #f59e0b, #d97706); }

.score-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.9rem;
}

.score-chip.chip-perfect { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.score-chip.chip-high    { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }
.score-chip.chip-medium  { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }

/* Status Badges */
.status-badge {
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 800;
    display: inline-block;
}

.status-badge.available { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.status-badge.sold      { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; }
.status-badge.rented    { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.status-badge.active    { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.status-badge.fulfilled { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.status-badge.cancelled { background: #fef2f2; color: #b91c1c; border: 1px solid #fca5a5; }

/* Match Reason Chip */
.match-reason-chip {
    background: #f1f5f9;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.match-reason-chip.success {
    background: #d1fae5;
    color: #065f46;
}

/* =========================================================
   Form Styling
   ========================================================= */
.form-container-card {
    max-width: 850px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.form-container-header {
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 1.25rem;
    margin-bottom: 1.75rem;
}

.form-control, .form-select {
    padding: 0.7rem 1rem;
    font-size: 0.98rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 1.5px solid #cbd5e1;
    background-color: #ffffff;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.btn-action-lg {
    padding: 0.85rem 1.8rem;
    font-size: 1.05rem;
    font-weight: 800;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

/* =========================================================
   Prominent Add Property & Add Request Button Styling
   ========================================================= */
/* =========================================================
   Luxury Action Buttons: Add Property & Add Request
   ========================================================= */
.btn-add-property {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    padding: 0.55rem 1.25rem !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none !important;
    cursor: pointer;
    backdrop-filter: blur(4px);
}

.btn-add-property:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    color: #ffffff !important;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 22px rgba(16, 185, 129, 0.45) !important;
}

.btn-add-property svg {
    transition: transform 0.25s ease;
}

.btn-add-property:hover svg {
    transform: rotate(90deg) scale(1.1);
}

.btn-add-request {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    padding: 0.55rem 1.25rem !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none !important;
    cursor: pointer;
    backdrop-filter: blur(4px);
}

.btn-add-request:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%) !important;
    color: #ffffff !important;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 22px rgba(99, 102, 241, 0.45) !important;
}

.btn-add-request svg {
    transition: transform 0.25s ease;
}

.btn-add-request:hover svg {
    transform: rotate(90deg) scale(1.1);
}

.btn-hero-sync {
    background: rgba(255, 255, 255, 0.14) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    padding: 0.55rem 1.1rem !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    backdrop-filter: blur(8px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none !important;
}

.btn-hero-sync:hover {
    background: rgba(255, 255, 255, 0.28) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 255, 255, 0.2) !important;
}

.btn-hero-sync svg {
    transition: transform 0.4s ease;
}

.btn-hero-sync:hover svg {
    transform: rotate(180deg);
}

/* =========================================================
   Custom Pop-up Modal Styling
   ========================================================= */
.custom-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.65);
    z-index: 1050;
    display: none;
    overflow-y: auto;
    backdrop-filter: blur(5px);
    padding: 1.5rem;
}

.custom-modal-backdrop.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.custom-modal-dialog {
    width: 100%;
    max-width: 850px;
    background: #ffffff;
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: modal-slide-down 0.3s ease-out;
}

@keyframes modal-slide-down {
    from { transform: translateY(-30px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

.custom-modal-header {
    padding: 1.25rem 1.75rem;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.custom-modal-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dark-slate);
    margin: 0;
}

.custom-modal-close {
    background: #f1f5f9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.custom-modal-close:hover {
    background: #e2e8f0;
    color: var(--dark-slate);
}

.custom-modal-body {
    padding: 1.75rem;
    max-height: 70vh;
    overflow-y: auto;
}

.custom-modal-footer {
    padding: 1rem 1.75rem;
    background: #f8fafc;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* ===================================================
   SweetAlert2 - Premium RTL Override Styles
   =================================================== */
.swal2-container {
    font-family: 'Cairo', 'Tajawal', sans-serif !important;
    direction: rtl;
    z-index: 99999;
}

.swal2-popup {
    border-radius: 20px !important;
    padding: 2em !important;
    box-shadow: 0 32px 64px rgba(0,0,0,0.18) !important;
    animation: swal2-appear 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes swal2-appear {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}

.swal2-title {
    font-family: 'Cairo', sans-serif !important;
    font-weight: 800 !important;
    font-size: 1.35em !important;
    color: #0f172a !important;
}

.swal2-html-container {
    font-family: 'Cairo', sans-serif !important;
    font-size: 1em !important;
    font-weight: 600 !important;
    color: #475569 !important;
    line-height: 1.7 !important;
}

.swal2-icon {
    width: 4.5em !important;
    height: 4.5em !important;
    margin: 0.5em auto 1em !important;
    font-size: 1em !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.swal2-icon::before {
    font-size: 2.5em !important;
    line-height: 1 !important;
}

.swal2-icon.swal2-success {
    border-color: #a7f3d0 !important;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5) !important;
    color: #059669 !important;
}

.swal2-icon.swal2-error {
    border-color: #fca5a5 !important;
    background: linear-gradient(135deg, #fef2f2, #fee2e2) !important;
    color: #dc2626 !important;
}

.swal2-icon.swal2-warning {
    border-color: #fde68a !important;
    background: linear-gradient(135deg, #fffbeb, #fef3c7) !important;
    color: #d97706 !important;
}

.swal2-icon.swal2-info {
    border-color: #bfdbfe !important;
    background: linear-gradient(135deg, #eff6ff, #dbeafe) !important;
    color: #2563eb !important;
}

.swal2-styled.swal2-confirm {
    border-radius: 12px !important;
    padding: 0.65em 2em !important;
    font-family: 'Cairo', sans-serif !important;
    font-weight: 800 !important;
    font-size: 0.95em !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35) !important;
    transition: all 0.2s ease !important;
}

.swal2-styled.swal2-confirm:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4) !important;
}

.swal2-styled.swal2-cancel {
    border-radius: 12px !important;
    padding: 0.65em 2em !important;
    font-family: 'Cairo', sans-serif !important;
    font-weight: 800 !important;
    font-size: 0.95em !important;
    background-color: #64748b !important;
    transition: all 0.2s ease !important;
}

.swal2-styled.swal2-cancel:hover {
    background-color: #475569 !important;
    transform: translateY(-1px);
}

.swal2-actions {
    gap: 0.75em !important;
    margin-top: 1.5em !important;
}

.swal2-container {
    backdrop-filter: blur(6px);
    background: rgba(15, 23, 42, 0.55) !important;
}

/* Category Stat Cards Hover & Dynamic Effects */
.category-stat-card {
    cursor: pointer;
    user-select: none;
}

.category-stat-card:hover {
    transform: translateY(-5px) scale(1.02) !important;
    box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.12), 0 4px 8px -4px rgba(0, 0, 0, 0.06) !important;
}

/* =========================================================
   Tafqeet (Number to Words) Component - Executive Style
   ========================================================= */
.tafqeet-box {
    display: none;
    margin-top: 0.65rem;
    padding: 0.85rem 1.1rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #d1fae5 100%);
    border: 1.5px solid #a7f3d0;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tafqeet-box.active {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    animation: tafqeetSlideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes tafqeetSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.tafqeet-icon-badge {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #ffffff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(5, 150, 105, 0.25);
    font-size: 1.1rem;
}

.tafqeet-content {
    flex-grow: 1;
}

.tafqeet-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: #047857;
    margin-bottom: 0.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.tafqeet-amount-formatted {
    background: rgba(4, 120, 87, 0.12);
    color: #065f46;
    padding: 0.1rem 0.6rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 800;
    font-family: system-ui, -apple-system, sans-serif;
    direction: ltr;
}

.tafqeet-text {
    font-size: 1.05rem;
    font-weight: 800;
    color: #064e3b;
    line-height: 1.5;
    letter-spacing: -0.2px;
}

/* =========================================================
   Mobile Responsiveness & Responsive Breakpoints
   ========================================================= */

/* Media Queries for Screen Breakpoints */

/* Mobile Phones (Portrait & Landscape <= 767.98px) */
@media (max-width: 767.98px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    /* Navbar Brand text truncation & scaling */
    .brand-logo {
        font-size: 1.1rem;
        gap: 0.5rem;
    }

    .brand-logo .logo-icon {
        width: 36px;
        height: 36px;
    }

    .logo-title-text {
        font-size: 1.05rem;
    }

    .logo-sub-text {
        max-width: 170px !important;
        font-size: 0.7rem !important;
    }

    /* Hero Welcome Banner on Mobile */
    .hero-banner {
        padding: 1.4rem 1.2rem;
        border-radius: var(--radius-lg);
        margin-bottom: 1.2rem;
    }

    .hero-title {
        font-size: 1.35rem;
    }

    .hero-subtitle {
        font-size: 0.88rem;
    }

    /* Forms & Touch Input Scaling */
    .form-control, .form-select, .btn {
        font-size: 0.95rem;
        min-height: 44px;
    }

    /* Prevent auto zoom on iOS */
    input[type="text"], input[type="number"], input[type="url"], input[type="tel"], select, textarea {
        font-size: 16px !important;
    }

    /* Cards & Containers on Mobile */
    .section-card, .form-container-card {
        padding: 1.1rem !important;
        border-radius: var(--radius-lg) !important;
    }

    /* Responsive Tables with Horizontal Scroll */
    .table-responsive {
        border-radius: var(--radius-md);
        -webkit-overflow-scrolling: touch;
    }

    .table th, .table td {
        font-size: 0.85rem;
        padding: 0.6rem 0.75rem;
    }

    /* Card Action Buttons Full Width on Phone */
    .mobile-w-100 {
        width: 100% !important;
        display: block !important;
        margin-bottom: 0.5rem;
    }

    /* Executive Stat Cards on Mobile */
    .stat-card-val {
        font-size: 1.5rem !important;
    }
}

/* Mobile & Tablet Navigation Dropdown Adjustment */
@media (max-width: 991.98px) {
    .nav-buttons-wrapper {
        flex-direction: column;
        align-items: stretch !important;
        width: 100%;
    }
    .nav-buttons-wrapper .nav-btn-colorful {
        width: 100%;
        justify-content: flex-start;
    }
}

/* Tablets & Small Laptops (768px to 991.98px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .container {
        max-width: 100%;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .hero-title {
        font-size: 1.6rem;
    }
}

/* =========================================================
   Desktop & Laptop Widescreen Responsive Layout (Ultra-Spacious)
   ========================================================= */

/* Desktop & Large Screens (min-width: 1200px) */
@media (min-width: 1200px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 95% !important;
        width: 95% !important;
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }

    .hero-banner {
        padding: 2.5rem 3.5rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-card, .form-container-card {
        padding: 2rem !important;
    }
}

/* Extra Large Widescreen Monitors (min-width: 1600px) */
@media (min-width: 1600px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 1680px !important;
        width: 94% !important;
    }
}

/* =========================================================
   Mobile App Bottom Navigation Bar (iOS / Android Native Style)
   ========================================================= */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: #ffffff;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.07);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1050;
    padding: 0 0.25rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    text-decoration: none !important;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
    transition: all 0.2s ease-in-out;
    position: relative;
    padding-top: 4px;
}

.mobile-nav-icon {
    width: 36px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    transition: all 0.2s ease-in-out;
}

.mobile-nav-item span {
    margin-top: 2px;
    transition: color 0.2s ease-in-out;
}

.mobile-nav-item.active {
    color: #2563eb;
}

.mobile-nav-item.active .mobile-nav-icon {
    background-color: #eff6ff;
    color: #2563eb;
}

.mobile-nav-item:active {
    transform: scale(0.92);
}

.mobile-notif-badge {
    position: absolute;
    top: 5px;
    right: 50%;
    margin-right: -18px;
    background-color: #ef4444;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.15rem 0.4rem;
    border-radius: 50px;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 5px rgba(239, 68, 68, 0.4);
    line-height: 1;
}

@media (min-width: 992px) {
    .mobile-bottom-nav {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    body {
        padding-bottom: 75px !important;
    }
    footer {
        margin-bottom: 64px !important;
    }
}

/* =========================================================
   Hero Banner & Action Buttons Styling (Fully Mobile Responsive)
   ========================================================= */
.hero-banner {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #3b82f6 100%);
    border-radius: 20px;
    padding: 1.75rem 2rem;
    color: #ffffff;
    box-shadow: 0 10px 30px -5px rgba(37, 99, 235, 0.25);
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.hero-title {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 0.4rem;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 0;
    max-width: 680px;
    line-height: 1.5;
}

.btn-add-property,
.btn-add-request,
.btn-hero-sync {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 1.15rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none !important;
    transition: all 0.2s ease-in-out;
    border: none;
    cursor: pointer;
}

.btn-add-property {
    background: #10b981;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
.btn-add-property:hover {
    background: #059669;
    transform: translateY(-2px);
}

.btn-add-request {
    background: #8b5cf6;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}
.btn-add-request:hover {
    background: #7c3aed;
    transform: translateY(-2px);
}

.btn-hero-sync {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
}
.btn-hero-sync:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* التجاوب الفائق لشاشات التلفون والجوال (Mobile Responsive Media Queries) */
@media (max-width: 767.98px) {
    .hero-banner {
        padding: 1.15rem 1rem !important;
        border-radius: 16px !important;
        margin-bottom: 1.25rem !important;
        text-align: center !important;
    }

    .hero-banner > div:first-child {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .hero-title {
        font-size: 1.2rem !important;
        margin-bottom: 0.3rem !important;
    }

    .hero-subtitle {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
    }

    .hero-banner .d-flex.gap-2 {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.4rem !important;
        margin-top: 0.65rem !important;
    }

    .btn-add-property,
    .btn-add-request,
    .btn-hero-sync {
        width: 100% !important;
        padding: 0.5rem 0.4rem !important;
        font-size: 0.78rem !important;
        border-radius: 10px !important;
        white-space: nowrap;
    }

    .btn-hero-sync {
        grid-column: span 2 !important;
    }
}






