/* --- Global Styles --- */
:root {

  --light-bg: #f4f7f6;
  --dark-bg: #343a40;
  --card-bg: #ffffff;
  --font-color: #333;
  --border-radius: 8px;
  --sidebar-width: 250px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background: var(--bg-img);
  color: var(--font-color);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* --- Layout Container --- */

/* --- Sidebar Styles --- */
.sidebar {
  width: var(--sidebar-width);
  background-color: var(--dark-bg);
  color: white;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.logo {
  text-align: center;
  margin-bottom: 30px;
  padding: 0 20px;
}

.logo h2 {
  font-size: 1.8rem;
  color: var(--primary-color);
}

.nav-menu ul li a {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  transition: background-color 0.3s;
}

.nav-menu ul li a:hover,
.nav-menu ul li.active a {
  background-color: #495057;
  border-left: 5px solid var(--primary-color);
}

.nav-menu ul li a i {
  margin-right: 10px;
  /* Placeholder for actual icon styling */
}


/* --- Main Content Area --- */
.main-content {
  flex-grow: 1;
  padding: 20px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  margin-bottom: 20px;
  border-bottom: 1px solid #ddd;
}

.header h1 {
  font-size: 1.5rem;
}

.user-info {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.user-info span {
  margin-right: 10px;
}

/* --- Summary Cards --- */
.summary-cards {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  /* Allows cards to wrap on smaller screens */
}

.card {
  background-color: var(--card-bg);
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  flex: 1;
  /* Distributes space evenly */
  min-width: 200px;
  /* Minimum width for each card */
}

.card h3 {
  font-size: 1rem;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.data-value {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 5px;
}

.card-bookings .data-value {
  color: var(--primary-color);
}

.card-rooms .data-value {
  color: var(--success-color);
}

.card-revenue .data-value {
  color: var(--primary-color);
}

.card-occupancy .data-value {
  color: var(--warning-color);
}


/* --- Recent Bookings Table --- */
.recent-bookings {
  background-color: var(--card-bg);
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.recent-bookings h2 {
  margin-bottom: 20px;
  font-size: 1.4rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.bookings-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.bookings-table th,
.bookings-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
}

.bookings-table th {
  background-color: var(--light-bg);
  font-weight: 600;
  color: var(--secondary-color);
  text-transform: uppercase;
  font-size: 0.85rem;
}

.status-confirmed {
  color: var(--success-color);
  font-weight: bold;
}

.status-pending {
  color: var(--warning-color);
  font-weight: bold;
}

/* accomodation dashboard */
.dashboard-container {
  display: block;
  gap: 10px;
  width: 100%;
  height: 100vh;
  padding: 18px;
}

.dashboard-section {
  border-radius: 10px;
  display: flex;
  width: 100%;
  height: fit-content;
  margin-bottom: 20px;
}

.dashboard-grid-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, auto));
  gap: 10px;

}

.dashboard-section-cell {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 5px;
  background: linear-gradient(135deg, #e0f2f7 0%, #c4e4ef 100%);
  flex-direction: column;
  display: flex;
}

.dashboard-section-cell-header {
  color: #696767;
  text-transform: capitalize;
  color: gray;
  text-transform: capitalize;
  font-weight: bold;
  border-bottom: 2px dotted;
  margin-bottom: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dashboard-section-cell-header .title {
  display: flex;
}

.dashboard-summary-card {
  border-radius: 10px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  background: linear-gradient(135deg, #e0f2f7 0%, #c4e4ef 100%);
  padding: 10px;
  cursor: pointer;
}

.dashboard-summary-card-inner-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dashboard-summary-card-icon {
  border-radius: 10px;
  font-size: xx-large;
  border-radius: 10px;
  background: #f3710275;
  padding: 10px;
  width: 70px;
  height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  transition: 0.2s ease-in;
}

.dashboard-summary-card:hover {
  box-shadow: inset -3px -1px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.dashboard-summary-card:hover .dashboard-summary-card-icon {
  background: var(--primary-color);
  color: white;
}

.dashboard-summary-card-infor-wrapper {
  display: flex;
  flex-direction: column-reverse;
  align-content: flex-end;
  align-items: flex-end;
}

.dashboard-summary-card-value {
  font-weight: bold;
  font-size: 2rem;
  color: var(--primary-color);
}

.dashboard-summary-card-title {
  display: flex;
  font-weight: bold;
}

/* Checkin section */

.dashboard-current-checkins-container {
  display: flex;
}

.dashboard-current-checkin-item {
  display: flex;
  padding: 5px;
  width: 100%;
  background: #ffffff;
  border-radius: 10px;
  color: black;
  align-items: center;
  height: 106px;
  margin-bottom: 6px;
}

.dashboard-current-checkin-item-infor {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.dashboard-current-checkin-item-image-wrapper {
  width: 100px;
  height: 100%;
  background: white;
  border-radius: 8px;
  padding: 5px;
}

.dashboard-current-checkin-item-image-wrapper img,
svg {
  width: -webkit-fill-available;
  width: -moz-available;
  height: -webkit-fill-available;
  height: -moz-available;
}

.dashboard-current-checkin-item .guest-infor {
  display: flex;
  padding: 5px;
  align-items: center;
  gap: 10px;
  width: 100%;

}

.dashboard-current-checkin-item .gender-icon-wrapper {
  width: 47px;
  height: 49px;
  border-radius: 50%;
  background: wheat;
  padding: 12px;
}

.dashboard-current-checkin-item .guest-name {
  font-weight: bold;
}

.dashboard-current-checkin-item .checkin-time {
  color: gray;
  font-size: small;
}

.dashboard-current-checkin-item .room-infor {
  display: flex;
  color: black;
  padding: 2px 13px;
}

.dashboard-current-checkin-item .period {
  border-radius: 10px;
  background: var(--second-color);
  color: white;
  font-size: large;
  font-weight: bold;
  width: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: fit-content;
  width: 57px;
  height: 42px;
}

.chart-container {
  width: 100%;
  /* max-width: 394px; */
  max-height: 432px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* accomodation dashboard */

/* --- Basic Responsiveness (Optional but recommended) --- */
@media (max-width: 768px) {
  .sidebar {
    width: 80px;
    /* Collapse sidebar on mobile */
  }

  .nav-menu ul li a span {
    display: none;
    /* Hide link text */
  }

  .header {
    flex-direction: column;
    align-items: flex-start;
  }

  .summary-cards {
    flex-direction: column;
  }
}