/* =============================================
   RENTPRO - Property Management System
   Main Stylesheet v1.0
   ============================================= */

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

/* ---- CSS Variables ---- */
:root {
    --primary:      #6366F1;
    --primary-dark: #4F46E5;
    --primary-light:#EEF2FF;
    --secondary:    #8B5CF6;
    --accent:       #06B6D4;
    --success:      #10B981;
    --warning:      #F59E0B;
    --danger:       #EF4444;
    --info:         #3B82F6;

    --dark:         #0F172A;
    --dark-2:       #1E293B;
    --dark-3:       #64748B;
    --light:        #F8FAFC;
    --light-2:      #F1F5F9;
    --border:       #E2E8F0;
    --white:        #FFFFFF;

    --sidebar-w:    260px;
    --header-h:     64px;
    --radius:       14px;
    --radius-sm:    8px;
    --radius-lg:    20px;
    --shadow:       0 4px 24px rgba(99,102,241,.10);
    --shadow-md:    0 8px 32px rgba(99,102,241,.15);
    --shadow-lg:    0 20px 60px rgba(99,102,241,.2);
    --transition:   all 0.25s cubic-bezier(.4,0,.2,1);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--light);
    color: var(--dark);
    min-height: 100vh;
    overflow-x: hidden;
    font-size: 14px;
    line-height: 1.6;
}

/* =============================================
   LOGIN PAGE
   ============================================= */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 40%, #312E81 100%);
    position: relative;
    overflow: hidden;
    padding: 20px;
}

.login-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(99,102,241,.25) 0%, transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(139,92,246,.2) 0%, transparent 50%);
    animation: rotateBg 20s linear infinite;
}

@keyframes rotateBg { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.login-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.login-bg-shapes span {
    position: absolute;
    border-radius: 50%;
    opacity: .07;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    animation: floatBubble 8s ease-in-out infinite;
}

.login-bg-shapes span:nth-child(1) { width: 300px; height: 300px; top: -100px; left: -80px; animation-delay: 0s; }
.login-bg-shapes span:nth-child(2) { width: 200px; height: 200px; bottom: -60px; right: 10%; animation-delay: 3s; }
.login-bg-shapes span:nth-child(3) { width: 150px; height: 150px; top: 50%; right: -50px; animation-delay: 5s; }

@keyframes floatBubble {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.login-card {
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 44px 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.2);
    position: relative;
    z-index: 10;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.logo-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(99,102,241,.35);
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 8px 24px rgba(99,102,241,.35); }
    50% { box-shadow: 0 8px 32px rgba(99,102,241,.55); }
}

.login-logo h1 {
    font-size: 26px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.login-logo p { color: var(--dark-3); font-size: 13px; margin-top: 4px; }

.form-label { font-weight: 600; font-size: 13px; color: var(--dark-2); margin-bottom: 6px; }

.form-control {
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
    background: var(--light);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,.12);
    background: white;
    outline: none;
}

.input-group-text {
    background: var(--light);
    border: 2px solid var(--border);
    border-right: none;
    color: var(--primary);
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    padding: 0 14px;
}

.input-group .form-control {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    border-left: none;
}

.input-group .form-control:focus { border-left: none; }

.btn-login {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(99,102,241,.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99,102,241,.45);
}

.btn-login:active { transform: translateY(0); }

/* =============================================
   LAYOUT: SIDEBAR
   ============================================= */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.5);
    z-index: 998;
    backdrop-filter: blur(2px);
}

.sidebar-overlay.show { display: block; }

.sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    width: var(--sidebar-w);
    background: linear-gradient(180deg, #0F172A 0%, #1E293B 60%, #172033 100%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
    overflow: hidden;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 200px;
    background: radial-gradient(circle at top left, rgba(99,102,241,.3) 0%, transparent 70%);
    pointer-events: none;
}

.sidebar-header {
    padding: 20px 20px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.sidebar-logo {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: white; flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(99,102,241,.4);
}

.sidebar-brand { line-height: 1.2; }
.sidebar-brand > span, .sidebar-brand > div:first-child, .sidebar-brand {
    font-size: 16px;
    font-weight: 800;
    color: white;
    letter-spacing: -.3px;
}

.sidebar-brand small {
    display: block;
    font-size: 10px;
    color: rgba(255,255,255,.4);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.sidebar-menu {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.1) transparent;
}

.sidebar-menu::-webkit-scrollbar { width: 3px; }
.sidebar-menu::-webkit-scrollbar-track { background: transparent; }
.sidebar-menu::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 3px; }

.menu-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,.25);
    padding: 14px 20px 6px;
    text-transform: uppercase;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 20px;
    color: rgba(255,255,255,.6);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    border-radius: 0;
    transition: var(--transition);
    position: relative;
    margin: 1px 8px;
    border-radius: 10px;
}

.sidebar-menu a i {
    width: 18px;
    text-align: center;
    font-size: 14px;
    flex-shrink: 0;
}

.sidebar-menu a:hover {
    color: white;
    background: rgba(255,255,255,.08);
}

.sidebar-menu a.active {
    color: white;
    background: linear-gradient(135deg, rgba(99,102,241,.4), rgba(139,92,246,.3));
    font-weight: 600;
    box-shadow: 0 2px 12px rgba(99,102,241,.2);
}

.sidebar-menu a.active::before {
    content: '';
    position: absolute;
    left: -8px; top: 50%;
    transform: translateY(-50%);
    width: 3px; height: 20px;
    background: var(--primary);
    border-radius: 0 3px 3px 0;
}

.badge-alert {
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: auto;
    min-width: 18px;
    text-align: center;
}

.sidebar-footer {
    padding: 14px 16px;
    border-top: 1px solid rgba(255,255,255,.07);
    flex-shrink: 0;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700; color: white; flex-shrink: 0;
}

.user-name { font-size: 13px; font-weight: 600; color: white; }
.user-role { font-size: 11px; color: rgba(255,255,255,.4); text-transform: capitalize; }

/* =============================================
   HEADER
   ============================================= */
.main-header {
    position: fixed;
    top: 0;
    left: var(--sidebar-w);
    right: 0;
    height: var(--header-h);
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 100;
    transition: left 0.3s ease;
}

.header-left { display: flex; align-items: center; gap: 14px; }
.header-left h4 { font-size: 16px; font-weight: 700; color: var(--dark); margin: 0; }
.breadcrumb-text { font-size: 12px; color: var(--dark-3); margin-top: 1px; }

.header-right { display: flex; align-items: center; gap: 8px; }

.header-btn {
    width: 38px; height: 38px;
    background: var(--light-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: var(--dark-3);
    font-size: 15px;
    transition: var(--transition);
    position: relative;
    text-decoration: none;
}

.header-btn:hover { background: var(--primary-light); color: var(--primary); border-color: var(--primary); }

.badge-dot {
    position: absolute;
    top: 6px; right: 6px;
    width: 7px; height: 7px;
    background: var(--danger);
    border-radius: 50%;
    border: 1.5px solid white;
}

.header-logout-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 14px;
    background: linear-gradient(135deg, var(--danger), #DC2626);
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(239,68,68,.25);
}

.header-logout-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(239,68,68,.35); color: white; }

.alert-count-badge {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 12px;
    background: rgba(239,68,68,.1);
    color: var(--danger);
    border: 1px solid rgba(239,68,68,.2);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.alert-count-badge:hover { background: var(--danger); color: white; }

/* =============================================
   MAIN CONTENT
   ============================================= */
.main-content {
    margin-left: var(--sidebar-w);
    padding-top: var(--header-h);
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

.content-wrapper { padding: 24px; }

/* =============================================
   MOBILE BOTTOM NAV
   ============================================= */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: white;
    border-top: 1px solid var(--border);
    z-index: 200;
    padding: 6px 0 max(6px, env(safe-area-inset-bottom));
    box-shadow: 0 -4px 20px rgba(0,0,0,.08);
}

.mobile-bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 4px 2px;
    color: var(--dark-3);
    text-decoration: none;
    font-size: 10px;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.mobile-bottom-nav a i { font-size: 18px; }
.mobile-bottom-nav a.active { color: var(--primary); }

.mobile-bottom-nav a.active i {
    background: var(--primary-light);
    padding: 6px 12px;
    border-radius: 12px;
    color: var(--primary);
}

/* =============================================
   PAGE HEADER
   ============================================= */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.page-header h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--dark);
    margin: 0;
}

.page-header .subtitle {
    font-size: 13px;
    color: var(--dark-3);
    margin: 3px 0 0;
}

/* =============================================
   STAT CARDS
   ============================================= */
.stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: var(--radius) var(--radius) 0 0;
}

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

.stat-icon {
    width: 46px; height: 46px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    margin-bottom: 14px;
}

.stat-icon.purple { background: rgba(99,102,241,.12); color: var(--primary); }
.stat-icon.green  { background: rgba(16,185,129,.12); color: var(--success); }
.stat-icon.blue   { background: rgba(59,130,246,.12); color: var(--info); }
.stat-icon.yellow { background: rgba(245,158,11,.12); color: var(--warning); }
.stat-icon.red    { background: rgba(239,68,68,.12);  color: var(--danger); }
.stat-icon.cyan   { background: rgba(6,182,212,.12);  color: var(--accent); }

.stat-value {
    font-size: 26px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--dark-3);
    font-weight: 500;
}

.stat-trend {
    font-size: 11px;
    font-weight: 600;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-trend.up   { color: var(--success); }
.stat-trend.down { color: var(--danger); }
.stat-trend.neutral { color: var(--dark-3); }

/* =============================================
   CARDS
   ============================================= */
.card-custom {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
}

.card-header-custom {
    padding: 16px 20px;
    border-bottom: 1px solid var(--light-2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.card-header-custom h5 {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--light-2);
}

.info-row:last-child { border-bottom: none; }
.info-label { font-size: 13px; color: var(--dark-3); display: flex; align-items: center; }
.info-value { font-size: 14px; font-weight: 700; color: var(--dark); }

/* =============================================
   TABLES
   ============================================= */
.table-responsive-custom {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-custom {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    min-width: 600px;
}

.table-custom thead tr {
    background: var(--light);
}

.table-custom th {
    padding: 11px 16px;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--dark-3);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.table-custom td {
    padding: 13px 16px;
    border-bottom: 1px solid #F8FAFC;
    color: var(--dark);
    vertical-align: middle;
}

.table-custom tbody tr:hover { background: var(--primary-light); }
.table-custom tbody tr:last-child td { border-bottom: none; }

/* =============================================
   BADGES & STATUS
   ============================================= */
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.badge-status.active, .badge-status.occupied {
    background: rgba(16,185,129,.1);
    color: #059669;
}

.badge-status.vacant {
    background: rgba(59,130,246,.1);
    color: #2563EB;
}

.badge-status.inactive, .badge-status.terminated, .badge-status.cancelled {
    background: var(--light-2);
    color: var(--dark-3);
}

.badge-status.expired, .badge-status.blacklisted {
    background: rgba(239,68,68,.1);
    color: var(--danger);
}

.badge-status.under_maintenance, .badge-status.in_progress {
    background: rgba(245,158,11,.1);
    color: #D97706;
}

.badge-status.pending, .badge-status.reserved {
    background: rgba(99,102,241,.1);
    color: var(--primary);
}

.badge-status.completed {
    background: rgba(16,185,129,.1);
    color: #059669;
}

/* Priority Badges */
.priority-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.priority-badge.low    { background: rgba(16,185,129,.1);  color: #059669; }
.priority-badge.medium { background: rgba(245,158,11,.1);  color: #D97706; }
.priority-badge.high   { background: rgba(239,68,68,.1);   color: var(--danger); }
.priority-badge.urgent { background: rgba(239,68,68,.15);  color: var(--danger); border: 1px solid rgba(239,68,68,.3); }

/* =============================================
   BUTTONS
   ============================================= */
.btn-primary-custom {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(99,102,241,.3);
}

.btn-primary-custom:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(99,102,241,.4); color: white; }

.btn-success-custom {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(16,185,129,.3);
}

.btn-success-custom:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(16,185,129,.4); color: white; }

.btn-danger-custom {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    background: linear-gradient(135deg, var(--danger), #DC2626);
    color: white;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(239,68,68,.3);
}

.btn-danger-custom:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(239,68,68,.4); color: white; }

.btn-outline-custom {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    background: white;
    color: var(--primary);
    border: 1.5px solid var(--primary);
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

.btn-outline-custom:hover { background: var(--primary); color: white; }
.btn-outline-custom.btn-sm { padding: 5px 12px; font-size: 12px; }

.btn-warning-custom {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    background: linear-gradient(135deg, var(--warning), #D97706);
    color: white;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

.btn-warning-custom:hover { transform: translateY(-2px); color: white; }

/* Action buttons in table */
.btn-sm-action {
    width: 30px; height: 30px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center; justify-content: center;
    font-size: 12px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.btn-sm-action.view   { background: rgba(59,130,246,.1); color: var(--info); }
.btn-sm-action.edit   { background: rgba(245,158,11,.1); color: var(--warning); }
.btn-sm-action.delete { background: rgba(239,68,68,.1);  color: var(--danger); }
.btn-sm-action.pay    { background: rgba(16,185,129,.1); color: var(--success); }
.btn-sm-action.print  { background: rgba(99,102,241,.1); color: var(--primary); }

.btn-sm-action:hover { transform: scale(1.15); }

/* =============================================
   FORMS
   ============================================= */
.form-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    padding: 28px;
}

.form-section-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: .5px;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 8px;
    margin-bottom: 20px;
}

.form-control, .form-select {
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 13.5px;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
    background: var(--light);
    width: 100%;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,.12);
    background: white;
    outline: none;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748B' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

textarea.form-control { resize: vertical; min-height: 90px; }

.form-label { font-weight: 600; font-size: 12.5px; color: var(--dark-2); margin-bottom: 6px; display: block; }

/* =============================================
   ALERTS
   ============================================= */
.alert-custom {
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.alert-custom.success {
    background: rgba(16,185,129,.1);
    color: #065F46;
    border: 1px solid rgba(16,185,129,.25);
}

.alert-custom.danger {
    background: rgba(239,68,68,.1);
    color: #991B1B;
    border: 1px solid rgba(239,68,68,.2);
}

.alert-custom.warning {
    background: rgba(245,158,11,.1);
    color: #92400E;
    border: 1px solid rgba(245,158,11,.2);
}

.alert-custom.info {
    background: rgba(59,130,246,.1);
    color: #1E40AF;
    border: 1px solid rgba(59,130,246,.2);
}

/* =============================================
   SEARCH / FILTER BAR
   ============================================= */
.filter-bar {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 14px 18px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.search-box {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.search-box i {
    position: absolute;
    left: 12px; top: 50%;
    transform: translateY(-50%);
    color: var(--dark-3);
    font-size: 13px;
}

.search-box input {
    padding-left: 36px;
    min-width: 0;
}

/* =============================================
   PROPERTY CARDS (Grid)
   ============================================= */
.property-card {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

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

.property-thumb {
    height: 150px;
    background: linear-gradient(135deg, var(--primary-light), rgba(139,92,246,.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--primary);
    position: relative;
    overflow: hidden;
}

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

.property-thumb .type-badge {
    position: absolute;
    top: 10px; left: 10px;
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(4px);
    color: var(--primary);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.property-body { padding: 16px; }
.property-name { font-size: 15px; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.property-address { font-size: 12px; color: var(--dark-3); margin-bottom: 12px; }

.property-stats {
    display: flex;
    gap: 0;
    border-top: 1px solid var(--light-2);
    margin-top: 12px;
    padding-top: 12px;
}

.property-stat {
    flex: 1;
    text-align: center;
    border-right: 1px solid var(--light-2);
}

.property-stat:last-child { border-right: none; }
.property-stat-val { font-size: 16px; font-weight: 800; color: var(--primary); }
.property-stat-lbl { font-size: 10px; color: var(--dark-3); }

/* =============================================
   EMPTY STATE
   ============================================= */
.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: var(--dark-3);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: .35;
    display: block;
}

.empty-state h5 { font-size: 15px; font-weight: 600; color: var(--dark-3); margin: 0; }
.empty-state p  { font-size: 13px; margin-top: 6px; }

/* =============================================
   DETAIL VIEW
   ============================================= */
.detail-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid var(--light-2);
    gap: 12px;
    align-items: baseline;
}

.detail-row:last-child { border-bottom: none; }
.detail-label { font-size: 12px; color: var(--dark-3); font-weight: 500; flex-shrink: 0; width: 150px; }
.detail-value { font-size: 13.5px; color: var(--dark); font-weight: 600; }

/* =============================================
   RECEIPT / PRINT
   ============================================= */
.receipt-box {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 24px;
    background: linear-gradient(135deg, #FAFAFA, white);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
        box-shadow: var(--shadow-lg);
    }

    .main-header { left: 0; }
    .main-content { margin-left: 0; }
    .mobile-bottom-nav { display: flex; }
    .content-wrapper { padding: 20px 16px 90px; }
}

@media (max-width: 575.98px) {
    .page-header { flex-direction: column; align-items: flex-start; }
    .page-header h2 { font-size: 18px; }
    .stat-value { font-size: 20px; }
    .form-card { padding: 18px; }
    .card-body-custom { padding: 14px; }
    .content-wrapper { padding: 16px 12px 90px; }
    .detail-label { width: 110px; }
    .filter-bar { flex-direction: column; align-items: stretch; }
    .search-box { min-width: 100%; }
}

@media print {
    .sidebar, .main-header, .mobile-bottom-nav, .no-print { display: none !important; }
    .main-content { margin: 0; padding: 0; }
    body { background: white; }
}
