/* ===================================
   Nhà số 7 - CSS Framework
   Thiết kế tối giản cho người 60+
   =================================== */

/* ===== FONTAWESOME ICONS ===== */
.fa-solid,
.fa-regular,
.fa-brands {
  margin-right: 6px;
  font-size: 0.9em;
}

/* Icons without margin (for buttons with only icon) */
.btn-delete-icon .fa-solid,
.btn-delete-icon .fa-xmark {
  margin-right: 0;
}

:root {
  /* Màu chính - Indigo palette sang trọng */
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #a5b4fc;
  --accent: #f472b6;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;

  /* Màu nền và text */
  --bg: #f8fafc;
  --bg-white: #ffffff;
  --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --text: #1e293b;
  --text-light: #64748b;
  --border: #e2e8f0;

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.25);
  --glass-bg-strong: rgba(255, 255, 255, 0.85);
  --glass-bg-card: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
  --glass-shadow-hover: 0 16px 48px rgba(31, 38, 135, 0.2);
  --blur: blur(16px);
  --blur-light: blur(8px);

  /* Font size lớn cho người lớn tuổi */
  --font-base: 18px;
  --font-lg: 20px;
  --font-xl: 24px;
  --font-2xl: 32px;
  --font-3xl: 42px;

  /* Spacing - tăng white space */
  --space-xs: 8px;
  --space-sm: 14px;
  --space-md: 18px;
  --space-lg: 28px;
  --space-xl: 42px;
  --space-2xl: 72px;

  /* Border radius - bo tròn mềm mại */
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: var(--font-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

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

a:hover {
  text-decoration: underline;
}

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

/* ===== LAYOUT ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
  padding: var(--space-xl) 0;
}

/* ===== HEADER ===== */
.header {
  background: var(--glass-bg-strong);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid var(--glass-border);
  padding: var(--space-md) 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.logo {
  font-size: var(--font-2xl);
  font-weight: 700;
  color: var(--primary);
}

.logo span {
  color: var(--text);
}

.nav {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.nav a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  background: transparent;
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.nav a:hover {
  background: var(--glass-bg);
  backdrop-filter: var(--blur-light);
  border-color: var(--glass-border);
  color: var(--primary);
  text-decoration: none;
}

.nav a.active {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  color: white;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--text);
  color: white;
  padding: var(--space-xl) 0;
  margin-top: auto;
}

.footer a {
  color: white;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
}

.footer h3 {
  margin-bottom: var(--space-md);
  font-size: var(--font-lg);
}

.footer p {
  margin-bottom: var(--space-sm);
  color: #d1d5db;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--font-base);
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
  transform: translateY(-3px);
}

.btn-success {
  background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-success:hover {
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

.btn-warning {
  background: linear-gradient(135deg, var(--warning) 0%, #d97706 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.btn-warning:hover {
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.btn-danger:hover {
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.5);
}

.btn-outline {
  background: var(--glass-bg);
  backdrop-filter: var(--blur-light);
  -webkit-backdrop-filter: var(--blur-light);
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.btn-lg {
  padding: var(--space-md) var(--space-xl);
  font-size: var(--font-lg);
  border-radius: var(--radius-lg);
}

.btn-block {
  width: 100%;
}

/* ===== CARDS ===== */
.card {
  background: var(--glass-bg-card);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-radius: var(--radius-xl);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
  transition: all 0.3s ease;
}

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

.card-header {
  padding: var(--space-lg);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.5);
}

.card-header h2,
.card-header h3 {
  margin: 0;
  font-size: var(--font-xl);
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.card-footer {
  padding: var(--space-lg);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.5);
}

/* ===== ROOM CARDS ===== */
.room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-xl);
}

.room-card {
  background: var(--glass-bg-card);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-radius: var(--radius-xl);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.room-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 24px 50px rgba(31, 38, 135, 0.25);
}

.room-image {
  height: 220px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f472b6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--font-3xl);
  font-weight: 700;
  position: relative;
  overflow: hidden;
}

.room-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.3) 100%);
}

.room-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.room-card:hover .room-image img {
  transform: scale(1.1);
}

.room-info {
  padding: var(--space-xl);
}

.room-number {
  font-size: var(--font-2xl);
  font-weight: 700;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-sm);
}

.room-floor {
  color: var(--text-light);
  margin-bottom: var(--space-md);
}

.room-price {
  font-size: var(--font-xl);
  font-weight: 700;
  color: var(--success);
  margin-bottom: var(--space-md);
}

/* ===== STATUS BADGES ===== */
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: var(--space-xs) var(--space-md);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.status-available {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-occupied {
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.status-maintenance {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-pending {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-paid {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-overdue {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

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

.form-label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: 600;
  font-size: var(--font-base);
  color: var(--text);
}

.form-control {
  width: 100%;
  padding: var(--space-md);
  font-size: var(--font-base);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.form-control:hover {
  border-color: rgba(99, 102, 241, 0.3);
}

.form-control:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.form-control::placeholder {
  color: var(--text-light);
}

select.form-control {
  cursor: pointer;
  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: 18px;
  padding-right: 45px;
}

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

/* ===== TABLES ===== */
.table-responsive {
  overflow-x: auto;
}

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

.table th,
.table td {
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.table th {
  background: var(--bg);
  font-weight: 600;
  white-space: nowrap;
}

.table tr:hover {
  background: #f9fafb;
}

.table .actions {
  white-space: nowrap;
}

.table .actions a,
.table .actions button {
  margin-right: var(--space-xs);
}

/* ===== ALERTS ===== */
.alert {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius);
  margin-bottom: var(--space-md);
  font-size: var(--font-base);
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  backdrop-filter: blur(8px);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  backdrop-filter: blur(8px);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.alert-warning {
  background: rgba(245, 158, 11, 0.1);
  backdrop-filter: blur(8px);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.alert-info {
  background: rgba(99, 102, 241, 0.1);
  backdrop-filter: blur(8px);
  color: var(--primary);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

/* ===== HERO SECTION ===== */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f472b6 100%);
  color: white;
  padding: var(--space-2xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 50%
  );
  animation: heroGlow 15s ease-in-out infinite;
}

@keyframes heroGlow {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(10%, 10%);
  }
}

.hero h1 {
  font-size: var(--font-3xl);
  margin-bottom: var(--space-lg);
  position: relative;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero p {
  font-size: var(--font-xl);
  opacity: 0.95;
  max-width: 650px;
  margin: 0 auto var(--space-xl);
  position: relative;
}

/* ===== SECTION ===== */
.section {
  padding: var(--space-2xl) 0;
}

.section-title {
  font-size: var(--font-2xl);
  text-align: center;
  margin-bottom: var(--space-2xl);
  color: var(--text);
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== STATS ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-xl);
}

.stat-card {
  background: var(--glass-bg-card);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  border: 1px solid var(--glass-border);
  text-align: center;
  box-shadow: var(--glass-shadow);
  transition: all 0.3s ease;
}

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

.stat-number {
  font-size: var(--font-3xl);
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  color: var(--text-light);
  font-size: var(--font-base);
  margin-top: var(--space-sm);
}

/* ===== ADMIN LAYOUT ===== */
.admin-wrapper {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 280px;
  background: var(--text);
  color: white;
  padding: var(--space-lg);
  position: fixed;
  height: 100vh;
  overflow-y: auto;
}

.admin-sidebar .logo {
  color: white;
  margin-bottom: var(--space-xl);
  text-align: center;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.admin-nav a {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  color: #d1d5db;
  border-radius: var(--radius);
  font-size: var(--font-base);
  transition: all 0.2s;
}

.admin-nav a:hover,
.admin-nav a.active {
  background: var(--primary);
  color: white;
  text-decoration: none;
}

.admin-nav a svg {
  width: 24px;
  height: 24px;
}

.admin-main {
  flex: 1;
  margin-left: 280px;
  padding: var(--space-lg);
  background: var(--bg);
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border);
}

.admin-header h1 {
  font-size: var(--font-2xl);
  margin: 0;
}

/* ===== LOGIN PAGE ===== */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.login-box {
  background: var(--bg-white);
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 400px;
}

.login-box h1 {
  text-align: center;
  margin-bottom: var(--space-lg);
  color: var(--primary);
}

/* ===== INVOICE ===== */
.invoice {
  background: white;
  padding: var(--space-xl);
  max-width: 800px;
  margin: 0 auto;
}

.invoice-header {
  text-align: center;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 2px solid var(--border);
}

.invoice-header h1 {
  color: var(--primary);
  margin-bottom: var(--space-xs);
}

.invoice-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.invoice-table {
  width: 100%;
  margin-bottom: var(--space-xl);
}

.invoice-table th,
.invoice-table td {
  padding: var(--space-sm);
  border: 1px solid var(--border);
}

.invoice-table th {
  background: var(--bg);
}

.invoice-total {
  text-align: right;
  font-size: var(--font-xl);
  font-weight: 700;
  color: var(--danger);
}

.invoice-qr {
  text-align: center;
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 2px dashed var(--border);
}

.invoice-qr img {
  max-width: 250px;
}

/* ===== UTILITIES ===== */
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.text-muted {
  color: var(--text-light);
}
.text-success {
  color: var(--success);
}
.text-warning {
  color: var(--warning);
}
.text-danger {
  color: var(--danger);
}
.text-primary {
  color: var(--primary);
}

.mb-0 {
  margin-bottom: 0;
}
.mb-1 {
  margin-bottom: var(--space-xs);
}
.mb-2 {
  margin-bottom: var(--space-sm);
}
.mb-3 {
  margin-bottom: var(--space-md);
}
.mb-4 {
  margin-bottom: var(--space-lg);
}
.mb-5 {
  margin-bottom: var(--space-xl);
}

.mt-3 {
  margin-top: var(--space-md);
}
.mt-4 {
  margin-top: var(--space-lg);
}
.mt-5 {
  margin-top: var(--space-xl);
}

.d-flex {
  display: flex;
}
.justify-between {
  justify-content: space-between;
}
.align-center {
  align-items: center;
}
.gap-2 {
  gap: var(--space-sm);
}
.gap-3 {
  gap: var(--space-md);
}

.hidden {
  display: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .admin-sidebar {
    display: none;
  }

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

  .header .container {
    flex-direction: column;
    text-align: center;
  }

  .room-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .invoice-details {
    grid-template-columns: 1fr;
  }
}

@media print {
  .no-print {
    display: none !important;
  }

  .invoice {
    box-shadow: none;
    padding: 0;
  }
}

/* ===== TABS ===== */
.tabs {
  display: flex;
  gap: var(--space-xs);
  background: var(--bg);
  padding: var(--space-sm);
  border-bottom: 1px solid var(--border);
}

.tab {
  padding: var(--space-sm) var(--space-lg);
  background: transparent;
  border: none;
  border-radius: var(--radius);
  font-size: var(--font-base);
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.tab:hover {
  background: var(--bg-white);
  color: var(--primary);
  text-decoration: none;
}

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

/* ===== GALLERY ===== */
.room-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

@media (max-width: 768px) {
  .room-detail-grid {
    grid-template-columns: 1fr;
  }
}

.gallery-main {
  height: 400px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-main .no-image {
  text-align: center;
  color: var(--text-light);
}

.gallery-thumbs {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  padding: var(--space-xs) 0;
}

.gallery-thumb {
  flex-shrink: 0;
  width: 80px;
  height: 60px;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.2s;
}

.gallery-thumb:hover,
.gallery-thumb.active {
  border-color: var(--primary);
}

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

/* ===== VIDEO PLAYER ===== */
.video-player {
  width: 100%;
  max-height: 300px;
  border-radius: var(--radius-lg);
  background: #000;
}

.room-video h4 {
  margin-bottom: var(--space-sm);
  color: var(--text);
}

/* ===== ROOM INFO DETAIL ===== */
.room-title {
  font-size: var(--font-3xl);
  color: var(--primary);
  margin-bottom: var(--space-xs);
}

.room-floor {
  color: var(--text-light);
  margin-bottom: var(--space-md);
}

.room-price-big {
  font-size: var(--font-2xl);
  font-weight: 700;
  color: var(--success);
  margin-bottom: var(--space-lg);
}

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

/* ===== FURNITURE ===== */
.furniture-section {
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border);
}

.furniture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.furniture-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border);
}

.furniture-card-header {
  background: var(--primary);
  color: white;
  padding: var(--space-sm) var(--space-md);
  font-weight: 600;
  font-size: var(--font-base);
}

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

.furniture-list-simple {
  list-style: none;
  margin: 0;
  padding: 0;
}

.furniture-list-simple li {
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.furniture-list-simple .qty {
  color: var(--text-light);
  font-size: 14px;
}

/* Admin Furniture List */
.furniture-area {
  margin-bottom: var(--space-xl);
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.furniture-area h5 {
  margin: 0;
  padding: var(--space-md) var(--space-lg);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  font-size: var(--font-base);
  font-weight: 600;
}

.furniture-list {
  display: flex;
  flex-direction: column;
}

.furniture-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-lg);
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.furniture-item:last-child {
  border-bottom: none;
}

.furniture-item:hover {
  background: #f9fafb;
}

.furniture-name {
  flex: 1;
  font-weight: 500;
}

.furniture-name small {
  color: var(--text-light);
  font-weight: 400;
}

.furniture-status {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.furniture-item .btn-delete-icon {
  width: 32px;
  height: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
}

.furniture-item .btn-delete-icon:hover {
  background: var(--danger);
  border-color: var(--danger);
  color: white;
}

/* ===== ADMIN GALLERY ===== */
.media-section {
  padding: var(--space-md) 0;
}

.upload-section {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.upload-section h4 {
  margin: 0 0 var(--space-xs) 0;
  color: var(--text);
  font-size: var(--font-lg);
}

.upload-section .text-muted {
  margin-bottom: var(--space-md);
}

.media-preview {
  margin: var(--space-md) 0;
  padding: var(--space-md);
  background: var(--bg);
  border-radius: var(--radius);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

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

.gallery-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: var(--space-md) var(--space-sm) var(--space-sm);
  display: flex;
  justify-content: center;
  gap: var(--space-xs);
}

.gallery-actions .btn {
  backdrop-filter: blur(4px);
}

.upload-form {
  padding: var(--space-lg);
  background: var(--bg);
  border-radius: var(--radius);
  border: 2px dashed var(--border);
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
}

.upload-form:hover {
  border-color: var(--primary);
  background: #f0f7ff;
}

.upload-form input[type="file"] {
  margin-bottom: var(--space-md);
}

/* ===== BUTTON SIZES ===== */
.btn-sm {
  padding: 6px 12px;
  font-size: 14px;
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ===== IMPROVED TABS ===== */
.tabs {
  display: flex;
  gap: 0;
  background: transparent;
  padding: 0;
  border-bottom: 2px solid var(--border);
}

.tab {
  padding: var(--space-md) var(--space-lg);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  font-size: var(--font-base);
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.tab:hover {
  background: var(--bg);
  color: var(--primary);
  text-decoration: none;
}

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

/* ===== FORM IMPROVEMENTS ===== */
.add-furniture-form {
  background: var(--bg);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  margin-top: var(--space-md);
}

/* ===== HR STYLING ===== */
hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--space-lg) 0;
}

/* ===== DO ITEM (Handover items form & view) ===== */
.do-item {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
  position: relative;
}

.do-item:hover {
  background: #fafbfc;
}

.do-item-row {
  display: grid;
  grid-template-columns: 2fr 1fr 80px;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
}

.do-item-row:last-child {
  margin-bottom: 0;
}

.do-item-row.full-width {
  grid-template-columns: 1fr;
}

.do-item-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.do-item-field label .required {
  color: var(--danger);
}

.do-item .btn-delete-corner {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 12px;
}

.do-item .btn-delete-corner:hover {
  background: var(--danger);
  border-color: var(--danger);
  color: white;
}

/* View mode for furniture list */
.furniture-view-item {
  display: grid;
  grid-template-columns: 2fr 1fr 80px 1.5fr 40px;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: var(--space-sm);
}

.furniture-view-item:hover {
  background: #f9fafb;
}

.furniture-name-text {
  font-weight: 500;
}

@media (max-width: 768px) {
  .do-item-row {
    grid-template-columns: 1fr;
  }

  .furniture-view-item {
    grid-template-columns: 1fr;
    gap: var(--space-xs);
  }
}

/* Table header for furniture list */
.furniture-table-header {
  display: grid;
  grid-template-columns: 2fr 1fr 80px 1.5fr 40px;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  background: var(--primary);
  color: white;
  border-radius: var(--radius) var(--radius) 0 0;
  font-weight: 600;
  font-size: 14px;
}
