/* Base Styles */
:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --secondary: #6b7280;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --gray-100: #f9fafb;
    --gray-200: #f3f4f6;
    --gray-300: #e5e7eb;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 0.375rem;
}

/* Utility Classes */
/* Flexbox */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-1 { flex: 1; }

/* Spacing */
.p-4 { padding: 1rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.m-4 { margin: 1rem; }
.mt-2 { margin-top: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mr-2 { margin-right: 0.5rem; }

/* Typography */
.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }

/* Colors */
.bg-white { background-color: white; }
.bg-gray-100 { background-color: var(--gray-100); }
.text-gray-700 { color: var(--gray-700); }
.text-gray-900 { color: var(--gray-900); }

/* Borders */
.rounded { border-radius: var(--border-radius); }
.border { border: 1px solid var(--gray-300); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

/* Forms */
.form-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

/* Grid */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gap-4 { gap: 1rem; }

/* Responsive */
@media (min-width: 640px) {
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Animations */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Overlay */
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.bg-black { background-color: rgba(0, 0, 0, 0.5); }
.z-50 { z-index: 50; }
.hidden { display: none; }

/* Modal */
.modal {
    background: white;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

/* Table */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 0.75rem; text-align: left; border-bottom: 1px solid var(--gray-200); }
.table th { background-color: var(--gray-100); font-weight: 600; }

/* Add any additional custom styles below this line */

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--gray-100);
    color: var(--gray-900);
    line-height: 1.5;
}

/* Layout */
.h-screen {
    height: 100vh;
}

.overflow-hidden {
    overflow: hidden;
}
/* ======================
   RESPONSIVE SIDEBAR
   ====================== */

   #sidebar {
    width: 250px;
    height: 100vh;
    background-color: var(--gray-800);
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  }
  
  #sidebar .p-4 {
    padding: 1.25rem;
  }
  
  #sidebar h1 {
    font-size: 1.35rem;
  }
  
  #sidebar nav a {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    margin: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    color: var(--gray-300);
    text-decoration: none;
    transition: all 0.2s ease;
  }
  
  #sidebar nav a:hover,
  #sidebar nav a.active {
    background-color: var(--gray-700);
    color: white;
  }
  
  #sidebar nav a i {
    width: 1.5rem;
    margin-right: 0.75rem;
    text-align: center;
  }
  
  #closeSidebar {
    display: none;
  }
  
  /* Main content adjustment */
  .main-content {
    margin-left: 250px;
    transition: margin-left 0.3s ease-in-out;
  }
  
  /* Overlay for mobile */
  .overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }
  
  .overlay.show {
    display: block;
  }
  
  /* Mobile menu button */
  #menuToggle {
    display: none;
  }
  
  /* Responsive behavior */
  @media (max-width: 1200px) {
    /* Large tablets and small laptops */
    #sidebar {
      width: 220px;
    }
    
    .main-content {
      margin-left: 220px;
    }
  }
  
  @media (max-width: 992px) {
    /* Tablets */
    #sidebar {
      transform: translateX(-100%);
      width: 260px;
    }
    
    #sidebar.show {
      transform: translateX(0);
    }
    
    #closeSidebar {
      display: block;
    }
    
    .main-content {
      margin-left: 0;
    }
    
    #menuToggle {
      display: flex;
      align-items: center;
      justify-content: center;
    }
    
    /* When sidebar is open, shift content slightly */
    .main-content.shifted {
      transform: translateX(260px);
    }
  }
  
  @media (max-width: 768px) {
    /* Mobile devices */
    #sidebar {
      width: 280px;
      box-shadow: 4px 0 15px rgba(0, 0, 0, 0.2);
    }
    
    /* When sidebar is open, shift content slightly */
    .main-content.shifted {
      transform: translateX(280px);
    }
  }
  
  @media (max-width: 480px) {
    /* Small mobile devices */
    #sidebar {
      width: 85%;
      max-width: 300px;
    }
    
    /* When sidebar is open, shift content slightly */
    .main-content.shifted {
      transform: translateX(85%);
    }
    
    #sidebar nav a {
      padding: 0.75rem;
      font-size: 0.95rem;
    }
  }
  
  /* TV screens (1920px and above) */
  @media (min-width: 1920px) {
    #sidebar {
      width: 300px;
    }
    
    .main-content {
      margin-left: 300px;
    }
    
    #sidebar h1 {
      font-size: 1.5rem;
    }
    
    #sidebar nav a {
      padding: 1rem 1.25rem;
      font-size: 1.1rem;
    }
    
    #sidebar nav a i {
      font-size: 1.2rem;
      width: 1.75rem;
    }
  }

/* Sidebar */
/* .sidebar {
    width: 16rem;
    height: 100vh;
    background-color: var(--gray-800);
    color: white;
    transition: var(--transition);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 40;
    overflow-y: auto;
}

.sidebar-header {
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--gray-900);
    font-size: 1.25rem;
    font-weight: 700;
}

.sidebar nav {
    padding: 0.5rem 0;
}

.sidebar .nav-section-title {
    padding: 0.5rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sidebar .nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: var(--gray-300);
    text-decoration: none;
    transition: var(--transition);
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background-color: var(--gray-700);
    color: white;
}

.sidebar .nav-link i {
    width: 1.5rem;
    margin-right: 0.75rem;
    text-align: center;
} */

/* Main Content */
.main-content {
    margin-left: 16rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: var(--transition);
}

/* Header */
.header {
    height: 4rem;
    background-color: white;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 30;
}

/* Cards */
.card {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    padding: 1.5rem;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Metrics Cards */
.metric-card {
    display: flex;
    align-items: center;
}

.metric-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.metric-icon.blue {
    background-color: #e0e7ff;
    color: #4f46e5;
}

.metric-icon.green {
    background-color: #d1fae5;
    color: #10b981;
}

.metric-icon.purple {
    background-color: #f3e8ff;
    color: #8b5cf6;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0.25rem 0 0.125rem;
}

.metric-label {
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* Tables */
.table-container {
    overflow-x: auto;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    background-color: white;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 0.75rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

th {
    background-color: var(--gray-50);
    color: var(--gray-600);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr:hover {
    background-color: var(--gray-50);
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.completed {
    background-color: #ecfdf5;
    color: #059669;
}

.status-badge.in-progress {
    background-color: #eff6ff;
    color: #2563eb;
}

.status-badge.pending {
    background-color: #fef3c7;
    color: #d97706;
}

/* Charts */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* Responsive Design */
/* @media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .header {
        padding: 0 1rem;
    }
    
    .card {
        padding: 1rem;
    }
    
    th, td {
        padding: 0.75rem 1rem;
    }
} */

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* User Menu */
.user-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    cursor: pointer;
    transition: var(--transition);
}

.user-avatar:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 50;
    padding: 0.5rem;
    background-color: var(--gray-800);
    color: white;
    border-radius: 0.375rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background-color: var(--gray-700);
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
}

/* Enhanced Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.9375rem;
    line-height: 1.5;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Button Sizes */
.btn-sm {
    padding: 0.4rem 0.875rem;
    font-size: 0.8125rem;
    border-radius: 0.375rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 0.625rem;
}

/* Button Variants */
.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px -1px rgba(59, 130, 246, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
}

.btn-outline:hover {
    background-color: var(--gray-50);
    border-color: var(--gray-400);
}

.btn-ghost {
    background-color: transparent;
    color: var(--gray-700);
}

.btn-ghost:hover {
    background-color: var(--gray-100);
}

/* Button Colors */
.btn-success {
    background-color: var(--success);
    color: white;
}

.btn-success:hover {
    background-color: #0d9d6e;
    box-shadow: 0 4px 12px -1px rgba(16, 185, 129, 0.5);
}

.btn-danger {
    background-color: var(--danger);
    color: white;
}

.btn-danger:hover {
    background-color: #dc2626;
    box-shadow: 0 4px 12px -1px rgba(239, 68, 68, 0.5);
}

.btn-warning {
    background-color: var(--warning);
    color: white;
}

.btn-warning:hover {
    background-color: #e59409;
    box-shadow: 0 4px 12px -1px rgba(245, 158, 11, 0.5);
}

/* Button with Icon */
.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-icon i {
    font-size: 1.1em;
    line-height: 1;
}

/* Ripple Effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

.btn-ripple:focus:not(:active)::after {
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

/* Loading State */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading:after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: button-loading-spinner 0.75s ease infinite;
}

@keyframes button-loading-spinner {
    from {
        transform: rotate(0turn);
    }
    to {
        transform: rotate(1turn);
    }
}

/* Responsive Adjustments */
@media (max-width: 640px) {
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .btn-sm {
        padding: 0.35rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .btn-lg {
        padding: 0.65rem 1.25rem;
        font-size: 0.9375rem;
    }
}

/* Touch Devices */
@media (hover: none) {
    .btn:hover {
        transform: none !important;
        box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
    }
    
    .btn:active {
        transform: scale(0.98) !important;
    }
    
    .btn-primary:active {
        box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.5);
    }
    
    .btn-outline:active {
        background-color: var(--gray-100);
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .btn-outline {
        border-color: var(--gray-700);
        color: var(--gray-200);
    }
    
    .btn-outline:hover {
        background-color: var(--gray-800);
        border-color: var(--gray-600);
    }
    
    .btn-ghost:hover {
        background-color: var(--gray-800);
    }
}

/* Disabled State */
.btn:disabled,
.btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Button Groups */
.btn-group {
    display: inline-flex;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.btn-group .btn {
    border-radius: 0;
    margin: 0;
    box-shadow: none;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-group .btn:first-child {
    border-top-left-radius: 0.5rem;
    border-bottom-left-radius: 0.5rem;
}

.btn-group .btn:last-child {
    border-top-right-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
    border-right: none;
}

/* Floating Action Button */
.btn-fab {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-fab.btn-sm {
    width: 40px;
    height: 40px;
}

.btn-fab.btn-lg {
    width: 64px;
    height: 64px;
}

/* Responsive adjustments for the rest of the UI */
@media (max-width: 768px) {
    /* Make sure tables are scrollable on mobile */
    .table-container {
        border-radius: 0.5rem;
        margin: 0 -1rem;
        width: calc(100% + 2rem);
    }
    
    /* Adjust card padding on mobile */
    .card {
        padding: 1.25rem;
    }
    
    /* Make sure buttons have enough touch target size */
    .btn {
        min-height: 44px;
    }
    
    /* Adjust form elements */
    input, select, textarea {
        font-size: 16px !important; /* Prevents iOS zoom on focus */
    }
}

/* Improve button feedback on touch devices */
@media (hover: none) {
    .btn:active {
        transform: scale(0.98);
    }
    
    .btn-primary:active {
        box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.5);
    }
    
    .btn-outline:active {
        background-color: var(--gray-100);
    }
}

/* Add smooth scrolling for better UX */
html {
    scroll-behavior: smooth;
}

/* Focus styles for better accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.5);
}

/* Add a subtle animation for page transitions */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}

/* Make sure interactive elements have enough space on mobile */
@media (max-width: 480px) {
    .btn {
        padding: 0.75rem 1rem;
    }
    
    .btn-icon {
        padding: 0.65rem 1rem;
    }
    
    .btn-icon i {
        margin-right: 0.5rem;
    }
}

/* Loading Overlay */
#loadingOverlay {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

#loadingOverlay.show {
    display: flex !important;
}

#loadingOverlay .spinner-border {
    width: 3rem;
    height: 3rem;
    color: #ffffff;
}

#loadingOverlay p {
    color: #ffffff;
    margin-top: 1rem;
    font-size: 1.1rem;
}

/* Media Gallery Styles */
.media-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.media-item {
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background-color: #fff;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.media-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.media-item.video .media-thumbnail {
    position: relative;
}

.media-item.video::before {
    content: '\f144';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 2;
    opacity: 0.9;
    transition: transform 0.2s ease;
}

.media-item.video:hover::before {
    transform: translate(-50%, -50%) scale(1.1);
}

.media-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 1rem;
    color: white;
    transform: translateY(100%);
    transition: transform 0.2s ease;
    backdrop-filter: blur(4px);
}

.media-item:hover .media-overlay {
    transform: translateY(0);
}

.media-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.media-date {
    font-size: 0.75rem;
    opacity: 0.9;
}

.media-actions {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.media-item:hover .media-actions {
    opacity: 1;
}

.media-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.media-btn:hover {
    background-color: var(--primary);
    color: white;
    transform: scale(1.1);
}

.media-btn.delete:hover {
    background-color: var(--danger);
}

/* Upload Modal Styles */
#uploadMediaModal .modal-dialog {
    max-width: 500px;
}

.upload-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
    max-height: 300px;
    overflow-y: auto;
    padding: 0.5rem;
}

.upload-preview-item {
    position: relative;
    border-radius: 0.375rem;
    overflow: hidden;
    aspect-ratio: 1;
    background-color: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-preview-item img,
.upload-preview-item video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.upload-preview-item .remove-upload {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--danger);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.upload-preview-item:hover .remove-upload {
    opacity: 1;
}

/* Preview Modal Styles */
#mediaPreviewModal .modal-dialog {
    max-width: 90%;
    max-height: 90vh;
    margin: 1.75rem auto;
}

#mediaPreviewModal .modal-content {
    background-color: transparent;
    border: none;
}

#mediaPreviewModal .carousel-item {
    max-height: 70vh;
}

#mediaPreviewModal .carousel-item img {
    max-height: 70vh;
    width: auto;
    margin: 0 auto;
    object-fit: contain;
}

#mediaPreviewModal .carousel-item video {
    max-height: 70vh;
    width: 100%;
    object-fit: contain;
    outline: none;
}

#mediaPreviewModal .carousel-control-prev,
#mediaPreviewModal .carousel-control-next {
    width: 8%;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

#mediaPreviewModal .carousel-control-prev:hover,
#mediaPreviewModal .carousel-control-next:hover {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .media-gallery {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1rem;
    }
    
    #mediaPreviewModal .carousel-item,
    #mediaPreviewModal .carousel-item img,
    #mediaPreviewModal .carousel-item video {
        max-height: 60vh;
    }
}

@media (max-width: 576px) {
    .media-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    #mediaPreviewModal .carousel-control-prev,
    #mediaPreviewModal .carousel-control-next {
        width: 12%;
    }
}

/* Empty state */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    text-align: center;
    color: var(--gray-500);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.empty-state p {
    max-width: 400px;
    margin: 0 auto;
}

/* Drag and drop styles */
.upload-drop-zone {
    border: 2px dashed var(--gray-300);
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    margin: 1rem 0;
    transition: all 0.2s ease;
    cursor: pointer;
}

.upload-drop-zone:hover,
.upload-drop-zone.dragover {
    border-color: var(--primary);
    background-color: rgba(79, 70, 229, 0.05);
}

.upload-drop-zone i {
    font-size: 2rem;
    color: var(--gray-400);
    margin-bottom: 0.5rem;
    display: block;
}

.upload-drop-zone p {
    margin: 0;
    color: var(--gray-600);
}

.upload-drop-zone .small {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-top: 0.5rem;
}

/* Progress bar */
#uploadProgressContainer {
    margin-top: 1.5rem;
    padding: 0.5rem;
    background-color: var(--gray-100);
    border-radius: 0.5rem;
}

#uploadProgress {
    height: 8px;
    border-radius: 4px;
}

#uploadFileName {
    font-weight: 500;
    color: var(--gray-700);
}
/* =========================
   Mobile polish for pd.html
   ========================= */

/* 1) Sidebar: hide by default on small screens but keep accessible */
/* @media (max-width: 992px) { */
    /* move sidebar off-canvas (keeps DOM structure unchanged for JS) */
    /* .sidebar {
      transform: translateX(-100%);
      transition: transform 0.22s ease;
      position: fixed;
      z-index: 60;
      width: 14rem; 
      box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
    } */
  
    /* when toggled by JS, you'll add .active to show it — existing code already uses that name */
    /* .sidebar.active {
      transform: translateX(0);
    }
   */
    /* ensure main content takes full width */
    /* .main-content, main, #contentArea {
      margin-left: 0 !important;
      width: 100%;
    } */
  
    /* make the mobile menu button visible (you already have .mobile-menu-btn) */
    /* .mobile-menu-btn { display: block; }
  }
   */
  /* 2) Force form columns and info columns to stack on narrow screens */
  @media (max-width: 768px) {
    /* convert any .col-md-6 pair into full width on mobile */
    .col-md-6, .col-lg-6 {
      width: 100% !important;
      max-width: 100%;
      padding-left: 0.5rem;
      padding-right: 0.5rem;
      box-sizing: border-box;
    }
  
    /* reduce card padding slightly to fit more content */
    .card { padding: 1rem; }
  
    /* make headings slightly smaller */
    .h2, h1.h2 { font-size: 1.25rem; }
  
    /* larger tap targets for action buttons */
    .btn, .btn-sm {
      min-height: 44px;
      padding: 0.6rem 0.9rem;
    }
  }
  
  /* 3) Tab nav - make horizontal scrollable when tabs overflow */
  #propertyTabs {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0.25rem;
    padding-bottom: 0.25rem;
  }
  #propertyTabs .nav-item { flex: 0 0 auto; }
  #propertyTabs button.nav-link {
    white-space: nowrap;
    margin-right: 0.25rem;
  }
  
  /* 4) Media thumbnails & gallery responsiveness */
  .media-thumbs, .media-thumbs img, #mediaThumbs, .thumb {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: cover;
    border-radius: 0.375rem;
    display: block;
  }
  
  /* responsive thumbnail grid */
  .media-grid, .thumb-grid {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(3, 1fr);
  }
  @media (max-width: 768px) {
    .media-grid, .thumb-grid { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 420px) {
    .media-grid, .thumb-grid { grid-template-columns: repeat(1, 1fr); }
  }
  
  /* 5) Card / grid improvements (applies to amenities, media, documents card wrappers) */
  .property-cards-wrapper,
  #amenitiesList,
  #documentsListWrapper,
  #mediaListWrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  
  /* default: full width card on very small screens */
  .property-cards-wrapper .card,
  #amenitiesList .card,
  #documentsListWrapper .card,
  #mediaListWrapper .card {
    flex: 1 1 calc(100% - 0.75rem);
    min-width: 160px;
  }
  
  /* 2-col on small tablets */
  @media (min-width: 576px) {
    .property-cards-wrapper .card,
    #amenitiesList .card,
    #documentsListWrapper .card,
    #mediaListWrapper .card {
      flex: 1 1 calc(50% - 0.75rem);
    }
  }
  
  /* 3-col on desktop */
  @media (min-width: 992px) {
    .property-cards-wrapper .card,
    #amenitiesList .card,
    #documentsListWrapper .card,
    #mediaListWrapper .card {
      flex: 1 1 calc(33.333% - 0.75rem);
    }
  }
  
  /* 6) Improve tables further: make action column sticky (keeps buttons visible when scrolling) */
  .table-responsive {
    position: relative;
  }
  @media (max-width: 720px) {
    .table-responsive table { min-width: 720px; }
    /* make the last column (actions) sticky to the right while table scrolls */
    .table td:last-child, .table th:last-child {
      position: sticky;
      right: 0;
      background: linear-gradient(90deg, rgba(255,255,255,0.95), rgba(255,255,255,0.8));
      z-index: 5;
    }
  }
  
  /* 7) Touch & accessibility improvements */
  button, .btn, .nav-link, a {
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0,0,0,0.05);
  }
  
  /* larger checkboxes / select fields */
  .form-select, .form-input, select, input[type="text"], textarea {
    min-height: 44px;
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
  }
  
  /* 8) Minor visual tuning for cramped viewports */
  @media (max-width: 420px) {
    body { font-size: 14px; }
    .card { padding: 0.85rem; }
    .btn { padding: 0.5rem 0.75rem; font-size: 0.9rem; }
  }
  
  /* 9) Optional pinned bottom actions (use only if you later want quick actions on mobile)
     Uncomment when you want to enable an always-visible bottom action bar:
  */
  /*
  .mobile-action-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(255,255,255,0.98);
    border-top: 1px solid rgba(0,0,0,0.06);
    justify-content: center;
  }
  */
  
  /* 10) Ensure icons / badges look clean on mobile */
  .badge, .status-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    white-space: nowrap;
  }
  /* ============================
   Extracted from <style> in property.html
   ============================ */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    flex-direction: column;
  }
  
  .loading-content {
    text-align: center;
    max-width: 300px;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  .spinner-border {
    width: 3rem;
    height: 3rem;
  }
  
  #loginPrompt .card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
  }
  
  #loginPrompt .card-body {
    padding: 2.5rem;
  }
  
  #loginPrompt .btn {
    min-width: 150px;
  }
  
  /* ============================
     Mobile responsive improvements
     ============================ */
  
  /* 1) Sidebar - off-canvas on small screens */
  /* @media (max-width: 992px) {
    #sidebar {
      left: -260px !important;
      width: 250px !important;
      transition: left 0.22s ease;
      position: fixed;
      top: 0;
      bottom: 0;
      z-index: 1050;
      box-shadow: 2px 8px 28px rgba(2,6,23,0.18);
      will-change: left;
    }
    #sidebar.show { left: 0 !important; }
    #overlay { display: none; }
    #overlay.show { display: block; position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 1040; }
  
    .main-content, main, #contentArea {
      margin-left: 0 !important;
      width: 100%;
    }
   */
    /* .mobile-menu-btn, .navbar-toggler, #menuToggle { display: block !important; }
  } */
  
  /* 2) Table responsiveness */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
  }
  .table th, .table td {
    white-space: nowrap;
    vertical-align: middle;
    text-overflow: ellipsis;
    overflow: hidden;
  }
  .table td .btn, .table td button, .table td a.btn { white-space: nowrap; }
  @media (max-width: 992px) {
    .table-responsive table { min-width: 760px; }
  }
  @media (max-width: 760px) {
    .table th:last-child, .table td:last-child {
      position: sticky;
      right: 0;
      background: linear-gradient(90deg, rgba(255,255,255,0.95), rgba(255,255,255,0.8));
      z-index: 6;
      padding-left: 0.5rem;
      padding-right: 0.75rem;
    }
  }
  @media (max-width: 420px) {
    .table th, .table td { white-space: normal; font-size: 0.92rem; }
    .table-responsive table { min-width: 100%; }
  }
  
  /* 3) Collapse grid columns */
  @media (max-width: 768px) {
    .col-md-4, .col-md-6, .col-lg-6, .col-md-8 {
      width: 100% !important;
      max-width: 100% !important;
      flex: 0 0 100% !important;
      padding-left: 0.5rem;
      padding-right: 0.5rem;
      box-sizing: border-box;
    }
    .card { padding: 0.9rem; }
    .card .card-body { padding: 0.9rem; }
    .h2, h1.h2 { font-size: 1.25rem; }
    .btn, .btn-sm { min-height: 44px; padding: 0.6rem 0.9rem; }
  }
  
  /* 4) Amenity checkboxes */
  #amenitiesContainer { display: flex; flex-wrap: wrap; gap: 0.5rem; }
  #amenitiesContainer .col-md-4 {
    flex: 1 1 100%;
    min-width: 0;
    padding-left: 0;
    padding-right: 0;
  }
  @media (min-width: 576px) and (max-width: 991px) {
    #amenitiesContainer .col-md-4 { flex: 1 1 calc(50% - 0.5rem); }
  }
  @media (min-width: 992px) {
    #amenitiesContainer .col-md-4 { flex: 1 1 calc(33.333% - 0.5rem); }
  }
  
  /* 5) Media thumbnails */
  .media-grid, .thumb-grid, .properties-media-grid {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(3, 1fr);
  }
  @media (max-width: 768px) { .media-grid, .thumb-grid { grid-template-columns: repeat(2,1fr); } }
  @media (max-width: 420px) { .media-grid, .thumb-grid { grid-template-columns: 1fr; } }
  .media-grid img, .thumb-grid img, .media-thumbs img, .thumb {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 6px;
    display: block;
  }
  
  /* 6) Modals on small devices */
  @media (max-width: 576px) {
    .modal-dialog { max-width: 95%; margin: 0.5rem auto; }
    .modal-content { height: calc(100vh - 2.5rem); overflow-y: auto; border-radius: 0.5rem; }
    .modal-header, .modal-footer { position: sticky; z-index: 3; background: #fff; }
    .modal-header { top: 0; }
    .modal-footer { bottom: 0; }
  }
  
  /* 7) Pagination tweaks */
  .pagination { gap: 0.25rem; }
  @media (max-width: 480px) {
    .pagination { font-size: 0.92rem; }
    .properties-count, .paginationInfo, .text-muted.small { font-size: 12px; }
  }
  
  /* 8) Misc improvements */
  .badge, .status-badge { font-size: 0.72rem; padding: 0.22rem 0.5rem; }
  .form-control, .form-select, .form-input, input[type="text"], textarea {
    min-height: 42px;
    font-size: 0.95rem;
  }
  .table th, .table td { background-clip: padding-box; }
  @media (min-width: 993px) {
    .main-content { margin-left: 250px; }
  }
  /* =========================
   ENHANCED RESPONSIVENESS
   ========================= */

/* 1. Improved Sidebar for Mobile */
/* @media (max-width: 992px) {
    #sidebar {
      transform: translateX(-100%);
      transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      position: fixed;
      z-index: 1050;
      width: 280px;
      box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
      height: 100vh;
      overflow-y: auto;
    }
    
    #sidebar.show {
      transform: translateX(0);
    }
    
    .overlay.show {
      display: block;
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.5);
      z-index: 1040;
      backdrop-filter: blur(2px);
    }
    
    .main-content {
      margin-left: 0 !important;
      width: 100%;
    }
    
    #menuToggle {
      display: flex !important;
      align-items: center;
      justify-content: center;
      min-width: 44px;
      min-height: 44px;
    }
  } */
  
  /* 2. Enhanced Grid System for Stats Cards */
  @media (max-width: 640px) {
    .grid.grid-cols-1.md\:grid-cols-3 {
      grid-template-columns: 1fr;
      gap: 0.75rem;
    }
    
    .grid.grid-cols-1.md\:grid-cols-3 > div {
      padding: 1rem;
    }
    
    .grid.grid-cols-1.md\:grid-cols-3 .flex.items-center {
      flex-direction: column;
      text-align: center;
    }
    
    .grid.grid-cols-1.md\:grid-cols-3 .mr-4 {
      margin-right: 0;
      margin-bottom: 0.75rem;
    }
  }
  
  @media (min-width: 641px) and (max-width: 1023px) {
    .grid.grid-cols-1.md\:grid-cols-3 {
      grid-template-columns: repeat(2, 1fr);
    }
    
    .grid.grid-cols-1.md\:grid-cols-3 > div:last-child {
      grid-column: span 2;
      max-width: 50%;
      margin: 0 auto;
    }
  }
  
  /* 3. Enhanced Table Responsiveness */
  .table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    margin: 0 -1rem;
    width: calc(100% + 2rem);
  }
  
  @media (min-width: 768px) {
    .table-container {
      margin: 0;
      width: 100%;
      border-radius: 0.5rem;
    }
  }
  
  .table-container table {
    min-width: 768px;
  }
  
  @media (max-width: 767px) {
    .table-container table {
      min-width: 100%;
    }
    
    .table-container th,
    .table-container td {
      padding: 0.75rem 0.5rem;
      font-size: 0.875rem;
    }
    
    .table-container th:last-child,
    .table-container td:last-child {
      position: sticky;
      right: 0;
      background: linear-gradient(90deg, rgba(255,255,255,0.9), rgba(255,255,255,0.95));
      z-index: 5;
      box-shadow: -2px 0 5px rgba(0,0,0,0.05);
    }
  }
  
  /* 4. Enhanced Chart Containers */
  @media (max-width: 1024px) {
    #chartsSection .grid.grid-cols-1.lg\:grid-cols-2 {
      grid-template-columns: 1fr;
    }
    
    #chartsSection .h-64 {
      height: 250px;
    }
  }
  
  @media (max-width: 640px) {
    #chartsSection .h-64 {
      height: 200px;
    }
    
    #chartsSection .p-4 {
      padding: 1rem;
    }
  }
  
  /* 5. Improved Touch Targets */
  @media (max-width: 768px) {
    button, [role="button"], a[role="button"] {
      min-height: 44px;
      min-width: 44px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }
    
    #sidebar nav a {
      min-height: 48px;
    }
    
    .btn, .btn-sm {
      padding: 0.75rem 1rem;
    }
  }
  
  /* 6. Header Adjustments for Mobile */
  @media (max-width: 768px) {
    header .flex.justify-between.items-center.p-4 {
      padding: 0.75rem 1rem;
    }
    
    header h2.text-xl {
      font-size: 1.1rem;
    }
    
    #welcomeMessage {
      font-size: 0.9rem;
      margin-right: 0.5rem;
    }
  }
  
  /* 7. Loading Spinner Adjustments */
  @media (max-width: 640px) {
    #loadingSpinner .bg-white.p-6.rounded-lg.shadow-lg {
      padding: 1.5rem;
      margin: 1rem;
    }
    
    #loadingSpinner .h-8.w-8 {
      height: 2rem;
      width: 2rem;
    }
  }
  
  /* 8. Enhanced Main Content Padding */
  @media (max-width: 768px) {
    main.p-6 {
      padding: 1rem;
    }
    
    .bg-white.p-6.rounded-lg.shadow {
      padding: 1rem;
    }
  }
  
  /* 9. Prevent zoom on input focus for iOS */
  @media (max-width: 768px) {
    input, select, textarea {
      font-size: 16px !important;
    }
  }
  
  /* 10. Improved Swipe Detection Area */
  @media (max-width: 768px) {
    .main-content {
      touch-action: pan-y;
    }
  }
  
  /* 11. Enhanced Card Hover Effects for Touch Devices */
  @media (hover: none) {
    .bg-white.rounded-lg.shadow {
      transform: none !important;
    }
    
    .bg-white.rounded-lg.shadow:hover {
      box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    }
  }
  
  /* 12. Better Text Readability on Small Screens */
  @media (max-width: 640px) {
    body {
      font-size: 14px;
      line-height: 1.5;
    }
    
    .text-2xl {
      font-size: 1.4rem;
    }
    
    .text-lg {
      font-size: 1.1rem;
    }
  }
  
  /* 13. Optimized Chart.js Legends for Mobile */
  @media (max-width: 640px) {
    .chartjs-legend {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 0.5rem;
    }
    
    .chartjs-legend li {
      display: inline-flex;
      margin: 0.25rem;
    }
  }
  
  /* 14. Enhanced Focus States for Accessibility */
  button:focus-visible,
  a:focus-visible,
  input:focus-visible,
  select:focus-visible {
    outline: 2px solid #4f46e5;
    outline-offset: 2px;
  }
  
  /* 15. Smooth Transitions for All Interactive Elements */
  button, a, input, select {
    transition: all 0.2s ease;
  }
  
  /* 16. Prevent horizontal scrolling on body */
  body {
    overflow-x: hidden;
  }
  
  /* 17. Improved Z-index stacking */
  /* #sidebar {
    z-index: 1050;
  } */
  
  /* .overlay {
    z-index: 1040;
  }
  
  #loadingSpinner {
    z-index: 1060;
  } */
  
  /* 18. Enhanced mobile table view for active deals */
   /* 18. Enhanced mobile table view for active deals */
   @media (max-width: 767px) {
    #activeDealsTable tr {
      display: flex;
      flex-direction: column;
      margin-bottom: 1rem;
      border: 1px solid #e5e7eb;
      border-radius: 0.5rem;
      padding: 1rem;
    }
    
    #activeDealsTable td {
      padding: 0.5rem 0;
      border: none;
      display: flex;
      justify-content: space-between;
    }
    
    #activeDealsTable td:before {
      content: attr(data-label);
      font-weight: 600;
      margin-right: 0.5rem;
      color: #4b5563;
    }
    
    #activeDealsTable thead {
      display: none;
    }
  }
  
/* Add these styles if not already present */
.h-screen {
    height: 100vh;
  }
  
  .overflow-hidden {
    overflow: hidden;
  }
  
  .flex {
    display: flex;
  }
  
  .flex-1 {
    flex: 1 1 0%;
  }
  
  .flex-shrink-0 {
    flex-shrink: 0;
  }
  
  .flex-col {
    flex-direction: column;
  }
  
  .items-center {
    align-items: center;
  }
  
  .justify-between {
    justify-content: space-between;
  }
  
  .w-64 {
    width: 16rem;
  }
  
  .p-4 {
    padding: 1rem;
  }
  
  .mr-4 {
    margin-right: 1rem;
  }
  
  .text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }
  
  .font-semibold {
    font-weight: 600;
  }
  
  /* Add any other utility classes that might be missing */
  
  /* Add data-labels to table cells in your JavaScript */
  /* Base Styles */
:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --secondary: #6b7280;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --gray-100: #f9fafb;
    --gray-200: #f3f4f6;
    --gray-300: #e5e7eb;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 0.375rem;
}

/* Utility Classes */
/* Flexbox */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-1 { flex: 1; }

/* Spacing */
.p-4 { padding: 1rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.m-4 { margin: 1rem; }
.mt-2 { margin-top: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mr-2 { margin-right: 0.5rem; }

/* Typography */
.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }

/* Colors */
.bg-white { background-color: white; }
.bg-gray-100 { background-color: var(--gray-100); }
.text-gray-700 { color: var(--gray-700); }
.text-gray-900 { color: var(--gray-900); }

/* Borders */
.rounded { border-radius: var(--border-radius); }
.border { border: 1px solid var(--gray-300); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

/* Forms */
.form-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

/* Grid */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gap-4 { gap: 1rem; }

/* Responsive */
@media (min-width: 640px) {
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Animations */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Overlay */
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.bg-black { background-color: rgba(0, 0, 0, 0.5); }
.z-50 { z-index: 50; }
.hidden { display: none; }

/* Modal */
.modal {
    background: white;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

/* Table */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 0.75rem; text-align: left; border-bottom: 1px solid var(--gray-200); }
.table th { background-color: var(--gray-100); font-weight: 600; }

/* Add any additional custom styles below this line */

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--gray-100);
    color: var(--gray-900);
    line-height: 1.5;
}

/* Layout */
.h-screen {
    height: 100vh;
}

.overflow-hidden {
    overflow: hidden;
}

/* Sidebar */
/* .sidebar {
    width: 16rem;
    height: 100vh;
    background-color: var(--gray-800);
    color: white;
    transition: var(--transition);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 40;
    overflow-y: auto;
}

.sidebar-header {
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--gray-900);
    font-size: 1.25rem;
    font-weight: 700;
}

.sidebar nav {
    padding: 0.5rem 0;
}

.sidebar .nav-section-title {
    padding: 0.5rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sidebar .nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: var(--gray-300);
    text-decoration: none;
    transition: var(--transition);
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background-color: var(--gray-700);
    color: white;
}

.sidebar .nav-link i {
    width: 1.5rem;
    margin-right: 0.75rem;
    text-align: center;
} */

/* Main Content */
.main-content {
    margin-left: 16rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: var(--transition);
}

/* Header */
.header {
    height: 4rem;
    background-color: white;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 30;
}

/* Cards */
.card {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    padding: 1.5rem;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Metrics Cards */
.metric-card {
    display: flex;
    align-items: center;
}

.metric-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.metric-icon.blue {
    background-color: #e0e7ff;
    color: #4f46e5;
}

.metric-icon.green {
    background-color: #d1fae5;
    color: #10b981;
}

.metric-icon.purple {
    background-color: #f3e8ff;
    color: #8b5cf6;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0.25rem 0 0.125rem;
}

.metric-label {
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* Tables */
.table-container {
    overflow-x: auto;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    background-color: white;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 0.75rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

th {
    background-color: var(--gray-50);
    color: var(--gray-600);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr:hover {
    background-color: var(--gray-50);
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.completed {
    background-color: #ecfdf5;
    color: #059669;
}

.status-badge.in-progress {
    background-color: #eff6ff;
    color: #2563eb;
}

.status-badge.pending {
    background-color: #fef3c7;
    color: #d97706;
}

/* Charts */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* User Menu */
.user-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    cursor: pointer;
    transition: var(--transition);
}

.user-avatar:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 50;
    padding: 0.5rem;
    background-color: var(--gray-800);
    color: white;
    border-radius: 0.375rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background-color: var(--gray-700);
}

/* Enhanced Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.9375rem;
    line-height: 1.5;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Button Sizes */
.btn-sm {
    padding: 0.4rem 0.875rem;
    font-size: 0.8125rem;
    border-radius: 0.375rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 0.625rem;
}

/* Button Variants */
.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px -1px rgba(59, 130, 246, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
}

.btn-outline:hover {
    background-color: var(--gray-50);
    border-color: var(--gray-400);
}

.btn-ghost {
    background-color: transparent;
    color: var(--gray-700);
}

.btn-ghost:hover {
    background-color: var(--gray-100);
}

/* Button Colors */
.btn-success {
    background-color: var(--success);
    color: white;
}

.btn-success:hover {
    background-color: #0d9d6e;
    box-shadow: 0 4px 12px -1px rgba(16, 185, 129, 0.5);
}

.btn-danger {
    background-color: var(--danger);
    color: white;
}

.btn-danger:hover {
    background-color: #dc2626;
    box-shadow: 0 4px 12px -1px rgba(239, 68, 68, 0.5);
}

.btn-warning {
    background-color: var(--warning);
    color: white;
}

.btn-warning:hover {
    background-color: #e59409;
    box-shadow: 0 4px 12px -1px rgba(245, 158, 11, 0.5);
}

/* Button with Icon */
.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-icon i {
    font-size: 1.1em;
    line-height: 1;
}

/* Ripple Effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

.btn-ripple:focus:not(:active)::after {
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

/* Loading State */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading:after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: button-loading-spinner 0.75s ease infinite;
}

@keyframes button-loading-spinner {
    from {
        transform: rotate(0turn);
    }
    to {
        transform: rotate(1turn);
    }
}

/* Media Gallery Styles */
.media-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.media-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.media-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.media-item img,
.media-item video {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.media-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: white;
    transform: translateY(100%);
    transition: transform 0.2s ease;
}

.media-item:hover .media-overlay {
    transform: translateY(0);
}

.media-actions {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    gap: 0.5rem;
}

.media-actions button {
    background: rgba(255,255,255,0.9);
    border: none;
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.media-item:hover .media-actions button {
    opacity: 1;
}

.upload-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.upload-preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid var(--gray-300);
}

.upload-preview-item img,
.upload-preview-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-upload {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    background: var(--danger);
    color: white;
    border: none;
    border-radius: 50%;
    width: 1.5rem;
    height: 1.5rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.upload-preview-item:hover .remove-upload {
    opacity: 1;
}

/* Preview Modal Styles */
#mediaPreviewModal .modal-dialog {
    max-width: 90%;
    max-height: 90vh;
    margin: 1.75rem auto;
}

#mediaPreviewModal .modal-content {
    background-color: transparent;
    border: none;
}

#mediaPreviewModal .carousel-item {
    max-height: 70vh;
}

#mediaPreviewModal .carousel-item img {
    max-height: 70vh;
    width: auto;
    margin: 0 auto;
    object-fit: contain;
}

#mediaPreviewModal .carousel-item video {
    max-height: 70vh;
    width: 100%;
    object-fit: contain;
    outline: none;
}

#mediaPreviewModal .carousel-control-prev,
#mediaPreviewModal .carousel-control-next {
    width: 8%;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

#mediaPreviewModal .carousel-control-prev:hover,
#mediaPreviewModal .carousel-control-next:hover {
    opacity: 1;
}

/* Empty state */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    text-align: center;
    color: var(--gray-500);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.empty-state p {
    max-width: 400px;
    margin: 0 auto;
}

/* Drag and drop styles */
.upload-drop-zone {
    border: 2px dashed var(--gray-300);
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    margin: 1rem 0;
    transition: all 0.2s ease;
    cursor: pointer;
}

.upload-drop-zone:hover,
.upload-drop-zone.dragover {
    border-color: var(--primary);
    background-color: rgba(79, 70, 229, 0.05);
}

.upload-drop-zone i {
    font-size: 2rem;
    color: var(--gray-400);
    margin-bottom: 0.5rem;
    display: block;
}

.upload-drop-zone p {
    margin: 0;
    color: var(--gray-600);
}

.upload-drop-zone .small {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-top: 0.5rem;
}

/* Progress bar */
#uploadProgressContainer {
    margin-top: 1.5rem;
    padding: 0.5rem;
    background-color: var(--gray-100);
    border-radius: 0.5rem;
}

#uploadProgress {
    height: 8px;
    border-radius: 4px;
}

#uploadFileName {
    font-weight: 500;
    color: var(--gray-700);
}

/* Enhanced Responsive Styles (Consolidated and Improved) */

/* Small Mobile (<576px) */
@media (max-width: 575.98px) {
    body { font-size: 0.95rem; }
    .card { padding: 1rem; border-radius: 0.375rem; }
    .h2, h1.h2 { font-size: 1.25rem; }
    .btn, .btn-sm { min-height: 48px; padding: 0.75rem 1rem; font-size: 0.95rem; }
    .form-control, .form-select, .form-input, input[type="text"], textarea { min-height: 48px; font-size: 1rem; padding: 0.75rem; }
    .media-gallery { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.75rem; }
    .media-item img, .media-item video { height: 140px; }
    .upload-preview-item { width: 80px; height: 80px; }
    .table th, .table td { padding: 0.5rem 0.75rem; font-size: 0.9rem; }
    .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .table-responsive table { min-width: 100%; }
    #propertyTabs { overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
    #propertyTabs .nav-link { font-size: 0.95rem; padding: 0.5rem 0.75rem; }
    .sidebar { width: 80%; max-width: 280px; }
    .main-content { margin-left: 0; }
    .mobile-menu-btn { display: block; min-height: 48px; padding: 0.75rem; }
    .media-grid, .thumb-grid { grid-template-columns: 1fr; gap: 0.5rem; }
    .property-cards-wrapper .card, #amenitiesList .card, #documentsListWrapper .card, #mediaListWrapper .card { flex: 1 1 100%; }
    #amenitiesContainer .col-md-4 { flex: 1 1 100%; }
    .modal-dialog { max-width: 98%; margin: 0.5rem auto; }
    #mediaPreviewModal .carousel-item, #mediaPreviewModal .carousel-item img, #mediaPreviewModal .carousel-item video { max-height: 50vh; }
}

/* Mobile/Tablet (576px–767px) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .card { padding: 1.25rem; }
    .btn, .btn-sm { min-height: 44px; padding: 0.6rem 1rem; }
    .form-control, .form-select, .form-input { min-height: 44px; }
    .media-gallery { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
    .media-item img, .media-item video { height: 160px; }
    .table th, .table td { padding: 0.6rem 1rem; }
    .table-responsive table { min-width: 600px; }
    #propertyTabs { overflow-x: auto; }
    .sidebar { transform: translateX(-100%); }
    .sidebar.active { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .mobile-menu-btn { display: block; }
    .media-grid, .thumb-grid { grid-template-columns: repeat(2, 1fr); }
    .property-cards-wrapper .card, #amenitiesList .card, #documentsListWrapper .card, #mediaListWrapper .card { flex: 1 1 calc(50% - 0.75rem); }
    #amenitiesContainer .col-md-4 { flex: 1 1 calc(50% - 0.5rem); }
    #mediaPreviewModal .carousel-item { max-height: 60vh; }
    .col-md-6, .col-lg-6 { width: 100%; flex: 0 0 100%; }
}

/* Laptop/Small Desktop (768px–991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .sidebar { width: 14rem; }
    .main-content { margin-left: 14rem; }
    .card { padding: 1.5rem; }
    .media-gallery { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; }
    .media-item img, .media-item video { height: 180px; }
    .table th, .table td { padding: 0.75rem 1.25rem; }
    .media-grid, .thumb-grid { grid-template-columns: repeat(3, 1fr); }
    .property-cards-wrapper .card, #amenitiesList .card, #documentsListWrapper .card, #mediaListWrapper .card { flex: 1 1 calc(50% - 0.75rem); }
    #amenitiesContainer .col-md-4 { flex: 1 1 calc(50% - 0.5rem); }
    .col-md-6, .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
    #mediaPreviewModal .carousel-control-prev, #mediaPreviewModal .carousel-control-next { width: 10%; }
}

/* Desktop/Laptop (992px–1439px) */
@media (min-width: 992px) and (max-width: 1439.98px) {
    .sidebar { width: 16rem; }
    .main-content { margin-left: 16rem; }
    .media-gallery { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
    .media-item img, .media-item video { height: 200px; }
    .media-grid, .thumb-grid { grid-template-columns: repeat(4, 1fr); }
    .property-cards-wrapper .card, #amenitiesList .card, #documentsListWrapper .card, #mediaListWrapper .card { flex: 1 1 calc(33.333% - 0.75rem); }
    #amenitiesContainer .col-md-4 { flex: 1 1 calc(33.333% - 0.5rem); }
    .col-md-6, .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
}

/* Large Laptop (1440px+) */
@media (min-width: 1440px) {
    .sidebar { width: 18rem; }
    .main-content { margin-left: 18rem; }
    .media-gallery { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
    .media-item img, .media-item video { height: 220px; }
    .media-grid, .thumb-grid { grid-template-columns: repeat(5, 1fr); }
    .property-cards-wrapper .card, #amenitiesList .card, #documentsListWrapper .card, #mediaListWrapper .card { flex: 1 1 calc(25% - 0.75rem); }
    #amenitiesContainer .col-md-4 { flex: 1 1 calc(25% - 0.5rem); }
    .col-md-6, .col-lg-6 { flex: 0 0 33.333%; max-width: 33.333%; }
}

/* General Enhancements (Apply Across All Screens) */
.media-thumbs img, .thumb { aspect-ratio: 16/9; object-fit: cover; transition: transform 0.3s ease; }
.media-thumbs img:hover, .thumb:hover { transform: scale(1.05); }
.table th:last-child, .table td:last-child { position: sticky; right: 0; background: white; z-index: 1; box-shadow: -1px 0 0 var(--gray-200); }
#propertyTabs { display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; gap: 0.25rem; padding-bottom: 0.25rem; scrollbar-width: thin; }
#propertyTabs .nav-item { flex: 0 0 auto; }
#propertyTabs button.nav-link { white-space: nowrap; transition: background 0.3s ease; }
.loading-overlay { transition: opacity 0.3s ease; }
#loginPrompt .card-body { padding: 2rem; }
button, .btn, .nav-link, a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
