/* StayFlow custom CSS — supplements Tailwind */

* {
  box-sizing: border-box;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #374151;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #4b5563;
}

/* Sidebar */
#sidebar {
  transition: width 0.2s ease;
}

#sidebar.collapsed {
  width: 4rem;
}

#sidebar.collapsed .nav-label {
  display: none;
}

#sidebar.collapsed .nav-item {
  justify-content: center;
}

/* Room grid cards */
.room-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.room-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Status badges */
.status-available {
  background: #052e1626;
  border-color: #10b981;
  color: #34d399;
}

.status-advance {
  background: #451a0326;
  border-color: #f59e0b;
  color: #fbbf24;
}

.status-occupied {
  background: #450a0a26;
  border-color: #ef4444;
  color: #f87171;
}

.status-out_of_order {
  background: #431407;
  border-color: #f97316;
  color: #fb923c;
}

/* Modal overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.15s ease;
}

.modal-box {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.2s ease;
  padding: 1.5rem;
}

.dark .modal-box {
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

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

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

/* Toast */
.toast {
  padding: 0.75rem 1rem;
  border-radius: 0.625rem;
  font-size: 0.875rem;
  border: 1px solid;
  animation: slideIn 0.2s ease;
  position: relative;
  overflow: hidden;
}

.toast-success {
  background: #052e16;
  border-color: #10b981;
  color: #a7f3d0;
}

.toast-error {
  background: #450a0a;
  border-color: #ef4444;
  color: #fca5a5;
}

.toast-info {
  background: #0c1a3a;
  border-color: #3b82f6;
  color: #93c5fd;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(0);
  }
}

/* Table */
.sf-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.sf-table th {
  padding: 0.875rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #475569;
  background-color: #f8fafc;
  border-bottom: 2px solid #e2e8f0;
}

.sf-table td {
  padding: 0.75rem;
  font-size: 0.875rem;
  border-bottom: 1px solid #e2e8f0;
  color: #1e293b;
}

.sf-table tbody tr:nth-child(even) td {
  background-color: #f8fafc;
}

.sf-table tbody tr:hover td {
  background: #f1f5f9;
}

.dark .sf-table th {
}

.dark .sf-table td {
}

.dark .sf-table tbody tr:nth-child(even) td {
}

.dark .sf-table tbody tr:hover td {
}

/* Form inputs */
.sf-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  color: #111827;
  font-size: 0.875rem;
  transition: border-color 0.15s;
}

.sf-input:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.dark .sf-input {
}

.sf-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 1rem;
  padding-right: 2rem;
}

.sf-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: #6b7280;
  margin-bottom: 0.25rem;
}

.dark .sf-label {
}

.sf-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  border: none;
}

.sf-btn-primary {
  background: linear-gradient(135deg, #10b981, #0891b2);
  color: white;
}

.sf-btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.sf-btn-ghost {
  background: transparent;
  color: #4b5563;
  border: 1px solid #d1d5db;
}

.sf-btn-ghost:hover {
  background: #f3f4f6;
  color: #111827;
}

.dark .sf-btn-ghost {
}

.dark .sf-btn-ghost:hover {
}

.sf-btn-danger {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

.sf-btn-danger:hover {
  background: #fecaca;
}

.dark .sf-btn-danger {
}

.dark .sf-btn-danger:hover {
}

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

/* Cards */
.sf-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.25rem;
}

.dark .sf-card {
}

.sf-stat-card {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.25rem;
}

.dark .sf-stat-card {
}

/* Page transitions */
#page-content>* {
  animation: fadeIn 0.2s ease;
}

/* Sidebar nav item active */
.nav-item.active {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-left: 3px solid #10b981;
}

.nav-item {
  border-left: 3px solid transparent;
}