/* Updated styles.css with Forest Green & Rust color scheme - Fixed time indicators */

:root {
  /* Primary & Secondary Colors */
  --primary: #047857;
  --primary-hover: #065f46;
  --primary-light: rgba(4, 120, 87, 0.1);
  
  --secondary: #B45309;
  --secondary-hover: #92400e;
  --secondary-light: rgba(180, 83, 9, 0.1);
  
  /* Neutral Colors */
  --neutral-dark: #1F2937;
  --neutral-medium: #6B7280;
  --neutral-light: #E5E7EB;
  --background: #F9FAFB;
}

/* Base styling */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: var(--background);
  color: var(--neutral-dark);
}

/* Calendar container - Updated for dark theme */
.calendar-container {
  position: relative;
  overflow: visible; /* Allow remove buttons to extend outside */
  background-color: #475569 !important; /* Slate-600 for dark theme */
  padding-left: 60px; /* Extra space to prevent time indicator overlap */
  padding-right: 15px; /* Extra space on right for remove buttons */
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  /* Set this important property to fix the white space on the left */
  box-shadow: inset 0 0 0 1000px #475569 !important; /* This forces the background to fill all space */
}

/* Day headers */
.grid.border-b {
  background-color: #334155; /* Slate-700 for headers */
  border-bottom: 1px solid #475569; /* Slate-600 for borders */
}

.day-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background-color: #334155; /* Slate-700 for headers */
  color: #f8fafc; /* Slate-50 for text */
  padding: 0.75rem 1rem;
  text-align: center;
}

/* Day header text elements - Updated to match HTML structure */
.day-header .text-lg.text-white,
.day-header .font-bold.text-lg.text-white {
  font-size: 1.125rem;
  font-weight: 700;
  color: #ffffff !important; /* Bright white for day names */
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.day-header .text-sm.text-slate-300 {
  font-size: 0.875rem;
  color: #cbd5e1 !important; /* Slate-300 for date numbers */
  font-weight: 400;
  line-height: 1.2;
}

/* Legacy support for old structure */
.day-header .text-xs {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #94a3b8; /* Slate-400 for day names */
  font-weight: 600;
  letter-spacing: 0.05em;
}

.day-header .text-lg {
  font-size: 1.125rem;
  font-weight: 500;
  color: #f8fafc; /* Bright white for date numbers */
  margin-top: 0.25rem;
  line-height: 1.2;
}

/* Time cells */
.time-cell {
  position: relative;
  height: 80px;
  border-bottom: 1px solid #64748b; /* Slate-500 for borders */
  padding: 0.5rem;
  background-color: transparent;
  overflow: visible !important;
  z-index: 1; /* Ensure time cells have proper stacking context */
}

.time-cell:hover {
  background-color: rgba(148, 163, 184, 0.1); /* Slate-400 with opacity */
}

/* Time indicator styling - Updated for dark theme */
.time-indicator {
  position: absolute;
  left: -55px; /* Move further left to ensure no overlap */
  top: -12px; /* Position at the top of hour */
  transform: none; /* Remove the vertical centering */
  width: 50px; /* Wider to ensure text fits */
  text-align: right;
  z-index: 30; /* Higher z-index to ensure visibility */
  font-size: 13px;
  color: #cbd5e1; /* Slate-300 for better visibility on dark background */
  font-weight: 500;
  opacity: 0.9;
  padding-right: 8px; /* Add padding to keep text away from grid edge */
  background-color: transparent; /* Keep transparent for clean look */
}

/* Activity blocks - keeping the existing colors */
.time_block {
  position: absolute;
  border-radius: 0.375rem;
  padding: 0.5rem;
  margin: 0 0.25rem;
  width: calc(100% - 0.5rem);
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  overflow: visible !important;
  z-index: 5;
}

/* Keep existing activity type colors */
.time_block.bg-blue-200 {
  background-color: #dbeafe;
  border-left: 2px solid #2563eb;
}

.time_block.bg-green-200 {
  background-color: #dcfce7;
  border-left: 2px solid #16a34a;
}

.time_block.bg-yellow-200 {
  background-color: #fef3c7;
  border-left: 2px solid #d97706;
}

.time_block.bg-purple-200 {
  background-color: #f3e8ff;
  border-left: 2px solid #7c3aed;
}

.time_block.bg-red-200 {
  background-color: #fee2e2;
  border-left: 2px solid #dc2626;
}

.time_block.bg-gray-200 {
  background-color: #f3f4f6;
  border-left: 2px solid #4b5563;
}

.time_block:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.time_block .text-gray-600 {
  color: #4b5563;
}

.time_block .text-gray-500 {
  color: #6b7280;
}

/* Remove button */
.remove-btn {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  width: 1.25rem;
  height: 1.25rem;
  background-color: #ef4444;
  color: white;
  border-radius: 50%;
  display: none; /* Hidden by default, shown on hover */
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: bold;
  z-index: 9999;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
  border: 2px solid white;
}

.remove-btn:hover {
  background-color: #dc2626;
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

/* Show remove button on hover - multiple selectors for maximum compatibility */
.time_block:hover .remove-btn {
  display: flex !important;
}

div.time_block:hover div.remove-btn {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.time_block:hover > .remove-btn {
  display: flex !important;
}

/* Ensure grid containers allow overflow for remove buttons */
#itineraryGrid {
  overflow: visible !important;
}

.grid {
  overflow: visible !important;
}

/* Fix toast notification z-index to appear above time_block elements */
#saveToast {
  z-index: 10000 !important;
}

/* Dragging state */
.dragging {
  z-index: 100;
  opacity: 0.8;
  transform: scale(1.05);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Settings button selector (formerly dateRange) */
#openSettingsBtn {
  cursor: pointer;
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  transition: background-color 0.2s;
  display: inline-flex;
  align-items: center;
  color: var(--neutral-dark);
  font-weight: 500;
}

#openSettingsBtn:hover {
  background-color: var(--primary-light);
}

#openSettingsBtn svg {
  color: var(--primary);
}

/* Add activity button */
#addActivity {
  background-color: var(--primary);
  color: white;
  border-radius: 0.375rem;
  padding: 0.5rem 1rem;
  font-weight: 500;
  transition: background-color 0.2s;
}

#addActivity:hover {
  background-color: var(--primary-hover);
}

/* Reset button */
#savePlan {
  background-color: #fff;
  color: var(--neutral-dark);
  border: 1px solid var(--neutral-light);
  border-radius: 0.375rem;
  padding: 0.5rem 1rem;
  font-weight: 500;
}

#savePlan:hover {
  background-color: var(--neutral-light);
}

#savePlan svg {
  color: var(--primary);
}

/* Navigation buttons */
.nav-prev-btn, .nav-next-btn {
  background-color: white;
  border-radius: 9999px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center; /* Fixed justify-center property */
  color: var(--primary);
  transition: all 0.2s;
}

.nav-prev-btn:hover, .nav-next-btn:hover {
  background-color: var(--primary-light);
}

/* Select dropdown */
#daysToView {
  border: 1px solid var(--neutral-light);
  border-radius: 0.375rem;
  padding: 0.375rem 0.5rem;
  font-size: 0.875rem;
  transition: all 0.2s;
}

#daysToView:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-light);
  outline: none;
}

/* Modals */
#activityModal, #datePicker {
  backdrop-filter: blur(4px);
}

/* Activity form elements */
#activityModal input, 
#activityModal select, 
#activityModal textarea {
  border: 1px solid var(--neutral-light);
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  width: 100%;
  transition: all 0.2s;
}

#activityModal input:focus, 
#activityModal select:focus, 
#activityModal textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-light);
  outline: none;
}

#activityModal label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--neutral-medium);
  margin-bottom: 0.25rem;
  display: block;
}

/* Confirm button in modals */
#confirmDateBtn, 
#activityForm button[type="submit"] {
  background-color: var(--primary);
  color: white;
  transition: background-color 0.2s;
}

#confirmDateBtn:hover,
#activityForm button[type="submit"]:hover {
  background-color: var(--primary-hover);
}

/* Cancel button in modals */
#cancelActivityBtn {
  color: var(--neutral-dark);
  background-color: white;
  border: 1px solid var(--neutral-light);
}

#cancelActivityBtn:hover {
  background-color: var(--neutral-light);
}

/* Date picker calendar days */
#calendarDays .bg-blue-600 {
  background-color: var(--primary) !important;
}

#calendarDays .bg-blue-100 {
  background-color: var(--primary-light) !important;
}

#calendarDays .border-blue-500 {
  border-color: var(--primary) !important;
}

/* Horizontal scrolling configuration - extends calendar-container */
.calendar-container {
  overflow-x: auto; /* Allow horizontal scrolling when needed */
  overflow-y: visible; /* Allow time indicators to show properly */
  scrollbar-width: thin; /* For Firefox */
  scrollbar-color: #94a3b8 #475569; /* For Firefox - match dark theme */
}

/* Customize scrollbar for Webkit browsers */
.calendar-container::-webkit-scrollbar {
  height: 8px; /* Height of horizontal scrollbar */
  width: 8px; /* Width of vertical scrollbar */
}

.calendar-container::-webkit-scrollbar-track {
  background: #f7fafc; /* Light gray track */
  border-radius: 4px;
}

.calendar-container::-webkit-scrollbar-thumb {
  background-color: #cbd5e0; /* Medium gray thumb */
  border-radius: 4px;
  border: 2px solid #f7fafc; /* Border around the thumb */
}

.calendar-container::-webkit-scrollbar-thumb:hover {
  background-color: #a0aec0; /* Darker gray on hover */
}

/* Style for day columns - keeping original values */
.day-column {
  flex: 1;
  position: relative;
  border-right: 1px solid #e5e7eb;
  width: calc(100% / var(--days-per-view, 3));
  min-width: calc(100% / var(--days-per-view, 3));
  max-width: calc(100% / var(--days-per-view, 3));
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  height: auto;
  overflow: visible !important;
  background-color: #f9fafb !important;
}

/* Ensure last day column doesn't clip remove buttons */
.day-column:last-child {
  border-right: none;
  padding-right: 15px; /* Extra space for remove buttons */
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .mb-8 {
    margin-bottom: 1rem;
  }
  
  .flex.justify-between.items-center {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .flex.space-x-4 {
    margin-top: 1rem;
    width: 100%;
    justify-content: space-between;
  }
  
  .calendar-container {
    border-radius: 0;
  }
}

/* Make Reset Calendar button red for danger indication */
#savePlan {
  background-color: #fff;
  color: #b91c1c; /* Red text */
  border: 1px solid #fee2e2; /* Light red border */
  border-radius: 0.375rem;
  padding: 0.5rem 1rem;
  font-weight: 500;
}

#savePlan:hover {
  background-color: #fee2e2; /* Light red background on hover */
}

#savePlan svg {
  color: #b91c1c; /* Red icon */
}

/*# sourceMappingURL=styles.css.map*/