/* TT Car Rental JB - Navy + Red + Crisp White Executive Theme */
:root {
  --bg-dark: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --border-color: #e2e8f0;
  --border-dark: #0f172a;
  
  --navy-primary: #0f172a;
  --navy-deep: #0b192c;
  --navy-light: #1e293b;
  --navy-hover: #1e3a8a;

  --red-accent: #dc2626;
  --red-hover: #b91c1c;
  --red-light: #fef2f2;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-sub: #64748b;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.16);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: #0f172a;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #dc2626;
}

/* Hero Cover Background with Deep Navy & Red Accent */
.hero-cover-bg {
  background: linear-gradient(135deg, rgba(11, 25, 44, 0.96) 0%, rgba(30, 58, 138, 0.90) 50%, rgba(15, 23, 42, 0.97) 100%), url('tt_hero_cover.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.glass-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  color: #0f172a;
}

.glass-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: #0f172a;
}

.glass-card:hover {
  border-color: #dc2626;
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.feature-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  color: #0f172a;
}

.feature-card:hover {
  border-color: #dc2626;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  background: #0f172a;
  color: #ffffff;
  border-left: 4px solid #dc2626;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideIn 0.3s ease-out;
  min-width: 300px;
}

.toast.success { border-left-color: #10b981; }
.toast.error { border-left-color: #dc2626; }
.toast.info { border-left-color: #2563eb; }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.nav-link {
  color: #475569;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
  background: #0f172a;
}

.btn-accent {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #ffffff;
  font-weight: 800;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid #dc2626;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-accent:hover {
  background: #991b1b;
  border-color: #991b1b;
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4);
}

.btn-secondary {
  background: #ffffff;
  color: #0f172a;
  border: 1.5px solid #0f172a;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: #0f172a;
  color: #ffffff;
}

/* Calendar styling */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-day-header {
  text-align: center;
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 700;
  padding: 8px 0;
}

.calendar-day {
  aspect-ratio: 1;
  border-radius: 6px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  transition: all 0.15s;
  color: #0f172a;
  font-weight: 600;
}

.calendar-day.available {
  background: rgba(16, 185, 129, 0.15);
  color: #047857;
  border-color: rgba(16, 185, 129, 0.4);
}

.calendar-day.booked {
  background: rgba(220, 38, 38, 0.15);
  color: #dc2626;
  border-color: rgba(220, 38, 38, 0.4);
  cursor: not-allowed;
}

.calendar-day.pending {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease-out;
}

.modal-content {
  background: #ffffff;
  color: #0f172a;
  border: 1.5px solid #0f172a;
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
}

.badge-available { background: #dcfce7; color: #15803d; }
.badge-rented { background: #fee2e2; color: #dc2626; }
.badge-pending { background: #f1f5f9; color: #0f172a; border: 1px solid #0f172a; }
.badge-confirmed { background: #dbeafe; color: #1d4ed8; }
.badge-completed { background: #dcfce7; color: #15803d; }

.custom-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.custom-table th {
  background: #0f172a;
  color: #ffffff;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid #dc2626;
  font-weight: 800;
}

.custom-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.875rem;
  color: #0f172a;
}

/* AI CHATBOT WIDGET STYLES */
.ai-chat-trigger {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: linear-gradient(135deg, #0f172a 0%, #dc2626 100%);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 25px rgba(220, 38, 38, 0.4);
  border-radius: 50px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 800;
  font-size: 0.85rem;
}

.ai-chat-trigger:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 30px rgba(220, 38, 38, 0.6);
}

.ai-chat-window {
  position: fixed;
  bottom: 90px;
  right: 24px;
  z-index: 10000;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 540px;
  max-height: calc(100vh - 120px);
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
  border: 1px solid #cbd5e1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUpFade 0.3s ease-out;
}

@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.ai-chat-header {
  background: #0f172a;
  color: white;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid #dc2626;
}

.ai-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.825rem;
  line-height: 1.5;
  font-weight: 500;
}

.chat-bubble-bot {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-top-left-radius: 4px;
  align-self: flex-start;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.chat-bubble-user {
  background: #0f172a;
  color: #ffffff;
  border-top-right-radius: 4px;
  align-self: flex-end;
}
