/* Hotel Malaquias 3,10 — alinhado ao design React (Tailwind / shadcn) */
:root {
  --hotel-green: #059669;
  --hotel-green-light: #d1fae5;
  --hotel-green-dark: #047857;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --emerald-50: #ecfdf5;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --white: #fff;
  --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);
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.hotel-body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--gray-50);
  color: var(--gray-900);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.hotel-shell {
  display: flex;
  min-height: 100vh;
}

/* Overlay mobile */
.hotel-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 40;
}

body.hotel-nav-open .hotel-nav-overlay {
  display: block;
}

@media (min-width: 1024px) {
  body.hotel-nav-open .hotel-nav-overlay {
    display: none;
  }
}

/* Sidebar */
.hotel-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 17.5rem;
  height: 100vh;
  height: 100dvh;
  background: var(--white);
  border-right: 1px solid var(--gray-100);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

@media (max-width: 1023px) {
  .hotel-sidebar {
    transform: translateX(-100%);
  }
  body.hotel-nav-open .hotel-sidebar {
    transform: translateX(0);
  }
}

@media (min-width: 1024px) {
  .hotel-sidebar {
    position: sticky;
    transform: none !important;
  }
}

.hotel-sidebar__brand {
  padding: 1.5rem;
  border-bottom: 1px solid var(--gray-100);
  text-align: center;
}

.hotel-sidebar__brand img {
  height: 6rem;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.hotel-sidebar__nav {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hotel-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-xl);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-500);
  text-decoration: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.hotel-nav-link:hover {
  background: var(--gray-50);
  color: var(--gray-700);
}

.hotel-nav-link--active {
  background: var(--emerald-50);
  color: var(--emerald-700);
  box-shadow: var(--shadow-sm);
}

.hotel-nav-link--active .hotel-nav-icon {
  color: var(--emerald-600);
}

.hotel-nav-link:not(.hotel-nav-link--active) .hotel-nav-icon {
  color: var(--gray-400);
}

.hotel-nav-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.hotel-sidebar__footer {
  padding: 1rem;
  border-top: 1px solid var(--gray-100);
  display: grid;
  gap: 0.65rem;
}

.hotel-sidebar__card {
  background: var(--emerald-50);
  border-radius: var(--radius-xl);
  padding: 1rem;
  position: relative;
}

.hotel-sidebar__card-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.6rem;
  min-height: 2.2rem;
}

.hotel-sidebar__card-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--emerald-700);
  margin: 0;
}

.hotel-sidebar__card-sub {
  font-size: 0.75rem;
  color: var(--emerald-500);
  margin: 0.25rem 0 0;
}

.hotel-sidebar__logout-form {
  margin: 0;
  position: absolute;
  right: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
}

.hotel-sidebar__logout-btn {
  width: 2.15rem !important;
  height: 2.15rem !important;
  border: 1px solid #b7e4d4 !important;
  border-radius: 0.7rem !important;
  background: #ffffff !important;
  color: var(--emerald-700) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  transition: all 0.15s ease !important;
  padding: 0 !important;
}

.hotel-sidebar__logout-btn:hover {
  border-color: #86d4b5 !important;
  color: #ef4444 !important;
  background: #fff5f5 !important;
  transform: translateY(-1px);
}

.hotel-sidebar__logout-btn .hotel-nav-icon {
  width: 1.05rem;
  height: 1.05rem;
}

/* Main */
.hotel-main {
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
}

@media (min-width: 1024px) {
  .hotel-main {
    width: calc(100% - 17.5rem);
  }
}

.hotel-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
  padding: 1rem 1.5rem;
}

@media (min-width: 1024px) {
  .hotel-header {
    padding: 1rem 2rem;
  }
}

.hotel-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.hotel-header__left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hotel-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border: none;
  border-radius: var(--radius-xl);
  background: transparent;
  cursor: pointer;
  color: var(--gray-600);
}

.hotel-menu-btn:hover {
  background: var(--gray-100);
}

@media (min-width: 1024px) {
  .hotel-menu-btn {
    display: none;
  }
}

.hotel-page-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
}

.hotel-content {
  flex: 1;
  padding: 1rem 1.5rem 2rem;
}

@media (min-width: 1024px) {
  .hotel-content {
    padding: 2rem;
  }
}

/* Cards */
.hotel-card {
  background: var(--white);
  border-radius: var(--radius-2xl);
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hotel-card--hover:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  border-color: #d1d5db;
}

/* Stat cards (dashboard) */
.hotel-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hotel-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .hotel-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Financeiro / listas com mais cards */
.hotel-stats--flow {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.hotel-stat-card {
  background: var(--white);
  border-radius: var(--radius-2xl);
  padding: 1.5rem;
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s;
}

.hotel-stat-card:hover {
  box-shadow: var(--shadow-md);
}

.hotel-stat-card__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.hotel-stat-card__label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-500);
  margin: 0 0 0.5rem;
}

.hotel-stat-card__value {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0;
  line-height: 1.2;
}

.hotel-stat-card__sub {
  font-size: 0.75rem;
  color: var(--gray-400);
  margin: 0.5rem 0 0;
}

.hotel-stat-icon {
  padding: 0.75rem;
  border-radius: var(--radius-xl);
  flex-shrink: 0;
}

.hotel-stat-icon--emerald {
  background: var(--emerald-50);
  color: var(--emerald-600);
}

.hotel-stat-icon--blue {
  background: #eff6ff;
  color: #2563eb;
}

.hotel-stat-icon--amber {
  background: #fffbeb;
  color: #d97706;
}

.hotel-stat-icon--purple {
  background: #f5f3ff;
  color: #7c3aed;
}

/* Table */
.hotel-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-100);
  background: var(--white);
}

.hotel-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.hotel-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: var(--gray-500);
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-100);
}

.hotel-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
  transition: background 0.15s ease;
}

.hotel-table tr:last-child td {
  border-bottom: none;
}

.hotel-table tbody tr:hover td {
  background: #fafafa;
}

/* Forms */
.hotel-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.hotel-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.35rem;
}

.hotel-input,
.hotel-field input,
.hotel-field select,
.hotel-field textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  font-size: 0.875rem;
  font-family: inherit;
}

.hotel-field textarea {
  min-height: 80px;
  resize: vertical;
}

.hotel-input:focus,
.hotel-field input:focus,
.hotel-field select:focus,
.hotel-field textarea:focus {
  outline: none;
  border-color: var(--emerald-500);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

/* Buttons */
.hotel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1rem;
  border-radius: var(--radius-xl);
  font-size: 0.875rem;
  width: 100%;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s ease, opacity 0.2s ease;
}

.hotel-btn:active {
  transform: scale(0.98);
}

.hotel-btn--primary {
  background: var(--emerald-600);
  color: var(--white);
  box-shadow: 0 4px 10px rgba(5, 150, 105, 0.18);
}

.hotel-btn--primary:hover {
  background: var(--emerald-700);
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.25);
}

.hotel-btn--danger {
  background: #fef2f2;
  color: #dc2626;
}

.hotel-btn--danger:hover {
  background: #fee2e2;
}

.hotel-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

/* Alerts */
.hotel-flash {
  background: var(--emerald-50);
  color: var(--emerald-700);
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-xl);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.hotel-errors {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  border-radius: var(--radius-xl);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.hotel-section-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 1rem;
}

.hotel-subtitle {
  margin: -0.55rem 0 1rem;
  font-size: 0.82rem;
  color: var(--gray-500);
}

.hotel-page-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hotel-search {
  max-width: 26rem;
  width: 100%;
}

.hotel-card-grid {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .hotel-card-grid {
    gap: 1rem;
  }
}

.hotel-item-card {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.hotel-item-card:hover {
  border-color: #d1d5db;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.hotel-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.hotel-item-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--gray-900);
}

.hotel-item-sub {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: var(--gray-500);
}

.hotel-empty {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: 1rem;
  padding: 2rem 1rem;
  text-align: center;
  color: var(--gray-500);
}

.hotel-empty svg {
  width: 2.5rem;
  height: 2.5rem;
  color: #d1d5db;
  margin: 0 auto 0.6rem;
}

.hotel-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Dashboard: gráficos em 2 colunas (como React) */
.hotel-dash-charts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .hotel-dash-charts {
    grid-template-columns: repeat(2, 1fr);
  }
}

.hotel-chart-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin: 0 0 1rem;
}

.hotel-donut-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hotel-donut-canvas {
  position: relative;
  width: 8rem;
  height: 8rem;
  flex-shrink: 0;
}

.hotel-donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  pointer-events: none;
}

.hotel-legend {
  flex: 1;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hotel-legend__row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--gray-600);
}

.hotel-legend__dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 9999px;
  flex-shrink: 0;
}

.hotel-legend__val {
  margin-left: auto;
  font-weight: 600;
  color: var(--gray-900);
}

.hotel-chart-h {
  height: 12rem;
}

.hotel-profit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hotel-profit-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.hotel-profit-badge--up {
  color: var(--emerald-600);
}

.hotel-profit-badge--down {
  color: #e11d48;
}

.hotel-profit-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-100);
  text-align: center;
}

@media (max-width: 639px) {
  .hotel-profit-footer {
    grid-template-columns: 1fr;
  }
}

/* Mobile polido para ficar mais próximo do React */
@media (max-width: 1023px) {
  .hotel-sidebar {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  }

  .hotel-header {
    padding: 0.875rem 1rem;
  }

  .hotel-page-title {
    font-size: 1.05rem;
  }

  .hotel-content {
    padding: 0.875rem 1rem 1.5rem;
  }

  .hotel-card {
    border-radius: 0.9rem;
    padding: 1rem;
  }
}

.hotel-profit-footer__label {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin: 0 0 0.25rem;
}

.hotel-profit-footer__val {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0;
}

.hotel-activity-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hotel-activity-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hotel-activity-icon {
  padding: 0.5rem;
  border-radius: var(--radius-xl);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hotel-activity-icon--in {
  background: var(--emerald-50);
  color: var(--emerald-600);
}

.hotel-activity-icon--out {
  background: #fff1f2;
  color: #e11d48;
}

.hotel-activity-icon--cart {
  background: #eff6ff;
  color: #2563eb;
}

.hotel-activity-text {
  flex: 1;
  min-width: 0;
}

.hotel-activity-text p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--gray-700);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hotel-activity-time {
  font-size: 0.75rem;
  color: var(--gray-400);
  margin: 0.125rem 0 0;
}

/* Suites (estilo React) */
.hotel-suites-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

@media (min-width: 640px) {
  .hotel-suites-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}

@media (min-width: 900px) {
  .hotel-suites-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .hotel-suites-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.suite-card {
  position: relative;
  border: 2px solid var(--gray-200);
  border-radius: 1rem;
  padding: 1rem;
  background: #ffffff;
  text-align: left;
  width: 100%;
  cursor: pointer;
  transition: 0.2s ease;
}

.suite-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.suite-card--available {
  border-color: #a7f3d0;
  background: rgba(236, 253, 245, 0.55);
}

.suite-card--occupied {
  border-color: #fecdd3;
  background: rgba(255, 241, 242, 0.55);
}

.suite-card--maintenance {
  border-color: #fde68a;
  background: rgba(255, 251, 235, 0.55);
}

.suite-card--cleaning {
  border-color: #bfdbfe;
  background: rgba(239, 246, 255, 0.6);
}

.suite-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.suite-card__number {
  font-size: 1.9rem;
  line-height: 1;
  font-weight: 700;
  color: var(--gray-900);
}

.suite-card__dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 9999px;
  margin-top: 0.2rem;
}

.suite-card__dot--available { background: #10b981; }
.suite-card__dot--occupied { background: #f43f5e; }
.suite-card__dot--maintenance { background: #f59e0b; }
.suite-card__dot--cleaning { background: #3b82f6; }

.suite-card__type {
  margin: 0 0 0.2rem;
  font-size: 0.75rem;
  color: var(--gray-500);
}

.suite-card__rate {
  margin: 0;
  font-size: 0.78rem;
  color: var(--emerald-600);
  font-weight: 700;
}

.suite-card__badge {
  margin-top: 0.6rem;
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #fff;
}

.suite-card__badge--available { background: #10b981; }
.suite-card__badge--occupied { background: #f43f5e; }
.suite-card__badge--maintenance { background: #f59e0b; }
.suite-card__badge--cleaning { background: #3b82f6; }

.suite-card__guest {
  margin: 0.45rem 0 0;
  font-size: 0.75rem;
  color: var(--gray-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hotel-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.hotel-modal.is-open {
  display: flex;
}

.hotel-modal__card {
  width: 100%;
  max-width: 30rem;
  max-height: 88vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 1rem;
  border: 1px solid var(--gray-200);
  padding: 1rem;
  animation: hotelPop 0.18s ease;
}

@keyframes hotelFadeUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hotelPop {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hotel-anim-in {
  animation: hotelFadeUp 0.24s ease both;
}

.hotel-anim-delay-1 { animation-delay: 0.03s; }
.hotel-anim-delay-2 { animation-delay: 0.06s; }
.hotel-anim-delay-3 { animation-delay: 0.09s; }

.hotel-kpi-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.8rem;
}

.hotel-kpi-mini {
  border: 1px solid var(--gray-100);
  border-radius: 0.85rem;
  background: #fff;
  padding: 0.8rem 0.9rem;
}

.hotel-kpi-mini__label {
  margin: 0;
  font-size: 0.74rem;
  color: var(--gray-500);
  font-weight: 600;
}

.hotel-kpi-mini__value {
  margin: 0.3rem 0 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
}

.hotel-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
}

.hotel-badge--green { background: #dcfce7; color: #166534; }
.hotel-badge--rose { background: #ffe4e6; color: #be123c; }
.hotel-badge--blue { background: #dbeafe; color: #1d4ed8; }
.hotel-badge--amber { background: #fef3c7; color: #92400e; }
.hotel-badge--gray { background: #f3f4f6; color: #374151; }
