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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #f5f7fa;
  color: #333;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.admin-header {
  background: white;
  border-bottom: 1px solid #e0e0e0;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.2rem;
  font-weight: 700;
  color: #003580;
}

.logo img {
  height: 40px;
}

.admin-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-info span {
  font-weight: 600;
  color: #333;
}

.btn-logout {
  padding: 8px 16px;
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.3s;
}

.btn-logout:hover {
  background: #c82333;
}

/* Layout */
.admin-layout {
  display: flex;
  min-height: calc(100vh - 73px);
}

/* Sidebar */
.admin-sidebar {
  width: 260px;
  background: white;
  border-right: 1px solid #e0e0e0;
  padding: 24px 0;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  color: #666;
  text-decoration: none;
  transition: all 0.3s;
  position: relative;
}

.nav-item i {
  font-size: 1.1rem;
  width: 20px;
}

.nav-item:hover {
  background: #f8f9fa;
  color: #003580;
}

.nav-item.active {
  background: #e3f2fd;
  color: #003580;
  font-weight: 600;
  border-left: 3px solid #003580;
}

.nav-item .badge {
  margin-left: auto;
  background: #ff5722;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Main Content */
.admin-content {
  flex: 1;
  padding: 32px;
  overflow-y: auto;
}

.content-section {
  display: none;
}

.content-section.active {
  display: block;
}

.content-section h1 {
  font-size: 2rem;
  color: #1a1a1a;
  margin-bottom: 24px;
}

.content-section h2 {
  font-size: 1.3rem;
  color: #333;
  margin-bottom: 16px;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
}

.stat-icon.blue {
  background: linear-gradient(135deg, #003580 0%, #0056d2 100%);
}

.stat-icon.orange {
  background: linear-gradient(135deg, #ff9800 0%, #ff5722 100%);
}

.stat-icon.green {
  background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
}

.stat-icon.purple {
  background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%);
}

.stat-info h3 {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.stat-info p {
  color: #666;
  font-size: 0.9rem;
}

/* Chart Container */
.chart-container {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-bottom: 32px;
}

.booking-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.type-card {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}

.type-card h4 {
  font-size: 1.8rem;
  color: #003580;
  margin-bottom: 8px;
}

.type-card p {
  color: #666;
  text-transform: capitalize;
}

/* Recent Bookings */
.recent-bookings {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Bookings List */
.bookings-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.booking-item {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s;
  cursor: pointer;
}

.booking-item:hover {
  background: #e3f2fd;
  transform: translateX(4px);
}

.booking-info {
  flex: 1;
}

.booking-info h4 {
  font-size: 1rem;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.booking-info p {
  font-size: 0.85rem;
  color: #666;
}

.booking-status {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.booking-status.pending {
  background: #fff3e0;
  color: #e65100;
}

.booking-status.confirmed {
  background: #e8f5e9;
  color: #2e7d32;
}

.booking-status.cancelled {
  background: #ffebee;
  color: #c62828;
}

/* Section Header */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.filters {
  display: flex;
  gap: 12px;
}

.filter-select {
  padding: 10px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: white;
  cursor: pointer;
  font-size: 0.9rem;
}

/* Bookings Table */
.bookings-table-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.bookings-table {
  width: 100%;
  border-collapse: collapse;
}

.bookings-table thead {
  background: #f8f9fa;
}

.bookings-table th {
  padding: 16px;
  text-align: left;
  font-weight: 600;
  color: #666;
  font-size: 0.9rem;
  border-bottom: 2px solid #e0e0e0;
}

.bookings-table td {
  padding: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.bookings-table tbody tr {
  cursor: pointer;
  transition: background 0.3s;
}

.bookings-table tbody tr:hover {
  background: #f8f9fa;
}

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

.btn-action {
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-confirm {
  background: #4caf50;
  color: white;
}

.btn-confirm:hover {
  background: #388e3c;
}

.btn-cancel {
  background: #f44336;
  color: white;
}

.btn-cancel:hover {
  background: #d32f2f;
}

.btn-view {
  background: #2196f3;
  color: white;
}

.btn-view:hover {
  background: #1976d2;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  padding: 32px;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 2rem;
  cursor: pointer;
  color: #666;
}

.close:hover {
  color: #000;
}

.booking-detail-section {
  margin-bottom: 24px;
}

.booking-detail-section h3 {
  font-size: 1.2rem;
  color: #003580;
  margin-bottom: 12px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.detail-label {
  font-weight: 600;
  color: #666;
}

.detail-value {
  color: #1a1a1a;
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.modal-actions button {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

/* Users Table */
.users-table-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

/* Responsive */
@media (max-width: 968px) {
  .admin-layout {
    flex-direction: column;
  }

  .admin-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
  }

  .sidebar-nav {
    flex-direction: row;
    overflow-x: auto;
  }

  .nav-item {
    flex-direction: column;
    text-align: center;
    padding: 12px 16px;
  }

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

  .admin-content {
    padding: 20px;
  }
}

@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .bookings-table {
    font-size: 0.85rem;
  }

  .bookings-table th,
  .bookings-table td {
    padding: 12px 8px;
  }
}
