/* SmartKonsol - Professional Compact Design System */

/* ============================================
   1. GLOBAL RESET & BASE STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Primary Colors */
  --primary: #3498db;
  --primary-dark: #2980b9;
  --secondary: #2c3e50;
  --secondary-hover: #34495e;
  
  /* Gradient */
  --gradient-start: #667eea;
  --gradient-end: #764ba2;
  
  /* Neutrals */
  --bg-page: #f5f5f5;
  --bg-card: #ffffff;
  --bg-light: #f8f9fa;
  --bg-toolbar: #f8f9fa;
  --border: #dee2e6;
  --border-input: #ced4da;
  --text: #333333;
  --text-muted: #6c757d;
  
  /* Semantic Colors */
  --success: #28a745;
  --success-light: #d4edda;
  --warning: #ffc107;
  --warning-light: #fff3cd;
  --danger: #dc3545;
  --danger-light: #f8d7da;
  --info: #17a2b8;
  --info-light: #d1ecf1;
  
  /* Spacing Scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  
  /* Typography */
  --font-xs: 10px;
  --font-sm: 11px;
  --font-base: 12px;
  --font-md: 13px;
  --font-lg: 15px;
  --font-xl: 18px;
  
  /* Sizes */
  --navbar-height: 48px;
  --sidebar-width: 200px;
  --toolbar-height: 44px;
  --control-height: 28px;
  --radius: 4px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: var(--font-md);
  line-height: 1.5;
  color: var(--text);
  background-color: var(--bg-page);
  overflow: hidden;
}

/* ============================================
   2. TOP NAVBAR
   ============================================ */
.top-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--navbar-height);
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-4);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.navbar-brand {
  font-size: 16px;
  font-weight: 600;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.navbar-brand i {
  font-size: 20px;
}

.navbar-user {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.user-info {
  text-align: right;
}

.user-name {
  font-size: var(--font-md);
  font-weight: 600;
}

.user-role {
  font-size: var(--font-sm);
  opacity: 0.9;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: var(--font-base);
  cursor: pointer;
}

/* ============================================
   3. MAIN CONTAINER & LAYOUT
   ============================================ */
.main-container {
  position: fixed;
  top: var(--navbar-height);
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  overflow: hidden;
}

/* ============================================
   4. SIDEBAR
   ============================================ */
.sidebar {
  width: var(--sidebar-width);
  background: var(--secondary);
  color: #ecf0f1;
  overflow-y: auto;
  flex-shrink: 0;
}

.sidebar-menu {
  padding: var(--space-2) 0;
}

.menu-section {
  margin-bottom: var(--space-4);
}

.menu-section-title {
  padding: var(--space-2) var(--space-4);
  font-size: var(--font-xs);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
}

.menu-group {
  position: relative;
}

.menu-item, .menu-toggle {
  display: flex;
  align-items: center;
  padding: var(--space-3) var(--space-4);
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  font-size: var(--font-md);
  position: relative;
}

.menu-item i, .menu-toggle i:first-child {
  width: 20px;
  font-size: 16px;
  margin-right: var(--space-2);
}

.menu-item:hover, .menu-toggle:hover {
  background: var(--secondary-hover);
  color: white;
}

.menu-item.active {
  background: var(--primary);
  color: white;
  border-left: 3px solid var(--primary-dark);
}

.menu-toggle .toggle-icon {
  position: absolute;
  right: var(--space-4);
  transition: transform 0.3s ease;
  font-size: var(--font-sm);
}

.menu-toggle.active .toggle-icon {
  transform: rotate(180deg);
}

.submenu {
  display: none;
  background: rgba(0, 0, 0, 0.2);
}

.submenu-item {
  padding: var(--space-2) var(--space-4) var(--space-2) calc(var(--space-4) + 20px + var(--space-2));
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  display: block;
  font-size: var(--font-base);
  transition: all 0.2s;
}

.submenu-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.submenu-item.active {
  background: rgba(52, 152, 219, 0.3);
  color: white;
  border-left: 3px solid var(--primary);
}

/* ============================================
   5. CONTENT AREA
   ============================================ */
.content-area {
  flex: 1;
  display: flex;
  overflow: hidden;
  background: var(--bg-page);
}

.content-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.page-header {
  padding: var(--space-4);
  background: white;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.page-title {
  font-size: var(--font-xl);
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.content-scroll {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4);
}

/* ============================================
   6. TOOLBAR
   ============================================ */
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: var(--toolbar-height);
  padding: var(--space-2) var(--space-4);
  background: var(--bg-toolbar);
  border-bottom: 1px solid var(--border);
  gap: var(--space-2);
  flex-wrap: wrap;
}

.toolbar-left, .toolbar-right {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.action-toolbar {
  display: flex;
  gap: var(--space-1);
}

.badge-group {
  display: flex;
  gap: var(--space-1);
  flex-wrap: wrap;
}

/* ============================================
   7. CARDS
   ============================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  margin-bottom: var(--space-4);
  overflow: hidden;
}

.card-header-custom {
  padding: var(--space-3) var(--space-4);
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-header-custom h5 {
  margin: 0;
  font-size: var(--font-lg);
  font-weight: 600;
}

.card-body {
  padding: var(--space-4);
}

.card-footer {
  padding: var(--space-3) var(--space-4);
  background: var(--bg-light);
  border-top: 1px solid var(--border);
}

/* ============================================
   8. FORMS - COMPACT
   ============================================ */
.form-group {
  margin-bottom: var(--space-3);
}

.form-label {
  display: block;
  margin-bottom: var(--space-1);
  font-size: var(--font-sm);
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.form-label.required::after {
  content: ' *';
  color: var(--danger);
}

.form-control-sm, .form-select-sm {
  width: 100%;
  height: var(--control-height);
  padding: var(--space-1) var(--space-2);
  border: 1px solid var(--border-input);
  border-radius: var(--radius);
  font-size: var(--font-base);
  transition: all 0.2s;
  background: white;
  color: var(--text);
}

.form-control-sm:hover, .form-select-sm:hover {
  border-color: #adb5bd;
}

.form-control-sm:focus, .form-select-sm:focus {
  outline: none;
  border-color: #80bdff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-control-sm:disabled, .form-select-sm:disabled {
  background: var(--bg-light);
  color: var(--text-muted);
  cursor: not-allowed;
}

select.form-control-sm, select.form-select-sm {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right var(--space-2) center;
  background-size: 1em;
  padding-right: var(--space-6);
}

textarea.form-control-sm {
  min-height: 60px;
  resize: vertical;
  padding: var(--space-2);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

.form-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.form-row-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}

/* ============================================
   9. BUTTONS - COMPACT
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--border-input);
  border-radius: var(--radius);
  font-size: var(--font-base);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
  background: white;
  color: var(--text);
  height: var(--control-height);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

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

.btn-success {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

.btn-danger {
  background: var(--danger);
  border-color: var(--danger);
  color: white;
}

.btn-warning {
  background: var(--warning);
  border-color: var(--warning);
  color: #000;
}

.btn-secondary {
  background: #6b7280;
  border-color: #6b7280;
  color: white;
}

.btn-secondary:hover {
  background: #4b5563;
}

.btn-outline {
  background: white;
  border-color: var(--border-input);
  color: var(--text);
}

.btn-sm {
  height: 24px;
  padding: var(--space-1) var(--space-2);
  font-size: var(--font-sm);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ============================================
   10. BADGES - COMPACT
   ============================================ */
.badge {
  display: inline-block;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius);
  font-size: var(--font-sm);
  font-weight: 600;
  line-height: 1;
}

.badge-success {
  background: var(--success-light);
  color: #155724;
}

.badge-warning {
  background: var(--warning-light);
  color: #856404;
}

.badge-danger {
  background: var(--danger-light);
  color: #721c24;
}

.badge-info {
  background: var(--info-light);
  color: #0c5460;
}

.badge-primary {
  background: rgba(52, 152, 219, 0.2);
  color: var(--primary-dark);
}

/* ============================================
   11. TABLES - COMPACT
   ============================================ */
.table-container {
  overflow-x: auto;
  overflow-y: auto;
  max-height: 600px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.data-table {
  width: 100%;
  font-size: var(--font-base);
  border-collapse: collapse;
  background: white;
}

.data-table thead {
  position: sticky;
  top: 0;
  z-index: 10;
}

.data-table thead th {
  padding: var(--space-2) var(--space-3);
  background: var(--bg-toolbar);
  border-bottom: 1px solid var(--border);
  font-size: var(--font-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--text-muted);
  text-align: left;
  white-space: nowrap;
}

.data-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background-color 0.15s;
}

.data-table tbody tr:hover {
  background: #f1f3f5;
}

.data-table tbody td {
  padding: var(--space-2) var(--space-3);
  color: var(--text);
}

.action-icons {
  display: flex;
  gap: var(--space-2);
}

.action-icon {
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
  font-size: 14px;
}

.action-icon:hover {
  color: var(--primary);
}

/* ============================================
   SPLIT VIEW LAYOUT (for Tesisler page)
   ============================================ */
.split-view-container {
  display: flex;
  height: calc(100vh - var(--navbar-height));
  overflow: hidden;
}

.split-view-left {
  width: 280px;
  background: var(--bg-light);
  padding: var(--space-3);
  overflow-y: auto;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
}

.split-view-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.split-view-right-content {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4);
}

/* Property Card */
.property-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-2);
  margin-bottom: var(--space-2);
  cursor: pointer;
  transition: all 0.2s;
}

.property-card:hover {
  background: #f8f9fa;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.property-card.active {
  background: #e7f3ff;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
}

.property-card-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 4px;
}

.property-card-title {
  font-weight: 600;
  font-size: var(--font-base);
  margin-bottom: 2px;
  color: var(--text);
}

.property-card-meta {
  font-size: var(--font-xs);
  color: var(--text-muted);
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid #f0f0f0;
}

/* ============================================
   12. STATS GRID
   ============================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.stat-box {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-3);
}

.stat-label {
  font-size: var(--font-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: var(--space-1);
}

.stat-value {
  font-size: var(--font-xl);
  font-weight: 600;
  color: var(--text);
}

/* ============================================
   13. MODAL - COMPACT
   ============================================ */
/* Modal Overlay - Used by JavaScript modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  animation: fadeIn 0.2s ease-out;
}

.modal-content {
  background: white;
  border-radius: var(--radius);
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* Legacy modal class for backward compatibility */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.modal.show {
  display: flex;
}

.modal-dialog {
  background: white;
  border-radius: var(--radius);
  max-width: 900px;
  width: 100%;
  max-height: 95vh;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: var(--space-3) var(--space-4);
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.modal-title {
  font-size: var(--font-lg);
  font-weight: 700;
  color: white;
  margin: 0;
}

.modal-close {
  width: 28px;
  height: 28px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  cursor: pointer;
  border-radius: var(--radius);
  transition: all 0.2s;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.modal-body {
  padding: var(--space-4);
  overflow-y: auto;
  flex: 1;
  background: var(--bg-light);
}

.modal-footer {
  padding: var(--space-3) var(--space-4);
  background: white;
  border-top: 1px solid var(--border);
  display: flex;
  gap: var(--space-2);
  justify-content: flex-end;
  flex-shrink: 0;
}

/* ============================================
   14. TABS - COMPACT
   ============================================ */
.nav-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  gap: var(--space-1);
  padding: 0 var(--space-4);
  background: white;
}

.nav-link {
  padding: var(--space-2) var(--space-4);
  border: none;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: var(--font-md);
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  text-decoration: none;
}

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

.nav-link.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-content {
  padding: var(--space-4);
}

/* ============================================
   15. ALERTS
   ============================================ */
.alert {
  padding: var(--space-3);
  border-radius: var(--radius);
  margin-bottom: var(--space-4);
  border-left: var(--radius) solid;
}

.alert-info {
  background: var(--info-light);
  border-color: var(--info);
  color: #0c5460;
}

.alert-success {
  background: var(--success-light);
  border-color: var(--success);
  color: #155724;
}

.alert-warning {
  background: var(--warning-light);
  border-color: var(--warning);
  color: #856404;
}

.alert-danger {
  background: var(--danger-light);
  border-color: var(--danger);
  color: #721c24;
}

/* ============================================
   16. SCROLLBAR STYLING
   ============================================ */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: var(--radius);
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* ============================================
   17. UTILITY CLASSES
   ============================================ */
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.fw-bold { font-weight: 600; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }

/* ============================================
   18. RESPONSIVE
   ============================================ */

/* Tablet - 1200px and below */
@media (max-width: 1200px) {
  :root {
    --sidebar-width: 180px;
    --font-base: 11px;
  }
  
  .form-row-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Split view adjustments */
  .split-view-left {
    width: 240px;
  }
}

/* Mobile - 768px and below */
@media (max-width: 768px) {
  :root {
    --sidebar-width: 60px;
    --navbar-height: 56px;
    --toolbar-height: auto;
    --control-height: 32px;
    --font-base: 12px;
    --space-3: 12px;
    --space-4: 16px;
  }
  
  /* Navbar adjustments */
  .top-navbar {
    padding: 0 var(--space-3);
  }
  
  .navbar-brand span {
    display: none;
  }
  
  /* Sidebar - Icon only mode */
  .sidebar {
    width: 60px !important;
    position: fixed;
    left: 0;
    top: var(--navbar-height);
    bottom: 0;
    z-index: 100;
  }
  
  .sidebar .menu-item span,
  .sidebar .menu-toggle span,
  .sidebar .menu-section-title {
    display: none;
  }
  
  .sidebar .menu-item,
  .sidebar .menu-toggle {
    justify-content: center;
    padding: var(--space-3);
  }
  
  .sidebar .menu-item i {
    margin-right: 0 !important;
    font-size: 18px;
  }
  
  .sidebar .menu-toggle .toggle-icon {
    display: none;
  }
  
  /* Submenu - Hide on mobile */
  .sidebar .submenu {
    display: none !important;
  }
  
  /* Main container adjustments */
  .main-container {
    margin-left: 0;
  }
  
  .content-area {
    margin-left: 60px;
    width: calc(100vw - 60px);
  }
  
  /* Page header */
  .page-header {
    padding: var(--space-3);
    margin-bottom: var(--space-3);
  }
  
  .page-header h1 {
    font-size: 18px;
  }
  
  /* Toolbar - Stack on mobile */
  .toolbar {
    flex-direction: column;
    padding: var(--space-3);
    gap: var(--space-2);
    height: auto;
  }
  
  .toolbar-left,
  .toolbar-right {
    width: 100%;
    flex-wrap: wrap;
    gap: var(--space-2);
  }
  
  .toolbar-right {
    justify-content: flex-start;
  }
  
  .toolbar .btn,
  .toolbar .form-control-sm,
  .toolbar .form-select-sm {
    font-size: var(--font-base);
  }
  
  /* Stats grid - 2 columns on mobile */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2);
  }
  
  .stat-box {
    padding: var(--space-3);
  }
  
  .stat-box .stat-value {
    font-size: 20px;
  }
  
  .stat-box .stat-label {
    font-size: var(--font-xs);
  }
  
  /* Cards */
  .card {
    margin-bottom: var(--space-3);
  }
  
  .card-header-custom {
    padding: var(--space-3);
  }
  
  .card-header-custom h5 {
    font-size: 14px;
  }
  
  .card-body {
    padding: var(--space-3);
  }
  
  /* Split View - Stack vertically on mobile */
  .split-view-container {
    flex-direction: column;
    height: auto;
  }
  
  .split-view-left {
    width: 100%;
    max-height: 300px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  
  .split-view-right {
    height: auto;
    min-height: 400px;
  }
  
  .split-view-right-content {
    padding: var(--space-3);
  }
  
  /* Property cards on mobile */
  .property-card {
    padding: var(--space-3);
    margin-bottom: var(--space-3);
  }
  
  .property-card-title {
    font-size: 13px;
  }
  
  /* Tables - Horizontal scroll */
  .table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .data-table {
    min-width: 600px;
  }
  
  .data-table th,
  .data-table td {
    white-space: nowrap;
    font-size: var(--font-xs);
    padding: var(--space-2);
  }
  
  /* Forms */
  .form-row,
  .form-row-3,
  .form-row-4 {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }
  
  .form-group {
    margin-bottom: var(--space-3);
  }
  
  .form-label {
    font-size: var(--font-sm);
    margin-bottom: var(--space-1);
  }
  
  .form-control,
  .form-control-sm,
  .form-select,
  .form-select-sm {
    font-size: var(--font-base);
    height: var(--control-height);
  }
  
  /* Buttons - Larger touch targets */
  .btn {
    height: 36px;
    padding: 0 var(--space-4);
    font-size: var(--font-base);
  }
  
  .btn-sm {
    height: 32px;
    padding: 0 var(--space-3);
    font-size: var(--font-sm);
  }
  
  /* Action icons - Larger touch targets */
  .action-icons {
    gap: var(--space-3);
  }
  
  .action-icon {
    font-size: 16px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Badges */
  .badge {
    font-size: var(--font-xs);
    padding: 2px 6px;
  }
  
  /* Modals on mobile */
  .modal {
    padding: var(--space-2);
  }
  
  .modal-content {
    margin: var(--space-2);
    max-width: 100%;
    max-height: calc(100vh - var(--space-4));
  }
  
  .modal-header {
    padding: var(--space-3);
  }
  
  .modal-body {
    padding: var(--space-3);
    max-height: calc(100vh - 200px);
  }
  
  .modal-footer {
    padding: var(--space-3);
    gap: var(--space-2);
  }
  
  /* Tabs on mobile */
  .tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .tab-button {
    padding: var(--space-2) var(--space-3);
    font-size: var(--font-sm);
    white-space: nowrap;
  }
  
  /* Charts - Adjust height */
  .chart-container {
    height: 250px;
  }
}

/* Small mobile - 480px and below */
@media (max-width: 480px) {
  :root {
    --space-3: 10px;
    --space-4: 12px;
  }
  
  /* Stats grid - Single column on very small screens */
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  /* Hide less important columns in tables */
  .data-table .hide-on-mobile {
    display: none;
  }
  
  /* Stack toolbar items vertically */
  .toolbar-left,
  .toolbar-right {
    flex-direction: column;
  }
  
  .toolbar .btn,
  .toolbar .form-control-sm,
  .toolbar .form-select-sm {
    width: 100%;
  }
  
  /* Property list - Make more compact */
  .property-card {
    padding: var(--space-2);
  }
  
  .property-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }
  
  /* Charts - Smaller on very small screens */
  .chart-container {
    height: 200px;
  }
}

/* ============================================
   19. ANIMATIONS
   ============================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* ============================================
   20. LOADING SPINNER
   ============================================ */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--bg-light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================
   21. MODAL TABS FOR PRICING
   ============================================ */
.modal-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  background-color: var(--bg-light);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-tab {
  flex: 1;
  min-width: 140px;
  padding: var(--space-3) var(--space-4);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-muted);
  font-size: var(--font-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.modal-tab:hover {
  background-color: var(--bg-card);
  color: var(--text);
}

.modal-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background-color: var(--bg-card);
}

.modal-tab i {
  margin-right: var(--space-2);
}

.modal-tab-content {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.modal-tab-content.active {
  display: block;
}

/* Detail item styling for pricing view */
.detail-item {
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  background-color: var(--bg-light);
}

.detail-label {
  font-size: var(--font-xs);
  color: var(--text-muted);
  margin-bottom: var(--space-1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-value {
  font-size: var(--font-base);
  color: var(--text);
  font-weight: 600;
}

/* ============================================
   22. PRINT STYLES
   ============================================ */
@media print {
  .sidebar,
  .toolbar,
  .top-navbar,
  .modal-close,
  .btn,
  .action-icons {
    display: none !important;
  }
  
  .main-container {
    position: static;
    height: auto;
  }
  
  .content-scroll {
    overflow: visible;
  }
}

/* ============================================
   MODAL UTILITY CLASSES (Tailwind-like)
   For all modals to work without Tailwind
   ============================================ */

/* Position & Layout */
.fixed { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-50 { z-index: 50; }
.z-[60] { z-index: 60; }

/* Display */
.hidden { display: none !important; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }

/* Flexbox */
.flex-row { flex-direction: row; }
.flex-col { flex-direction: column; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.flex-1 { flex: 1; }
.flex-wrap { flex-wrap: wrap; }

/* Grid */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

/* Spacing - Gap */
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* Spacing - Padding */
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-4 { padding-top: 1rem; }
.pt-6 { padding-top: 1.5rem; }
.pb-2 { padding-bottom: 0.5rem; }

/* Spacing - Margin */
.m-0 { margin: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.my-8 { margin-top: 2rem; margin-bottom: 2rem; }

/* Spacing - Space Between */
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

/* Width & Height */
.w-full { width: 100%; }
.w-auto { width: auto; }
.h-full { height: 100%; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-5xl { max-width: 64rem; }

/* Typography */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Colors - Text */
.text-white { color: #ffffff; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-800 { color: #1f2937; }
.text-gray-900 { color: #111827; }
.text-blue-100 { color: #dbeafe; }
.text-blue-600 { color: #2563eb; }
.text-blue-700 { color: #1d4ed8; }
.text-green-600 { color: #16a34a; }
.text-green-700 { color: #15803d; }
.text-red-600 { color: #dc2626; }
.text-red-700 { color: #b91c1c; }

/* Colors - Background */
.bg-white { background-color: #ffffff; }
.bg-black { background-color: #000000; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-200 { background-color: #e5e7eb; }
.bg-blue-50 { background-color: #eff6ff; }
.bg-blue-600 { background-color: #2563eb; }
.bg-green-50 { background-color: #f0fdf4; }
.bg-green-600 { background-color: #16a34a; }
.bg-opacity-20 { background-color: rgba(255, 255, 255, 0.2); }
.bg-opacity-50 { background-color: rgba(0, 0, 0, 0.5); }

/* Background Gradients */
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); }
.from-blue-600 { --tw-gradient-from: #2563eb; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(37, 99, 235, 0)); }
.to-blue-700 { --tw-gradient-to: #1d4ed8; }

/* Borders */
.border { border-width: 1px; border-style: solid; }
.border-2 { border-width: 2px; border-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-t-2 { border-top-width: 2px; border-top-style: solid; }
.border-gray-200 { border-color: #e5e7eb; }
.border-gray-300 { border-color: #d1d5db; }
.border-blue-200 { border-color: #bfdbfe; }

/* Border Radius */
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.rounded-t-2xl { border-top-left-radius: 1rem; border-top-right-radius: 1rem; }

/* Shadows */
.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.overflow-x-auto { overflow-x-auto; }

/* Cursor */
.cursor-pointer { cursor: pointer; }

/* Transition */
.transition { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }

/* Hover Effects */
.hover\:bg-gray-200:hover { background-color: #e5e7eb; }
.hover\:bg-blue-700:hover { background-color: #1d4ed8; }
.hover\:bg-green-700:hover { background-color: #15803d; }
.hover\:bg-opacity-20:hover { background-color: rgba(255, 255, 255, 0.2); }

/* Focus */
.focus\:ring-2:focus { box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5); outline: none; }
.focus\:border-transparent:focus { border-color: transparent; }

/* Whitespace */
.whitespace-nowrap { white-space: nowrap; }

/* Min Height */
.min-h-\[100px\] { min-height: 100px; }
.min-h-\[120px\] { min-height: 120px; }

/* ============================================
   ADDITIONAL MISSING TAILWIND CLASSES
   ============================================ */

/* More padding values */
.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }

/* More text colors */
.text-blue-900 { color: #1e3a8a; }
.text-green-900 { color: #14532d; }
.text-purple-600 { color: #9333ea; }
.text-purple-900 { color: #581c87; }
.text-orange-500 { color: #f97316; }
.text-orange-800 { color: #9a3412; }
.text-yellow-800 { color: #854d0e; }
.text-pink-500 { color: #ec4899; }
.text-indigo-500 { color: #6366f1; }

/* More background colors */
.bg-gray-100 { background-color: #f3f4f6; }
.bg-blue-100 { background-color: #dbeafe; }
.bg-blue-400 { background-color: #60a5fa; }
.bg-blue-500 { background-color: #3b82f6; }
.bg-green-100 { background-color: #d1fae5; }
.bg-green-400 { background-color: #4ade80; }
.bg-green-50 { background-color: #f0fdf4; }
.bg-yellow-100 { background-color: #fef3c7; }
.bg-yellow-400 { background-color: #facc15; }
.bg-yellow-50 { background-color: #fefce8; }
.bg-orange-100 { background-color: #ffedd5; }
.bg-red-100 { background-color: #fee2e2; }
.bg-red-50 { background-color: #fef2f2; }
.bg-black { background-color: #000000; }

/* Background opacity */
.bg-opacity-20 { background-color: rgba(0, 0, 0, 0.2); }

/* Gradient backgrounds */
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); }
.from-blue-600 { --tw-gradient-from: #2563eb; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(37, 99, 235, 0)); }
.from-blue-700 { --tw-gradient-from: #1d4ed8; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(29, 78, 216, 0)); }
.to-blue-700 { --tw-gradient-to: #1d4ed8; }
.to-blue-800 { --tw-gradient-to: #1e40af; }

/* More border styles */
.border-b { border-bottom-width: 1px; }
.border-b-2 { border-bottom-width: 2px; }
.border-t { border-top-width: 1px; }
.border-t-2 { border-top-width: 2px; }
.border-l-4 { border-left-width: 4px; }
.border-blue-200 { border-color: #bfdbfe; }
.border-blue-500 { border-color: #3b82f6; }
.border-green-200 { border-color: #bbf7d0; }
.border-green-300 { border-color: #86efac; }
.border-yellow-200 { border-color: #fde047; }
.border-red-200 { border-color: #fecaca; }
.border-transparent { border-color: transparent; }

/* Divide utilities */
.divide-y > * + * { border-top-width: 1px; }
.divide-gray-200 > * + * { border-color: #e5e7eb; }

/* More rounded corners */
.rounded-full { border-radius: 9999px; }
.rounded-b-2xl { border-bottom-left-radius: 1rem; border-bottom-right-radius: 1rem; }
.rounded-t-2xl { border-top-left-radius: 1rem; border-top-right-radius: 1rem; }
.rounded-r-lg { border-top-right-radius: 0.5rem; border-bottom-right-radius: 0.5rem; }

/* Grid columns */
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }

/* More gap values */
.gap-3 { gap: 0.75rem; }
.gap-6 { gap: 1.5rem; }

/* More justify options */
.justify-end { justify-content: flex-end; }
.justify-center { justify-content: center; }

/* More align options */
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }

/* Hover states */
.hover\:bg-blue-50:hover { background-color: #eff6ff; }
.hover\:bg-gray-50:hover { background-color: #f9fafb; }
.hover\:bg-gray-100:hover { background-color: #f3f4f6; }
.hover\:bg-gray-200:hover { background-color: #e5e7eb; }
.hover\:bg-gray-300:hover { background-color: #d1d5db; }
.hover\:bg-white:hover { background-color: #ffffff; }
.hover\:bg-green-700:hover { background-color: #15803d; }
.hover\:bg-opacity-20:hover { background-color: rgba(0, 0, 0, 0.2); }
.hover\:text-blue-900:hover { color: #1e3a8a; }
.hover\:text-green-900:hover { color: #14532d; }
.hover\:text-purple-900:hover { color: #581c87; }
.hover\:text-gray-700:hover { color: #374151; }
.hover\:border-blue-300:hover { border-color: #93c5fd; }
.hover\:border-gray-300:hover { border-color: #d1d5db; }
.hover\:opacity-80:hover { opacity: 0.8; }
.hover\:from-blue-700:hover { --tw-gradient-from: #1d4ed8; }
.hover\:to-blue-800:hover { --tw-gradient-to: #1e40af; }

/* Focus states */
.focus\:border-transparent:focus { border-color: transparent; }
.focus\:ring-green-500:focus { box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.5); }

/* Whitespace */
.whitespace-nowrap { white-space: nowrap; }

/* Overflow */
.overflow-x-auto { overflow-x: auto; }

/* Min width */
.min-w-full { min-width: 100%; }

/* Uppercase */
.uppercase { text-transform: uppercase; }

/* Tracking */
.tracking-wider { letter-spacing: 0.05em; }

/* Inline flex */
.inline-flex { display: inline-flex; }

/* Leading (line height) */
.leading-5 { line-height: 1.25rem; }

/* Cursor */
.cursor-pointer { cursor: pointer; }

/* ============================================
   CRITICAL MISSING UTILITIES FOR MODALS
   ============================================ */

/* Grid System */
.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)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Grid Column Span */
.col-span-1 { grid-column: span 1 / span 1; }
.col-span-2 { grid-column: span 2 / span 2; }
.col-span-3 { grid-column: span 3 / span 3; }
.col-span-4 { grid-column: span 4 / span 4; }
.col-span-full { grid-column: 1 / -1; }

/* Width & Height */
.w-full { width: 100%; }
.w-1\/2 { width: 50%; }
.w-1\/3 { width: 33.333333%; }
.w-2\/3 { width: 66.666667%; }
.w-auto { width: auto; }
.h-full { height: 100%; }
.h-auto { height: auto; }

/* Padding */
.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }

.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }

.pt-2 { padding-top: 0.5rem; }
.pt-4 { padding-top: 1rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-4 { padding-bottom: 1rem; }
.pl-2 { padding-left: 0.5rem; }
.pr-2 { padding-right: 0.5rem; }

/* Margin */
.m-0 { margin: 0; }
.m-1 { margin: 0.25rem; }
.m-2 { margin: 0.5rem; }
.m-4 { margin: 1rem; }
.m-auto { margin: auto; }

.mx-auto { margin-left: auto; margin-right: auto; }
.my-2 { margin-top: 0.5rem; margin-bottom: 0.5rem; }
.my-4 { margin-top: 1rem; margin-bottom: 1rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.ml-2 { margin-left: 0.5rem; }
.mr-1 { margin-right: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }

/* Text */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Text Colors - Extended */
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-800 { color: #1f2937; }
.text-gray-900 { color: #111827; }
.text-red-500 { color: #ef4444; }
.text-red-600 { color: #dc2626; }
.text-blue-500 { color: #3b82f6; }
.text-blue-600 { color: #2563eb; }
.text-green-600 { color: #16a34a; }

/* Borders */
.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-0 { border-width: 0; }
.border-gray-200 { border-color: #e5e7eb; }
.border-gray-300 { border-color: #d1d5db; }
.border-gray-400 { border-color: #9ca3af; }

/* Border Radius */
.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }

/* Backgrounds */
.bg-white { background-color: #ffffff; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-200 { background-color: #e5e7eb; }
.bg-blue-50 { background-color: #eff6ff; }
.bg-blue-500 { background-color: #3b82f6; }
.bg-blue-600 { background-color: #2563eb; }
.bg-green-50 { background-color: #f0fdf4; }
.bg-red-50 { background-color: #fef2f2; }

/* Focus Ring */
.focus\:ring-2:focus { box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5); }
.focus\:ring-blue-500:focus { box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5); }
.focus\:ring-purple-500:focus { box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.5); }
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }

/* Hover Effects */
.hover\:bg-blue-600:hover { background-color: #2563eb; }
.hover\:bg-blue-700:hover { background-color: #1d4ed8; }
.hover\:bg-gray-100:hover { background-color: #f3f4f6; }

/* Display */
.block { display: block; }
.inline-block { display: inline-block; }
.inline { display: inline; }
.hidden { display: none; }

/* Flex */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

/* Responsive - MD breakpoint */
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:flex-row { flex-direction: row; }
  .md\:w-1\/2 { width: 50%; }
}

/* Transition */
.transition { transition-property: all; transition-duration: 150ms; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }

/* Modal Backdrop - Alternative overlay for some modals */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

/* ============================================
   SETTINGS PAGE STYLES
   ============================================ */
.settings-container {
  max-width: 1400px;
  margin: 0 auto;
}

.concept-card {
  background: white;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
}

.concept-card:hover {
  box-shadow: 0 4px 6px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: #6b7280;
}

.empty-state i {
  display: block;
  margin: 0 auto 16px;
}

.error-state {
  text-align: center;
  padding: 24px;
  color: #ef4444;
}

.btn-group {
  display: flex;
  gap: 4px;
}

/* Grid utilities for settings cards */
.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));
}

.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gap-4 {
  gap: 16px;
}

.mb-4 {
  margin-bottom: 16px;
}

/* Flex utilities */
.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.justify-between {
  justify-content: space-between;
}

.gap-2 {
  gap: 8px;
}

.gap-3 {
  gap: 12px;
}

/* Text utilities */
.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

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

.text-gray-500 {
  color: #6b7280;
}

.text-gray-600 {
  color: #4b5563;
}

.text-blue-600 {
  color: #2563eb;
}

.text-green-600 {
  color: #16a34a;
}

.text-red-500 {
  color: #ef4444;
}

/* Responsive grid */
@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
