/* Modern Custom Styles for Saga Heritage Habarana GMS */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --brand-gold: #d97706;
  --brand-gold-hover: #b45309;
  --brand-dark: #0f172a;
  --brand-slate: #1e293b;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: #090d16;
  color: #f1f5f9;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #0f172a;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Glassmorphism & Cards */
.glass-panel {
  background: rgba(30, 41, 59, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.2s ease-in-out;
}

.glass-card:hover {
  border-color: rgba(217, 119, 6, 0.4);
  transform: translateY(-2px);
}

/* Room Inventory Card Hover Accent */
.room-card-clickable {
  cursor: pointer;
  transition: all 0.2s ease;
}
.room-card-clickable:hover {
  border-color: #f59e0b !important;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.25);
  transform: scale(1.02);
}

/* Gold Gradient Accents */
.gold-gradient-text {
  background: linear-gradient(135deg, #fef3c7 0%, #f59e0b 50%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.gold-gradient-bg:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #b45309 100%);
}

/* Floating Utility Animations */
.floating-widget {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 8px 10px -6px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.floating-widget.hidden-widget {
  transform: translateY(120%) scale(0.9);
  opacity: 0;
  pointer-events: none;
}

/* Resizable Table Styles & Layout Fixes */
.resizable-table {
  table-layout: fixed;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.resizable-table th {
  position: relative;
  background-color: rgba(15, 23, 42, 0.95);
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  user-select: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resizer {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 5px;
  background: rgba(255, 255, 255, 0.1);
  cursor: col-resize;
  user-select: none;
}

.resizer:hover, .resizing {
  background: #f59e0b;
}

.custom-table tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background-color 0.15s ease;
}

.custom-table tbody tr:hover {
  background-color: rgba(51, 65, 85, 0.4);
}

.custom-table td {
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

/* Glowing Social Buttons */
.social-glow-btn {
  transition: all 0.25s ease-in-out;
}
.social-glow-btn.social-web:hover {
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.8);
  border-color: #f59e0b;
  color: #f59e0b;
}
.social-glow-btn.social-tiktok:hover {
  box-shadow: 0 0 14px rgba(255, 0, 80, 0.9);
  border-color: #ff0050;
  color: #ff0050;
}
.social-glow-btn.social-fb:hover {
  box-shadow: 0 0 14px rgba(24, 119, 242, 0.9);
  border-color: #1877f2;
  color: #1877f2;
}
.social-glow-btn.social-insta:hover {
  box-shadow: 0 0 14px rgba(228, 64, 95, 0.9);
  border-color: #e4405f;
  color: #e4405f;
}

/* Modal Backdrop */
.modal-backdrop {
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(8px);
}

/* Universal Print Mount Engine */
#print-mount {
  display: none;
}

@media print {
  body > *:not(#print-mount) {
    display: none !important;
  }

  .no-print {
    display: none !important;
  }

  #print-mount {
    display: block !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    color: #000000 !important;
  }

  #print-mount * {
    color: #000000 !important;
    background: transparent !important;
  }
}

/* ========================================================= */
/* MOBILE RESPONSIVE ENHANCEMENTS */
/* ========================================================= */
@media (max-width: 1023px) {
  #main-sidebar {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85);
  }
}

@media (max-width: 768px) {
  .glass-panel {
    border-radius: 0.75rem;
  }

  .table-responsive-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }

  .modal-backdrop > div {
    max-width: 96vw !important;
    margin: 10px auto !important;
    max-height: 92vh !important;
  }

  main {
    padding: 0.75rem !important;
  }
}

@media (max-width: 640px) {
  .floating-widget {
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    bottom: 12px !important;
    max-width: calc(100vw - 24px) !important;
  }

  input, select, textarea, button {
    font-size: 14px !important;
  }
}
