/**
 * Sistema RentyZen v2
 * Estilos Principales
 */

/* ========================================
   CSS Variables & Theme
   ======================================== */
:root {
    /* Primary Colors - RentyZen Green (from image) */
    --primary-50: #f7fee7;
    --primary-100: #ecfccb;
    --primary-200: #d9f99d;
    --primary-300: #bef264;
    --primary-400: #a3e635;
    --primary-500: #8cc63f;
    /* The main green from image */
    --primary-600: #7ab135;
    --primary-700: #65932d;
    --primary-800: #4f7324;
    --primary-900: #3f5d1d;

    /* Secondary Colors - Elegant Purple */
    --secondary-500: #8b5cf6;
    --secondary-600: #7c3aed;

    /* Accent Colors */
    --accent-teal: #14b8a6;
    --accent-amber: #f59e0b;
    --accent-rose: #f43f5e;
    --accent-emerald: #10b981;

    /* Neutrals - Slate Blue (from image) */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #33475b;
    /* Slate from hero background */
    --gray-800: #2d3e50;
    --gray-900: #1e2936;

    /* Semantic Colors */
    --success: #10b981;
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --info: #3b82f6;
    --info-light: #dbeafe;

    /* Layout */
    --sidebar-width: 280px;
    --sidebar-collapsed-width: 80px;
    --navbar-height: 70px;
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 40px rgba(140, 198, 63, 0.15);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    --gradient-dark: linear-gradient(135deg, var(--gray-700) 0%, var(--gray-800) 100%);
    --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
}

/* ========================================
   Base Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray-700);
    background: var(--gray-100);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

/* ========================================
   Layout - App Container
   ======================================== */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* ========================================
   Sidebar
   ======================================== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--gradient-dark);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: width var(--transition-base), transform var(--transition-base);
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.sidebar-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: padding var(--transition-base);
}

.sidebar.collapsed .sidebar-header {
    padding: 1rem 0.5rem;
    justify-content: center;
}

.sidebar.collapsed .sidebar-toggle#sidebarCollapse i {
    transform: rotate(180deg);
}

.sidebar.collapsed .sidebar-toggle#sidebarClose {
    display: none !important;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1rem 0;
}

.sidebar-logo-img {
    max-width: 220px;
    max-height: 65px;
    object-fit: contain;
    transition: all var(--transition-base);
}

.sidebar.collapsed .full-logo {
    display: none !important;
}

.sidebar.collapsed .mini-logo {
    display: block !important;
    max-height: 40px;
}

.sidebar.collapsed .sidebar-brand {
    padding: 0.5rem 0;
}

.sidebar-brand:hover {
    color: #fff;
}

.brand-icon {
    width: 42px;
    height: 42px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(140, 198, 63, 0.4);
}

.sidebar-toggle {
    background: transparent;
    border: none;
    color: var(--gray-400);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color var(--transition-fast);
}

.sidebar-toggle:hover {
    color: #fff;
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
}

/* Sidebar Scrollbar Customization */
.sidebar-nav::-webkit-scrollbar {
    width: 8px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Firefox support */
.sidebar-nav {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.05);
}

.nav-list {
    list-style: none;
    padding: 0 0.75rem;
}

.nav-divider {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-500);
    padding: 1.25rem 1rem 0.5rem;
    margin-top: 0.5rem;
    white-space: nowrap;
}

.sidebar.collapsed .nav-divider {
    display: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    color: var(--gray-400);
    border-radius: var(--border-radius-sm);
    margin-bottom: 0.25rem;
    transition: all var(--transition-fast);
    font-weight: 500;
}

.nav-link i {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

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

.nav-link.active {
    color: #fff;
    background: var(--gradient-primary);
    box-shadow: 0 4px 12px rgba(140, 198, 63, 0.3);
}

.sidebar.collapsed .nav-link span {
    display: none;
}

.sidebar.collapsed .nav-link {
    justify-content: center;
    padding: 0.875rem 0;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-300);
    font-size: 1.5rem;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
}

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

.sidebar.collapsed .user-details {
    display: none;
}

.sidebar.collapsed .sidebar-footer {
    padding: 1rem 0;
    display: flex;
    justify-content: center;
}

/* ========================================
   Main Content Area
   ======================================== */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left var(--transition-base);
}

.main-content.sidebar-collapsed {
    margin-left: var(--sidebar-collapsed-width);
}

/* Top Navbar */
.top-navbar {
    height: var(--navbar-height);
    background: #fff;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-toggle {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-600);
    cursor: pointer;
    padding: 0.5rem;
    display: none;
}

.page-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-dropdown {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-600);
    font-weight: 500;
    text-decoration: none;
}

.user-dropdown::after {
    display: none;
}

.user-dropdown i {
    font-size: 1.75rem;
}

/* Page Content */
.page-content {
    flex: 1;
    padding: 1.5rem;
}

/* ========================================
   Cards
   ======================================== */
.card {
    background: #fff;
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition-base);
    display: flex;
    flex-direction: column;
}

/* Equal height cards when in a row */
/* 
.row>[class*="col-"]>.card {
    height: 100%;
} 
*/
/* FORCE AUTO HEIGHT TO FIX EDIT PAGE */
.row>[class*="col-"]>.card {
    height: auto !important;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--gray-200);
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    color: var(--gray-800);
}

.card-body {
    padding: 1.5rem;
    flex: 1;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

/* Stat Cards */
.stat-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all var(--transition-base);
    border: 1px solid transparent;
    height: 100%;
}

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

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
}

.stat-icon.primary {
    background: var(--gradient-primary);
    box-shadow: 0 4px 12px rgba(140, 198, 63, 0.3);
}

.stat-icon.success {
    background: linear-gradient(135deg, var(--accent-emerald) 0%, var(--accent-teal) 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.stat-icon.warning {
    background: linear-gradient(135deg, var(--accent-amber) 0%, #fb923c 100%);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.stat-icon.danger {
    background: linear-gradient(135deg, var(--accent-rose) 0%, #ef4444 100%);
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.3);
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray-500);
    margin-top: 0.125rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.stat-trend {
    font-size: 0.75rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.stat-trend.up {
    color: var(--success);
}

.stat-trend.down {
    color: var(--danger);
}

/* ========================================
   Tables
   ======================================== */
.table-responsive {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.table {
    margin-bottom: 0;
}

.table thead th {
    background: var(--gray-50);
    border-bottom: 2px solid var(--gray-200);
    color: var(--gray-600);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem 1.25rem;
    white-space: nowrap;
}

.table tbody td {
    padding: 1rem 1.25rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
}

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

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

/* ========================================
   Buttons
   ======================================== */
.btn {
    font-weight: 500;
    border-radius: var(--border-radius-sm);
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    box-shadow: 0 4px 12px rgba(140, 198, 63, 0.25);
}

.btn-primary:hover {
    background: var(--primary-700);
    box-shadow: 0 6px 16px rgba(140, 198, 63, 0.35);
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, var(--accent-emerald) 0%, var(--accent-teal) 100%);
    border: none;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.btn-success:hover {
    background: var(--accent-emerald);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
    transform: translateY(-1px);
}

.btn-danger {
    background: linear-gradient(135deg, var(--accent-rose) 0%, var(--danger) 100%);
    border: none;
}

.btn-warning {
    background: linear-gradient(135deg, var(--accent-amber) 0%, #fb923c 100%);
    border: none;
    color: #fff;
}

.btn-warning:hover {
    color: #fff;
}

.btn-outline-primary {
    border: 2px solid var(--primary-500);
    color: var(--primary-600);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-500);
    border-color: var(--primary-500);
    color: #fff;
}

.btn-light {
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    color: var(--gray-700);
}

.btn-light:hover {
    background: var(--gray-200);
    color: var(--gray-800);
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

.btn-icon {
    width: 38px;
    height: 38px;
    padding: 0;
    justify-content: center;
}

.btn-icon.btn-sm {
    width: 32px;
    height: 32px;
}

/* ========================================
   Forms
   ======================================== */
.form-label {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-control,
.form-select {
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius-sm);
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
    color: var(--gray-800);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(140, 198, 63, 0.1);
    outline: none;
}

.form-control::placeholder {
    color: var(--gray-400);
}

.form-control.is-invalid {
    border-color: var(--danger);
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.invalid-feedback {
    font-size: 0.8125rem;
    color: var(--danger);
    margin-top: 0.375rem;
}

.form-text {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-top: 0.375rem;
}

.form-check-input {
    width: 1.125rem;
    height: 1.125rem;
    margin-top: 0.125rem;
}

.form-check-input:checked {
    background-color: var(--primary-500);
    border-color: var(--primary-500);
}

.form-check-label {
    color: var(--gray-700);
    cursor: pointer;
}

.input-group-text {
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-right: none;
    color: var(--gray-500);
}

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

.input-group .form-control:focus {
    border-color: var(--gray-200);
}

.input-group:focus-within .input-group-text {
    border-color: var(--primary-500);
}

.input-group:focus-within .form-control {
    border-color: var(--primary-500);
}

/* ========================================
   Badges
   ======================================== */
.badge {
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    border-radius: 50px;
    letter-spacing: 0.025em;
}

.badge.bg-success {
    background: var(--success-light) !important;
    color: var(--success);
}

.badge.bg-warning {
    background: var(--warning-light) !important;
    color: #b45309;
}

.badge.bg-danger {
    background: var(--danger-light) !important;
    color: var(--danger);
}

.badge.bg-info {
    background: var(--info-light) !important;
    color: var(--info);
}

.badge.bg-secondary {
    background: var(--gray-200) !important;
    color: var(--gray-600);
}

/* ========================================
   Alerts
   ======================================== */
.alert {
    border: none;
    border-radius: var(--border-radius);
    padding: 1rem 1.25rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background: var(--success-light);
    color: #065f46;
}

.alert-danger {
    background: var(--danger-light);
    color: #991b1b;
}

.alert-warning {
    background: var(--warning-light);
    color: #92400e;
}

.alert-info {
    background: var(--info-light);
    color: #1e40af;
}

/* ========================================
   Modals
   ======================================== */
.modal-content {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.modal-header {
    border-bottom: 1px solid var(--gray-200);
    padding: 1.25rem 1.5rem;
}

.modal-title {
    font-weight: 700;
    color: var(--gray-800);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--gray-200);
    padding: 1rem 1.5rem;
}

.btn-close:focus {
    box-shadow: none;
}

/* ========================================
   Page Header
   ======================================== */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-header-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0;
}

.page-header-subtitle {
    color: var(--gray-500);
    font-size: 0.9375rem;
    margin-top: 0.25rem;
}

/* ========================================
   Search & Filters
   ======================================== */
.search-box {
    position: relative;
}

.search-box .form-control {
    padding-left: 2.75rem;
}

.search-box .search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
}

.filter-bar {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

/* ========================================
   Empty State
   ======================================== */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--gray-400);
}

.empty-state-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.empty-state-text {
    color: var(--gray-500);
    margin-bottom: 1.5rem;
}

/* ========================================
   Login Page
   ======================================== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-dark);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 60%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-5%, -5%);
    }
}

.login-container {
    max-width: 420px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.login-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    padding: 2.5rem;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo-img {
    max-width: 280px;
    height: auto;
    margin-bottom: 1.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.login-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.375rem;
}

.login-subtitle {
    color: var(--gray-500);
    font-size: 0.9375rem;
}

.login-form .form-control {
    padding: 0.875rem 1rem;
}

.login-form .btn-primary {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    width: 100%;
}

/* ========================================
   Action Buttons Group
   ======================================== */
.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.action-buttons .btn {
    padding: 0.5rem;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   Sidebar Overlay (Mobile)
   ======================================== */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
        z-index: 9999;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .sidebar-overlay {
        z-index: 9998;
    }

    .top-navbar {
        z-index: 900;
    }

    .main-content {
        margin-left: 0;
    }

    .menu-toggle {
        display: block;
    }

    /* Mobile Bottom Navigation */
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 65px;
        background: #fff;
        border-top: 1px solid var(--gray-200);
        z-index: 800;
        padding: 0.5rem 0;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    }

    .mobile-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: var(--gray-500);
        font-size: 0.75rem;
        gap: 0.25rem;
        transition: all var(--transition-fast);
    }

    .mobile-nav-item i {
        font-size: 1.25rem;
    }

    .mobile-nav-item.active {
        color: var(--primary-600);
    }

    .mobile-nav-item.active i {
        color: var(--primary-600);
    }

    .main-content {
        padding-bottom: 80px;
        /* Space for bottom nav */
    }
}

@media (max-width: 767.98px) {
    .page-content {
        padding: 1rem;
    }

    .stat-card {
        padding: 1.25rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .table thead th,
    .table tbody td {
        padding: 0.75rem 1rem;
        font-size: 0.8125rem;
    }

    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Responsive Table to Cards */
    .table-responsive-stack .table thead {
        display: none;
    }

    .table-responsive-stack .table tbody td {
        display: block;
        text-align: right;
        padding-left: 50%;
        position: relative;
        border-bottom: 1px solid var(--gray-100);
        min-height: 45px;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }

    .table-responsive-stack .table tbody td:last-child {
        border-bottom: 3px solid var(--gray-200);
        margin-bottom: 0.5rem;
    }

    .table-responsive-stack .table tbody td::before {
        content: attr(data-label);
        position: absolute;
        left: 1rem;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: 700;
        color: var(--gray-600);
        font-size: 0.75rem;
        text-transform: uppercase;
    }

    /* Adjustments for specific tables */
    .stat-card {
        margin-bottom: 0.5rem;
    }

    .quick-action-btn {
        padding: 1rem 0.5rem;
    }
}

@media (max-width: 575.98px) {
    .login-card {
        padding: 2rem 1.5rem;
    }

    .card-body {
        padding: 1.25rem;
    }

    .btn {
        padding: 0.5rem 1rem;
    }
}

/* ========================================
   Utilities
   ======================================== */
.text-muted {
    color: var(--gray-500) !important;
}

.fw-semibold {
    font-weight: 600;
}

.rounded-lg {
    border-radius: var(--border-radius-lg);
}

.shadow-glow {
    box-shadow: var(--shadow-glow);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease forwards;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* Property Image Grid */
.property-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.property-image-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    background: var(--gray-100);
}

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

.property-image-item .remove-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 28px;
    height: 28px;
    background: rgba(239, 68, 68, 0.9);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.property-image-item:hover .remove-btn {
    opacity: 1;
}

/* Avatar */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9375rem;
}

.avatar-lg {
    width: 56px;
    height: 56px;
    font-size: 1.25rem;
}

.avatar-sm {
    width: 32px;
    height: 32px;
    font-size: 0.8125rem;
}

/* Info List */
.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    display: flex;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.info-list li:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: var(--gray-600);
    min-width: 140px;
}

.info-value {
    color: var(--gray-800);
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.quick-action-btn {
    flex: 1;
    min-width: 120px;
    padding: 1.25rem;
    background: #fff;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.quick-action-btn:hover {
    border-color: var(--primary-500);
    background: var(--primary-50);
}

.quick-action-btn i {
    font-size: 1.5rem;
    color: var(--primary-500);
    margin-bottom: 0.5rem;
    display: block;
}

.quick-action-btn span {
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.875rem;
}

/* ========================================
   Image Gallery & Lightbox
   ======================================== */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.gallery-item a {
    display: block;
    position: relative;
}

.gallery-image {
    transition: transform var(--transition-base), filter var(--transition-base);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.8), rgba(139, 92, 246, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
    border-radius: var(--border-radius);
}

.gallery-overlay i {
    font-size: 2.5rem;
    color: #fff;
    transform: scale(0.5);
    transition: transform var(--transition-base);
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

/* Property Card Gallery */
.property-card-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.property-card-image a {
    display: block;
}

.property-card-image img {
    transition: transform var(--transition-base);
}

.property-card-image:hover img {
    transform: scale(1.08);
}

.property-card-image .gallery-overlay {
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

/* GLightbox Custom Styling */
.gslide-title {
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    font-size: 1.25rem !important;
}

.gslide-desc {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.875rem !important;
    color: rgba(255, 255, 255, 0.8) !important;
}

.glightbox-container .gclose,
.glightbox-container .gnext,
.glightbox-container .gprev {
    transition: all var(--transition-fast);
}

.glightbox-container .gclose:hover,
.glightbox-container .gnext:hover,
.glightbox-container .gprev:hover {
    transform: scale(1.1);
}

/* Single Image Click Effect */
.clickable-image {
    cursor: pointer;
    transition: all var(--transition-base);
    border-radius: var(--border-radius);
}

.clickable-image:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}