/* ============================================
   COMPOUND MANAGEMENT SYSTEM - THEME CSS
   Version: 2.0
   Design: HomeSpace-inspired
   ============================================ */

/* ============================================
   1. CSS VARIABLES (Color Scheme)
   ============================================ */
:root {
    /* Primary Colors */
    --primary-blue: #0d6efd;
    --primary-blue-dark: #0b5ed7;
    --primary-blue-light: #4dabf7;
    --primary-green: #198754;
    --primary-green-dark: #157347;
    --primary-green-light: #38ef7d;
    
    /* Dark Colors */
    --dark-navy: #1a1a2e;
    --dark-navy-light: #16213e;
    --dark-sidebar: #1a1a2e;
    
    /* Neutral Colors */
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    
    /* Status Colors */
    --success: #198754;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #0dcaf0;
    
    /* Sidebar */
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 70px;
    --sidebar-bg: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    --sidebar-admin-accent: #0d6efd;
    --sidebar-owner-accent: #198754;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 15px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.2);
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 15px;
    --radius-xl: 20px;
}

/* ============================================
   2. BASE STYLES
   ============================================ */
body {
    font-family: 'Segoe UI', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--gray-100);
    overflow-x: hidden;
}

/* RTL Font Support */
[dir="rtl"] body {
    font-family: 'Noto Sans Arabic', 'Segoe UI', sans-serif;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-blue-dark);
}

/* ============================================
   3. ADMIN/OWNER SIDEBAR - COLLAPSIBLE
   ============================================ */
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    z-index: 1000;
    transition: width var(--transition-normal);
    overflow-x: hidden;
    overflow-y: auto;
}

/* LTR Positioning */
[dir="ltr"] .sidebar {
    left: 0;
}

/* RTL Positioning */
[dir="rtl"] .sidebar {
    right: 0;
}

/* Collapsed State */
.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

/* Sidebar Header / Logo */
.sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    min-height: 70px;
}

.sidebar-logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.sidebar-brand {
    white-space: nowrap;
    overflow: hidden;
    transition: opacity var(--transition-normal);
}

.sidebar-brand-text {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.sidebar-brand-text span {
    color: var(--primary-blue-light);
}

.sidebar-brand-subtitle {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
}

.sidebar.collapsed .sidebar-brand {
    opacity: 0;
    width: 0;
}

.sidebar.collapsed .sidebar-header {
    justify-content: center;
    padding: 20px 10px;
}

/* Sidebar Navigation */
.sidebar-nav {
    padding: 15px 0;
}

.nav-section {
    padding: 15px 20px 8px;
    color: rgba(255,255,255,0.4);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar.collapsed .nav-section {
    padding: 15px 0 8px;
    text-align: center;
    font-size: 0;
}

.sidebar.collapsed .nav-section::after {
    content: '•••';
    font-size: 10px;
}

.nav-item {
    position: relative;
}

.sidebar .nav-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: rgba(255,255,255,0.7);
    transition: all var(--transition-fast);
    gap: 12px;
    white-space: nowrap;
    border-left: 3px solid transparent;
}

[dir="rtl"] .sidebar .nav-link {
    border-left: none;
    border-right: 3px solid transparent;
}

.sidebar .nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
}

.sidebar .nav-link.active {
    color: #fff;
    background: rgba(13,110,253,0.2);
    border-left-color: var(--primary-blue);
}

[dir="rtl"] .sidebar .nav-link.active {
    border-left-color: transparent;
    border-right-color: var(--primary-blue);
}

.sidebar .nav-link i {
    font-size: 18px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar .nav-link span {
    transition: opacity var(--transition-normal);
}

.sidebar.collapsed .nav-link {
    justify-content: center;
    padding: 12px 0;
}

.sidebar.collapsed .nav-link span {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

/* Notification Badge in Sidebar */
.sidebar .badge-notification {
    position: absolute;
    top: 8px;
    font-size: 10px;
    padding: 3px 6px;
}

[dir="ltr"] .sidebar .badge-notification {
    right: 15px;
}

[dir="rtl"] .sidebar .badge-notification {
    left: 15px;
}

.sidebar.collapsed .badge-notification {
    top: 5px;
    right: 5px;
    left: auto;
    padding: 2px 5px;
    font-size: 9px;
}

/* Sidebar Collapse Toggle Button */
.sidebar-toggle {
    position: absolute;
    bottom: 20px;
    left: 10px;
    right: 10px;
    padding: 10px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: var(--radius-sm);
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    transition: all var(--transition-fast);
}

.sidebar-toggle:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.sidebar.collapsed .sidebar-toggle span {
    display: none;
}

/* Owner Sidebar Accent */
.sidebar.owner-sidebar .nav-link.active {
    background: rgba(25,135,84,0.2);
    border-left-color: var(--primary-green);
}

[dir="rtl"] .sidebar.owner-sidebar .nav-link.active {
    border-left-color: transparent;
    border-right-color: var(--primary-green);
}

/* Owner Wallet Display in Sidebar */
.sidebar-wallet {
    margin: 15px;
    padding: 15px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    text-align: center;
    color: #fff;
}

.sidebar-wallet-label {
    font-size: 12px;
    opacity: 0.7;
    margin-bottom: 5px;
}

.sidebar-wallet-amount {
    font-size: 20px;
    font-weight: 700;
}

.sidebar.collapsed .sidebar-wallet {
    padding: 10px 5px;
    margin: 15px 5px;
}

.sidebar.collapsed .sidebar-wallet-label {
    display: none;
}

.sidebar.collapsed .sidebar-wallet-amount {
    font-size: 12px;
}

/* ============================================
   4. MAIN CONTENT AREA
   ============================================ */
.main-content {
    min-height: 100vh;
    background-color: var(--gray-100);
    transition: margin var(--transition-normal);
}

[dir="ltr"] .main-content {
    margin-left: var(--sidebar-width);
}

[dir="rtl"] .main-content {
    margin-right: var(--sidebar-width);
}

[dir="ltr"] .main-content.sidebar-collapsed {
    margin-left: var(--sidebar-collapsed-width);
}

[dir="rtl"] .main-content.sidebar-collapsed {
    margin-right: var(--sidebar-collapsed-width);
}

/* ============================================
   5. TOP NAVBAR (Admin/Owner)
   ============================================ */
.top-navbar {
    background: #fff;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-navbar-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--dark-navy);
    margin: 0;
}

.top-navbar-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Search Box in Top Navbar */
.navbar-search {
    display: flex;
    align-items: center;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    padding: 8px 15px;
    gap: 8px;
}

.navbar-search input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    width: 400px;
}

.navbar-search i {
    color: var(--gray-500);
}

/* Notification Dropdown */
.notification-dropdown {
    position: relative;
}

.notification-btn {
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    position: relative;
    padding: 5px;
    color: var(--gray-700);
}

.notification-btn .badge {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 10px;
    padding: 2px 5px;
}

.notification-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    width: 320px;
    margin-top: 10px;
    display: none;
    z-index: 1000;
}

[dir="rtl"] .notification-menu {
    right: auto;
    left: 0;
}

.notification-menu.show {
    display: block;
}

.notification-header {
    padding: 15px;
    border-bottom: 1px solid var(--gray-200);
    font-weight: 600;
}

.notification-item {
    padding: 12px 15px;
    border-bottom: 1px solid var(--gray-100);
    transition: background var(--transition-fast);
}

.notification-item:hover {
    background: var(--gray-100);
}

.notification-item.unread {
    background: rgba(13,110,253,0.05);
}

.notification-item-title {
    font-weight: 500;
    font-size: 13px;
    margin-bottom: 3px;
}

.notification-item-text {
    font-size: 12px;
    color: var(--gray-600);
}

.notification-item-time {
    font-size: 11px;
    color: var(--gray-500);
    margin-top: 5px;
}

.notification-footer {
    padding: 12px;
    text-align: center;
}

.notification-footer a {
    font-size: 13px;
}

/* User Dropdown */
.user-dropdown {
    position: relative;
}

.user-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.user-dropdown-toggle:hover {
    background: var(--gray-100);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

.user-info {
    line-height: 1.3;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-800);
}

.user-role {
    font-size: 11px;
    color: var(--gray-500);
}

/* ============================================
   6. DASHBOARD STATS CARDS
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-card-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 15px;
}

.stat-card-icon.blue {
    background: rgba(13,110,253,0.1);
    color: var(--primary-blue);
}

.stat-card-icon.green {
    background: rgba(25,135,84,0.1);
    color: var(--primary-green);
}

.stat-card-icon.yellow {
    background: rgba(255,193,7,0.1);
    color: var(--warning);
}

.stat-card-icon.purple {
    background: rgba(111,66,193,0.1);
    color: #6f42c1;
}

.stat-card-icon.red {
    background: rgba(220,53,69,0.1);
    color: var(--danger);
}

.stat-card-icon.cyan {
    background: rgba(13,202,240,0.1);
    color: var(--info);
}

.stat-card-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark-navy);
    margin-bottom: 5px;
}

.stat-card-label {
    font-size: 13px;
    color: var(--gray-600);
    margin-bottom: 10px;
}

.stat-card-change {
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 20px;
    display: inline-block;
}

.stat-card-change.positive {
    background: #d4edda;
    color: #155724;
}

.stat-card-change.negative {
    background: #f8d7da;
    color: #721c24;
}

/* Background decoration */
.stat-card::after {
    content: '';
    position: absolute;
    top: -20px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    opacity: 0.1;
}

[dir="ltr"] .stat-card::after {
    right: -20px;
}

[dir="rtl"] .stat-card::after {
    left: -20px;
}

.stat-card.blue-accent::after {
    background: var(--primary-blue);
}

.stat-card.green-accent::after {
    background: var(--primary-green);
}

.stat-card.yellow-accent::after {
    background: var(--warning);
}

.stat-card.purple-accent::after {
    background: #6f42c1;
}

/* ============================================
   7. DASHBOARD CHARTS
   ============================================ */
.chart-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.chart-card-header {
    padding: 20px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chart-card-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.chart-card-body {
    padding: 20px;
}

/* ============================================
   8. DATA TABLES
   ============================================ */
.data-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.data-card-header {
    padding: 20px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.data-card-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.data-card-body {
    padding: 0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead th {
    background: var(--gray-100);
    padding: 12px 15px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--gray-200);
}

[dir="ltr"] .data-table thead th {
    text-align: left;
}

[dir="rtl"] .data-table thead th {
    text-align: right;
}

.data-table tbody td {
    padding: 12px 15px;
    font-size: 13px;
    border-bottom: 1px solid var(--gray-100);
}

.data-table tbody tr:hover {
    background: var(--gray-100);
}

/* ============================================
   9. STATUS BADGES
   ============================================ */
.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    display: inline-block;
}

.status-badge.occupied {
    background: #cce5ff;
    color: #004085;
}

.status-badge.vacant {
    background: #d4edda;
    color: #155724;
}

.status-badge.for-sale {
    background: #fff3cd;
    color: #856404;
}

.status-badge.for-rent {
    background: #d1ecf1;
    color: #0c5460;
}

.status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

.status-badge.approved {
    background: #d4edda;
    color: #155724;
}

.status-badge.rejected {
    background: #f8d7da;
    color: #721c24;
}

.status-badge.completed {
    background: #e2e3e5;
    color: #383d41;
}

.priority-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
}

.priority-badge.high {
    background: #f8d7da;
    color: #721c24;
}

.priority-badge.medium {
    background: #fff3cd;
    color: #856404;
}

.priority-badge.low {
    background: #d4edda;
    color: #155724;
}

/* ============================================
   10. QUICK ACTIONS CARD
   ============================================ */
.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quick-action-btn {
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-fast);
}

/* ============================================
   11. ACTIVITY FEED
   ============================================ */
.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--gray-100);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-text {
    font-size: 14px;
    color: var(--gray-800);
    margin-bottom: 3px;
}

.activity-time {
    font-size: 12px;
    color: var(--gray-500);
}

/* ============================================
   12. LOGIN/REGISTER PAGES
   ============================================ */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dark-navy) 0%, var(--dark-navy-light) 50%, var(--primary-blue) 100%);
    padding: 20px;
}

.auth-card {
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 40px;
    width: 100%;
    max-width: 420px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
    font-weight: 700;
    color: #fff;
}

.auth-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark-navy);
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--gray-600);
}

.auth-form .form-label {
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.auth-form .input-group {
    position: relative;
}

.auth-form .input-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-500);
    font-size: 16px;
    z-index: 10;
}

[dir="ltr"] .auth-form .input-icon {
    left: 15px;
}

[dir="rtl"] .auth-form .input-icon {
    right: 15px;
}

.auth-form .form-control {
    border-radius: var(--radius-md);
    padding: 14px 16px;
    border: 1px solid var(--gray-300);
    font-size: 14px;
    transition: all var(--transition-fast);
}

[dir="ltr"] .auth-form .form-control {
    padding-left: 45px;
}

[dir="rtl"] .auth-form .form-control {
    padding-right: 45px;
}

.auth-form .form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(13,110,253,0.15);
}

.auth-form .password-toggle {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    padding: 5px;
}

[dir="ltr"] .auth-form .password-toggle {
    right: 15px;
}

[dir="rtl"] .auth-form .password-toggle {
    left: 15px;
}

.auth-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 15px rgba(13,110,253,0.3);
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13,110,253,0.4);
}

.auth-btn.register-btn {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    box-shadow: 0 4px 15px rgba(25,135,84,0.3);
}

.auth-btn.register-btn:hover {
    box-shadow: 0 8px 25px rgba(25,135,84,0.4);
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: var(--gray-600);
}

.auth-footer a {
    color: var(--primary-blue);
    font-weight: 600;
}

/* ============================================
   13. AUTH MODAL
   ============================================ */
.auth-modal .modal-content {
    border: none;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.auth-modal .modal-header {
    background: linear-gradient(135deg, var(--dark-navy) 0%, var(--primary-blue) 100%);
    color: #fff;
    border: none;
    padding: 25px 30px;
}

.auth-modal .modal-title {
    font-weight: 600;
}

.auth-modal .btn-close {
    filter: brightness(0) invert(1);
}

.auth-modal .modal-body {
    padding: 30px;
}

.auth-modal .nav-tabs {
    border: none;
    margin-bottom: 25px;
}

.auth-modal .nav-tabs .nav-link {
    border: none;
    color: var(--gray-600);
    font-weight: 500;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    margin-right: 10px;
}

.auth-modal .nav-tabs .nav-link.active {
    background: var(--primary-blue);
    color: #fff;
}

/* ============================================
   14. PUBLIC LAYOUT - NAVBAR
   ============================================ */
.public-topbar {
    background: var(--dark-navy);
    color: #fff;
    padding: 8px 0;
    font-size: 13px;
}

.public-topbar a {
    color: rgba(255,255,255,0.8);
}

.public-topbar a:hover {
    color: #fff;
}

/* Language Buttons in Top Bar */
.btn-lang {
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 4px;
    transition: all 0.2s ease;
    line-height: 1.5;
    cursor: pointer;
}

    .btn-lang:hover {
        background: rgba(255, 255, 255, 0.25);
        color: #fff;
        border-color: rgba(255, 255, 255, 0.7);
    }

    .btn-lang.active {
        background: var(--primary-blue);
        color: #fff;
        border-color: var(--primary-blue);
        font-weight: 600;
    }

[dir="rtl"] .btn-lang {
    font-size: 12px;
}

.public-navbar {
    background: #fff;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.public-navbar .navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 22px;
    color: var(--dark-navy);
}

.public-navbar .brand-logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
}

.public-navbar .brand-text span {
    color: var(--primary-blue);
}

.public-navbar .nav-link {
    color: var(--gray-700);
    font-weight: 500;
    padding: 10px 15px;
    transition: color var(--transition-fast);
}

.public-navbar .nav-link:hover {
    color: var(--primary-blue);
}

.public-navbar .btn-login {
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    font-weight: 600;
    padding: 8px 20px;
    border-radius: var(--radius-sm);
}

.public-navbar .btn-login:hover {
    background: var(--primary-blue);
    color: #fff;
}

.public-navbar .btn-register {
    background: var(--primary-blue);
    color: #fff;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--primary-blue);
}

.public-navbar .btn-register:hover {
    background: var(--primary-blue-dark);
    border-color: var(--primary-blue-dark);
}

/* ============================================
   15. PUBLIC LAYOUT - HERO SECTION
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, rgba(26,26,46,0.9) 0%, rgba(13,110,253,0.85) 100%), 
                url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?w=1600') center/cover;
    padding: 100px 0;
    color: #fff;
    text-align: center;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 18px;
    opacity: 0.95;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Search Box */
.hero-search-box {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-xl);
    max-width: 1000px;
    margin: 0 auto;
}

.hero-search-box label {
    display: block;
    margin-bottom: 8px;
    color: var(--gray-600);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

[dir="ltr"] .hero-search-box label {
    text-align: left;
}

[dir="rtl"] .hero-search-box label {
    text-align: right;
}

.hero-search-box select,
.hero-search-box input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--gray-700);
}

.hero-search-btn {
    background: var(--primary-blue);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background var(--transition-fast);
}

.hero-search-btn:hover {
    background: var(--primary-blue-dark);
}

/* ============================================
   16. PUBLIC LAYOUT - STATS SECTION
   ============================================ */
.public-stats {
    background: var(--dark-navy);
    padding: 50px 0;
}

.public-stat-item {
    text-align: center;
    color: #fff;
}

.public-stat-value {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.public-stat-label {
    font-size: 15px;
    opacity: 0.8;
}

/* ============================================
   17. PUBLIC LAYOUT - PROPERTY CARDS
   ============================================ */
.property-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.property-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.property-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-card-badge {
    position: absolute;
    top: 15px;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

[dir="ltr"] .property-card-badge {
    left: 15px;
}

[dir="rtl"] .property-card-badge {
    right: 15px;
}

.property-card-badge.sale {
    background: var(--primary-green);
    color: #fff;
}

.property-card-badge.rent {
    background: var(--primary-blue);
    color: #fff;
}

.property-card-featured {
    position: absolute;
    top: 15px;
    background: var(--warning);
    color: #000;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

[dir="ltr"] .property-card-featured {
    right: 15px;
}

[dir="rtl"] .property-card-featured {
    left: 15px;
}

.property-card-category {
    position: absolute;
    bottom: 15px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
}

[dir="ltr"] .property-card-category {
    left: 15px;
}

[dir="rtl"] .property-card-category {
    right: 15px;
}

.property-card-body {
    padding: 20px;
}

.property-card-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.property-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-navy);
    margin-bottom: 8px;
}

.property-card-location {
    color: var(--gray-600);
    font-size: 14px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.property-card-features {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid var(--gray-200);
    color: var(--gray-600);
    font-size: 13px;
}

/* ============================================
   18. PUBLIC LAYOUT - SERVICES SECTION
   ============================================ */
.service-card {
    background: #fff;
    padding: 35px 25px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast);
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card-icon {
    font-size: 45px;
    margin-bottom: 20px;
}

.service-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-navy);
    margin-bottom: 12px;
}

.service-card-text {
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.6;
}

/* ============================================
   19. PUBLIC LAYOUT - CTA SECTION
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-green) 100%);
    padding: 80px 0;
    text-align: center;
    color: #fff;
}

.cta-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-subtitle {
    font-size: 18px;
    opacity: 0.95;
    margin-bottom: 35px;
}

.cta-btn {
    padding: 14px 35px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    transition: all var(--transition-fast);
}

.cta-btn-primary {
    background: #fff;
    color: var(--primary-blue);
    border: none;
}

.cta-btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

/* ============================================
   20. PUBLIC LAYOUT - FOOTER
   ============================================ */
.public-footer {
    background: var(--dark-navy);
    color: #fff;
    padding: 60px 0 30px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-brand-logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
}

.footer-brand-text {
    font-size: 22px;
    font-weight: 700;
}

.footer-brand-text span {
    color: var(--primary-blue);
}

.footer-description {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: #fff;
}

.footer-contact p {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background var(--transition-fast);
}

.footer-social a:hover {
    background: var(--primary-blue);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 40px;
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: rgba(255,255,255,0.6);
}

.footer-bottom-links a:hover {
    color: #fff;
}

/* ============================================
   21. RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 991px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    [dir="rtl"] .sidebar {
        transform: translateX(100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-search-box {
        padding: 20px;
    }
}

@media (max-width: 767px) {
    .top-navbar {
        padding: 15px;
    }
    
    .navbar-search {
        display: none;
    }
    
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .auth-card {
        padding: 30px 20px;
    }
}

/* ============================================
   22. UTILITY CLASSES
   ============================================ */
.content-padding {
    padding: 30px;
}

.mb-30 {
    margin-bottom: 30px;
}

.gap-20 {
    gap: 20px;
}

/* Hide scrollbar but allow scrolling */
.sidebar::-webkit-scrollbar {
    width: 0;
}

.sidebar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
/* Navbar Brand Logo */
.navbar-brand-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
    margin-inline-end: 10px;
}

/* Footer Brand Logo */
.footer-brand-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 8px;
    margin-inline-end: 12px;
}

.footer-brand-logo-placeholder {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-green) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-inline-end: 12px;
}
/* Hero Brand (Logo + Name) */
.hero-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.hero-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.1);
    padding: 8px;
}

@media (max-width: 576px) {
    .hero-brand {
        flex-direction: column;
        gap: 15px;
    }

    .hero-logo {
        width: 80px;
        height: 80px;
    }
}