/* Dhangethi Atoll Tourism Group - Custom UI Theme matching uploaded design */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@600;700&family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --sidebar-bg: #0d1b2a;
  --sidebar-hover: #1b263b;
  --sidebar-active: #1d72b8;
  --body-bg: #f4f7fb;
  --card-bg: #ffffff;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #f4f7fb;
  color: #1e293b;
}

.font-cursive {
  font-family: 'Dancing Script', cursive;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Sidebar Custom */
.sidebar-bg {
  background-color: #0b192c;
}

.nav-item-active {
  background: #1d72b8 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 12px rgba(29, 114, 184, 0.35);
}

.nav-item-idle {
  color: #94a3b8;
  font-weight: 500;
  transition: all 0.2s ease;
}

.nav-item-idle:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

/* Metric Cards */
.metric-card-blue {
  background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
}

.metric-card-green {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.metric-card-red {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
}

.metric-card-orange {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* Hero Banner */
.hero-maldives-banner {
  background: linear-gradient(to right, rgba(13, 27, 42, 0.75) 0%, rgba(13, 27, 42, 0.2) 60%, rgba(13, 27, 42, 0) 100%), 
              url('https://images.unsplash.com/photo-1514282401047-d79a71a590e8?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
}

/* Donut Chart Animation */
.donut-segment {
  transition: stroke 0.3s, stroke-width 0.3s;
}

/* Tape Chart Matrix Grid */
.room-grid-table th, .room-grid-table td {
  min-width: 90px;
  max-width: 90px;
  text-align: center;
  padding: 8px 4px;
}

.room-grid-header {
  position: sticky;
  top: 0;
  z-index: 20;
}

.room-col-header {
  position: sticky;
  left: 0;
  z-index: 10;
  background: #ffffff;
  min-width: 150px !important;
  max-width: 150px !important;
  text-align: left !important;
  font-weight: 600;
}

.cell-occupied {
  background-color: #e0f2fe;
  border-left: 3px solid #0284c7;
  color: #0369a1;
  font-weight: 600;
  font-size: 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.cell-occupied:hover {
  filter: brightness(0.95);
  transform: translateY(-1px);
}

.cell-reserved {
  background-color: #fef3c7;
  border-left: 3px solid #f59e0b;
  color: #b45309;
  font-weight: 600;
  font-size: 0.75rem;
  border-radius: 6px;
  cursor: pointer;
}

.cell-vacant {
  background-color: #f8fafc;
  border: 1px dashed #e2e8f0;
  color: #94a3b8;
  font-size: 0.7rem;
  border-radius: 6px;
  cursor: pointer;
}
.cell-vacant:hover {
  background-color: #f0fdf4;
  border-color: #86efac;
  color: #16a34a;
}

/* Animations */
.animate-fadeIn {
  animation: fadeIn 0.25s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Print Invoice Styling */
@media print {
  body * {
    visibility: hidden;
  }
  #printModal, #printModal * {
    visibility: visible;
  }
  #printModal {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    box-shadow: none;
    background: white;
  }
  .no-print {
    display: none !important;
  }
}
