/* ===== APARTMAN YÖNETİM SİSTEMİ - DESIGN SYSTEM ===== */

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

/* ===== CSS VARIABLES ===== */
:root {
  /* Primary Colors - Orange */
  --primary: #f97316;
  --primary-light: #fb923c;
  --primary-dark: #ea580c;
  --primary-gradient: linear-gradient(135deg, #f97316 0%, #fb923c 50%, #fdba74 100%);

  /* Background Colors - Light */
  --bg-dark: #ffffff;
  --bg-card: #f8fafc;
  --bg-card-hover: #f1f5f9;
  --bg-surface: #ffffff;
  --bg-input: #ffffff;
  --bg-modal: rgba(255, 255, 255, 0.97);

  /* Text Colors - Dark */
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --text-inverse: #ffffff;

  /* Accent Colors */
  --success: #10b981;
  --success-light: #d1fae5;
  --success-bg: rgba(16, 185, 129, 0.12);
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --warning-bg: rgba(245, 158, 11, 0.12);
  --error: #ef4444;
  --error-light: #fee2e2;
  --error-bg: rgba(239, 68, 68, 0.1);
  --info: #3b82f6;
  --info-light: #dbeafe;
  --info-bg: rgba(59, 130, 246, 0.1);

  /* Borders */
  --border: #e2e8f0;
  --border-light: #cbd5e1;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --shadow-glow: 0 0 20px rgba(249, 115, 22, 0.25);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

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

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

img {
  max-width: 100%;
  height: auto;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 6px;
}

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

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

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

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

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.animate-fade-in {
  animation: fadeIn 0.4s ease;
}

.animate-fade-in-up {
  animation: fadeInUp 0.5s ease;
}

.animate-slide-in {
  animation: slideInRight 0.4s ease;
}

/* ===== LAYOUT ===== */
.app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
  padding: 16px;
  padding-top: 72px;
  padding-bottom: 80px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

/* ===== TOP NAVBAR ===== */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 1000;
  transition: left 0.3s ease;
}

.menu-toggle {
  display: none; /* Only show on desktop */
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  margin-right: 8px;
}

.menu-toggle:hover {
  background: var(--bg-card-hover);
  color: var(--primary);
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    color: var(--text-primary);
  }
}

.top-nav .nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-nav .nav-brand .brand-icon {
  width: 36px;
  height: 36px;
  background: var(--primary-gradient);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.top-nav .nav-brand .brand-text {
  font-weight: 700;
  font-size: 16px;
  color: var(--text-primary);
}

.top-nav .nav-brand .brand-text span {
  color: var(--primary-light);
}

.top-nav .nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.nav-icon-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.nav-icon-btn .badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  background: var(--error);
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
}

.nav-avatar {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  color: white;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.nav-avatar:hover {
  transform: scale(1.1);
}

/* ===== BOTTOM TAB BAR ===== */
.bottom-tabs {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 65px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 1001;
  padding-bottom: env(safe-area-inset-bottom, 0);
  transition: width 0.3s ease, left 0.3s ease;
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  min-width: 56px;
  position: relative;
}

.tab-item:hover,
.tab-item.active {
  color: var(--primary-light);
}

.tab-item.active::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--primary);
  border-radius: 0 0 var(--radius-full) var(--radius-full);
}

.tab-item svg {
  width: 22px;
  height: 22px;
}

.tab-item span {
  font-size: 10px;
  font-weight: 500;
}

.tab-item .tab-badge {
  position: absolute;
  top: 0;
  right: 6px;
  width: 16px;
  height: 16px;
  background: var(--error);
  border-radius: var(--radius-full);
  font-size: 9px;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== PAGE HEADER ===== */
.page-header {
  margin-bottom: 24px;
  animation: fadeInUp 0.4s ease;
}

.page-header h1 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* ===== CARDS ===== */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 20px;
  transition: all var(--transition-normal);
  animation: fadeInUp 0.5s ease;
}

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

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.card-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* ===== STAT CARDS ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 16px;
  transition: all var(--transition-normal);
  animation: fadeInUp 0.5s ease;
}

.stat-card:nth-child(2) {
  animation-delay: 0.1s;
}

.stat-card:nth-child(3) {
  animation-delay: 0.2s;
}

.stat-card:nth-child(4) {
  animation-delay: 0.3s;
}

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

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

.stat-card .stat-icon.purple {
  background: rgba(249, 115, 22, 0.12);
  color: var(--primary);
}

.stat-card .stat-icon.green {
  background: var(--success-bg);
  color: var(--success);
}

.stat-card .stat-icon.orange {
  background: var(--warning-bg);
  color: var(--warning);
}

.stat-card .stat-icon.blue {
  background: var(--info-bg);
  color: var(--info);
}

.stat-card .stat-icon.red {
  background: var(--error-bg);
  color: var(--error);
}

.stat-card .stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-card .stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== LIST ITEMS ===== */
.list-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.list-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.list-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
  transform: translateX(4px);
}

.list-item .item-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}

.list-item .item-content {
  flex: 1;
  min-width: 0;
}

.list-item .item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list-item .item-desc {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list-item .item-meta {
  text-align: right;
  flex-shrink: 0;
}

.list-item .item-amount {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.list-item .item-date {
  font-size: 11px;
  color: var(--text-muted);
}

/* ===== BADGES ===== */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.badge-status.success {
  background: var(--success-bg);
  color: var(--success);
}

.badge-status.warning {
  background: var(--warning-bg);
  color: var(--warning);
}

.badge-status.error {
  background: var(--error-bg);
  color: var(--error);
}

.badge-status.info {
  background: var(--info-bg);
  color: var(--info);
}

.badge-status.neutral {
  background: rgba(100, 116, 139, 0.1);
  color: var(--text-secondary);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  min-height: 44px;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.45);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--border);
}

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

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

.btn-outline {
  background: transparent;
  color: var(--primary-light);
  border: 1px solid var(--primary);
}

.btn-outline:hover {
  background: rgba(249, 115, 22, 0.1);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 12px;
  min-height: 36px;
  border-radius: var(--radius-sm);
}

.btn-full {
  width: 100%;
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-sm);
}

/* ===== FORM ELEMENTS ===== */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  transition: all var(--transition-fast);
  min-height: 44px;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.form-input::placeholder {
  color: var(--text-muted);
}

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

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

/* ===== FILTER TABS ===== */
.filter-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 16px;
  scrollbar-width: none;
}

.filter-tabs::-webkit-scrollbar {
  display: none;
}

.filter-tab {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
}

.filter-tab:hover {
  border-color: var(--primary);
  color: var(--primary-light);
}

.filter-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

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

.modal {
  background: var(--bg-card);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  width: 100%;
  max-width: 500px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 24px;
  transform: translateY(100%);
  transition: transform var(--transition-slow);
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal-handle {
  width: 36px;
  height: 4px;
  background: var(--border-light);
  border-radius: var(--radius-full);
  margin: 0 auto 20px;
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}

/* ===== LOGIN PAGE ===== */
.login-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
  background: #f8fafc;
}

.login-container::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: url('../bg-login.png') center/cover no-repeat;
  filter: blur(8px) brightness(0.9);
  z-index: 0;
}

/* Decorative blurred blob */
.login-container::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--primary);
  filter: blur(120px);
  opacity: 0.2;
  top: -50px;
  right: -50px;
  z-index: 1;
}

.login-card {
  width: 100%;
  max-width: 400px;
  position: relative;
  z-index: 10;
  animation: fadeInUp 0.6s ease;
}

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

.login-logo {
  width: 64px;
  height: 64px;
  background: var(--primary-gradient);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 16px;
  box-shadow: var(--shadow-glow);
}

.login-header h1 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.login-header p {
  color: var(--text-secondary);
  font-size: 14px;
}

.login-form {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.7);
  padding: 24px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

.login-tabs {
  display: flex;
  gap: 4px;
  background: #e2e8f0;
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 24px;
}

.login-tab {
  flex: 1;
  padding: 10px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.login-tab.active {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-sm);
}

.role-selector {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.role-option {
  flex: 1;
  padding: 10px 8px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: #f1f5f9;
  color: var(--text-secondary);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
}

.role-option:hover {
  border-color: var(--primary);
}

.role-option.active {
  border-color: var(--primary);
  background: rgba(249, 115, 22, 0.1);
  color: var(--primary-dark);
}

.role-option .role-icon {
  font-size: 20px;
  display: block;
  margin-bottom: 4px;
}

/* ===== APARTMENT CARDS ===== */
.apartment-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.apartment-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 16px;
  transition: all var(--transition-normal);
  animation: fadeInUp 0.5s ease;
}

.apartment-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.apartment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.apartment-number {
  display: flex;
  align-items: center;
  gap: 10px;
}

.apartment-number .apt-badge {
  width: 42px;
  height: 42px;
  background: var(--primary-gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: white;
}

.apartment-number .apt-info h3 {
  font-size: 15px;
  font-weight: 700;
}

.apartment-number .apt-info span {
  font-size: 12px;
  color: var(--text-secondary);
}

.apartment-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.apt-detail {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}

.apt-detail svg {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
}

.apartment-actions {
  display: flex;
  gap: 8px;
}

/* ===== PAYMENT ITEM ===== */
.payment-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all var(--transition-normal);
}

.payment-card:hover {
  background: var(--bg-card-hover);
}

.payment-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.payment-info {
  flex: 1;
  min-width: 0;
}

.payment-title {
  font-size: 14px;
  font-weight: 600;
}

.payment-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
}

.payment-amount {
  text-align: right;
  flex-shrink: 0;
}

.payment-amount .amount {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.payment-amount .date {
  font-size: 11px;
  color: var(--text-muted);
}

/* ===== ANNOUNCEMENT CARD ===== */
.announcement-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 18px;
  transition: all var(--transition-normal);
  animation: fadeInUp 0.5s ease;
}

.announcement-card:hover {
  border-color: var(--border-light);
  box-shadow: var(--shadow-md);
}

.announcement-card.important {
  border-left: 3px solid var(--warning);
}

.announcement-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.announcement-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.announcement-content {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

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

.empty-state .empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.empty-state p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== SECTION HEADER ===== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.section-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--primary-light);
}

/* ===== FAB BUTTON ===== */
.fab {
  position: fixed;
  bottom: 80px;
  right: 16px;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--primary-gradient);
  color: white;
  border: none;
  font-size: 24px;
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 999;
}

.fab:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(249, 115, 22, 0.45);
}

.fab:active {
  transform: scale(0.95);
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast {
  position: fixed;
  top: 72px;
  right: 16px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 3000;
  animation: slideInRight 0.3s ease;
  max-width: 320px;
}

.toast.success {
  border-left: 3px solid var(--success);
}

.toast.error {
  border-left: 3px solid var(--error);
}

.toast.warning {
  border-left: 3px solid var(--warning);
}

.toast-message {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}

/* ===== LOADING ===== */
.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: var(--radius-full);
  animation: spin 0.8s linear infinite;
}

/* ===== SEARCH BAR ===== */
.search-bar {
  position: relative;
  margin-bottom: 16px;
}

.search-bar .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.search-bar input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  transition: all var(--transition-fast);
  min-height: 44px;
}

.search-bar input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

/* ===== UTILITIES ===== */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

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

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

.gap-8 {
  gap: 8px;
}

.gap-12 {
  gap: 12px;
}

.gap-16 {
  gap: 16px;
}

.mt-8 {
  margin-top: 8px;
}

.mt-16 {
  margin-top: 16px;
}

.mt-24 {
  margin-top: 24px;
}

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

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

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

.w-full {
  width: 100%;
}

.hidden {
  display: none !important;
}

/* ===== RESPONSIVE - TABLET ===== */
@media (min-width: 600px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .apartment-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .main-content {
    padding: 20px;
    padding-top: 76px;
    padding-bottom: 80px;
  }
}

/* ===== RESPONSIVE - DESKTOP ===== */
@media (min-width: 1024px) {
  .bottom-tabs {
    top: 60px; /* Below top nav */
    bottom: 0;
    left: 0;
    right: auto;
    width: 240px;
    height: calc(100vh - 60px);
    flex-direction: column;
    justify-content: flex-start;
    padding: 20px 0;
    background: #fff;
    border-top: none;
    border-right: 1px solid var(--border);
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
    overflow-x: hidden;
  }

  body.sidebar-collapsed .bottom-tabs {
    width: 72px;
  }

  .tab-item {
    flex-direction: row;
    justify-content: flex-start;
    padding: 12px 24px;
    gap: 16px;
    width: 100%;
    min-width: 0;
    border-radius: 0;
    margin-bottom: 4px;
  }

  body.sidebar-collapsed .tab-item {
    padding: 12px 0;
    justify-content: center;
  }

  .tab-item span {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 1;
    transition: opacity 0.2s ease;
  }

  body.sidebar-collapsed .tab-item span {
    opacity: 0;
    width: 0;
    overflow: hidden;
    margin: 0;
  }

  .tab-item svg {
    min-width: 22px;
  }

  .tab-item.active::before {
    left: 0;
    top: 0;
    bottom: 0;
    right: auto;
    width: 4px;
    height: 100%;
    transform: none;
    border-radius: 0 4px 4px 0;
  }

  .main-content {
    padding-left: 260px;
    padding-top: 80px;
    padding-bottom: 40px;
    transition: padding-left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }

  body.sidebar-collapsed .main-content {
    padding-left: 92px;
  }

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

  .modal {
    border-radius: var(--radius-xl);
    align-self: center;
  }

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

  .fab {
    bottom: 32px;
    right: 32px;
  }
}