body { 
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; 
  margin: 0; 
  padding: 0; 
  background: #f8f9fa url('/Images/SchedulerBackground.png') no-repeat center center fixed;
  background-size: cover;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

.container { 
  max-width: 800px; 
  margin: 0 auto; 
  position: relative;
  z-index: 1;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Calendar Header Styles */
.calendar-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 20;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 0 0 12px 12px;
  margin-bottom: 1rem;
  width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
}

.calendar-title {
  text-align: center;
  margin-bottom: 1rem;
  color: #2d3748;
  font-size: 1.5rem;
  font-weight: 600;
}

.calendar-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 1rem;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 1rem;
}

.today-btn {
  background: rgba(66, 153, 225, 0.9);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.today-btn:hover {
  background: rgba(49, 130, 206, 0.95);
  transform: translateY(-1px);
}

.location-select {
  flex: 1;
  max-width: 200px;
  padding: 0.5rem;
  border: 1px solid rgba(203, 213, 224, 0.8);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.calendar-days {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.5rem 0;
}

.calendar-days::-webkit-scrollbar {
  height: 4px;
}

.calendar-days::-webkit-scrollbar-track {
  background: transparent;
}

.calendar-days::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.2);
  border-radius: 2px;
}

.date-row {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.2) transparent;
}

.date-row::-webkit-scrollbar {
  height: 4px;
}

.date-row::-webkit-scrollbar-track {
  background: transparent;
}

.date-row::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.2);
  border-radius: 2px;
}

.date-item {
  min-width: 60px;
  height: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 2px solid transparent;
  flex-shrink: 0;
  padding: 0.25rem;
}

.date-item:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
}

.date-item.selected {
  border-color: #4299e1;
  background: rgba(66, 153, 225, 0.1);
}

.date-item.today {
  font-weight: bold;
  color: #2d3748;
  background: rgba(34, 197, 94, 0.15);
  border: 2px solid rgba(34, 197, 94, 0.3);
}

.date-item.today.selected {
  background: rgba(34, 197, 94, 0.25);
  border: 2px solid rgba(34, 197, 94, 0.5);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.3);
}

.date-item.has-shifts::after {
  content: '';
  position: absolute;
  bottom: 4px;
  width: 4px;
  height: 4px;
  background: #4299e1;
  border-radius: 50%;
}

.date-day {
  font-size: 0.7rem;
  color: #718096;
  font-weight: 600;
  margin-bottom: 2px;
}

.date-number {
  font-size: 1.1rem;
  font-weight: 600;
}

.date-month {
  font-size: 0.6rem;
  color: #718096;
  margin-top: 1px;
}

/* Detail View Styles */
.detail-container {
  padding: 1rem;
  flex: 1;
  overflow-y: auto;
  /* Ensure proper scrolling context for sticky positioning */
  transform: translateZ(0);
}

.day-section {
  padding: 0 0 1rem 0;
  margin: 0 0 1rem 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-sizing: border-box;
  width: 100%;
  opacity: 0;
  animation: fadeIn 0.3s ease forwards;
}

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

.day-band-1 {
  background-color: rgba(255, 255, 255, 0.05);
}

.day-band-2 {
  background-color: rgba(240, 248, 255, 0.3);
}

.day-label-detail {
  font-weight: bold;
  font-size: 1.2rem;
  margin: 0 1.5rem 1rem 1.5rem;
  color: #2d3748;
  border-bottom: 2px solid rgba(226, 232, 240, 0.8);
  padding: 1rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 10;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  margin-top: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.day-label-detail.sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-radius: 0;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  width: 100%;
  box-sizing: border-box;
}

.shift {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  margin: 0 1.5rem 1rem 1.5rem;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, backdrop-filter 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.shift:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.shift-info {
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 0.5rem;
}

.shift-users {
  color: #718096;
  font-size: 0.9rem;
}

.empty-slot {
  color: #e53e3e;
  font-style: italic;
}

.needs-volunteer {
  border: 2px solid #e53e3e;
  box-shadow: 0 0 8px #e53e3e33;
  position: relative;
}

.volunteer-indicator {
  color: #e53e3e;
  font-weight: bold;
  font-size: 0.95rem;
  margin-top: 0.5rem;
  text-align: right;
  display: flex;
  align-items: center;
  gap: 0.3em;
  justify-content: flex-end;
}

.fixed-badge {
  display: inline-block;
  background: #3182ce;
  color: #fff;
  font-size: 0.8em;
  border-radius: 12px;
  padding: 0.1em 0.7em;
  margin-left: 0.5em;
  font-weight: 600;
  vertical-align: middle;
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.modal-content {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal h2 {
  margin-top: 0;
  color: #2d3748;
  text-align: center;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #4a5568;
}

.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid rgba(203, 213, 224, 0.8);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: all 0.2s ease;
}

.form-group select:focus {
  outline: none;
  border-color: #4299e1;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.button-group {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.btn-primary {
  background: rgba(66, 153, 225, 0.9);
  color: white;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s, transform 0.1s;
  flex: 1;
}

.btn-primary:hover:not(:disabled) {
  background: rgba(49, 130, 206, 0.95);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(113, 128, 150, 0.9);
  color: white;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s, transform 0.1s;
  flex: 1;
}

.btn-secondary:hover:not(:disabled) {
  background: rgba(74, 85, 104, 0.95);
  transform: translateY(-1px);
}

.btn-primary:disabled, .btn-secondary:disabled {
  background: rgba(160, 174, 192, 0.8);
  cursor: not-allowed;
  transform: none;
}

/* Error and Loading Styles */
.error-message {
  background: rgba(254, 215, 215, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #c53030;
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  text-align: center;
  border: 1px solid rgba(197, 48, 48, 0.2);
}

.loading {
  text-align: center;
  padding: 2rem;
  color: #718096;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 8px;
  margin: 1rem 0;
}

/* Floating toggle button styles */
.floating-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(66, 153, 225, 0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: all 0.2s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: white;
}

.floating-toggle:hover {
  background: rgba(49, 130, 206, 0.95);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.floating-toggle:active {
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .calendar-days {
    gap: 0.25rem;
  }
  
  .date-item {
    min-width: 50px;
    height: 60px;
  }
  
  .date-day {
    font-size: 0.6rem;
  }
  
  .date-number {
    font-size: 1rem;
  }
  
  .date-month {
    font-size: 0.5rem;
  }
  
  .header-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  
  .calendar-title {
    font-size: 1.3rem;
    margin-bottom: 0;
  }
  
  .calendar-controls {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
  }
  
  .today-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }
  
  .location-select {
    flex: 1;
    max-width: none;
    padding: 0.4rem;
  }
  
  .floating-toggle {
    width: 45px;
    height: 45px;
    bottom: 15px;
    right: 15px;
    font-size: 1.1rem;
  }
  
  .collapse-toggle {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .calendar-days {
    gap: 0.2rem;
  }
  
  .date-item {
    min-width: 45px;
    height: 55px;
  }
  
  .date-day {
    font-size: 0.55rem;
  }
  
  .date-number {
    font-size: 0.9rem;
  }
  
  .date-month {
    font-size: 0.5rem;
  }
  
  .floating-toggle {
    width: 40px;
    height: 40px;
    bottom: 10px;
    right: 10px;
    font-size: 1rem;
  }
  
  .collapse-toggle {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* Collapsible header styles */
.calendar-header {
  transition: all 0.3s ease;
}

.calendar-header.collapsed {
  transform: translateY(-100%);
  opacity: 0;
}

.collapse-toggle {
  position: fixed;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(66, 153, 225, 0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: all 0.2s ease;
  z-index: 1001;
  display: none; /* Hidden by default, shown on mobile */
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: white;
}

.collapse-toggle:hover {
  background: rgba(49, 130, 206, 0.95);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.collapse-toggle.collapsed {
  top: 10px;
  transform: rotate(180deg);
}

/* Landscape mode optimizations */
@media (max-width: 768px) and (orientation: landscape),
       (max-height: 600px) and (orientation: landscape) {
  .calendar-header {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
  }
  
  .header-row {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
  }
  
  .calendar-title {
    font-size: 1.1rem;
    margin-bottom: 0;
    flex-shrink: 0;
  }
  
  .calendar-controls {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
  }
  
  .today-btn {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
    flex-shrink: 0;
  }
  
  .location-select {
    flex: 1;
    padding: 0.3rem;
    font-size: 0.8rem;
  }
  
  .calendar-days {
    gap: 0.2rem;
    padding: 0.25rem 0;
  }
  
  .date-item {
    min-width: 40px;
    height: 50px;
  }
  
  .date-day {
    font-size: 0.5rem;
  }
  
  .date-number {
    font-size: 0.8rem;
  }
  
  .date-month {
    font-size: 0.45rem;
  }
}

/* Version footer styles */
.version-footer {
  position: fixed;
  bottom: 10px;
  left: 10px;
  font-size: 0.7rem;
  color: rgba(113, 128, 150, 0.6);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  z-index: 100;
  pointer-events: none;
  user-select: none;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
}

@media (max-width: 768px) {
  .version-footer {
    bottom: 5px;
    left: 5px;
    font-size: 0.6rem;
    padding: 0.2rem 0.4rem;
  }
} 