.resources-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  position: sticky;
  top: 60px; /* Adjust based on your header height */
  background: white;
  z-index: 90;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 10px;
}

.resources-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.resource-column {
  flex: 1;
}

.resource-name {
  text-align: center;
  margin: 0 0 10px 0;
  padding: 10px;
  background: #f5f5f5;
  border-radius: 4px;
}

.calendar-wrapper {
  max-width: 100%;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 100px);
}

.calendar {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  position: relative;
}

.calendar input,
.calendar textarea {
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
}

.calendar-header {
  padding: 15px 20px;
  background: white;
  border-bottom: 1px solid #e0e0e0;
  z-index: 100;
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.calendar-header h2 {
  color: #2c3e50;
  margin: 0;
}

.calendar-navigation a {
  color: #3498db;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.calendar-navigation a:hover {
  background-color: #f8f9fa;
}

.time-slots {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: auto;
  flex: 1;
  position: relative;
}

.time-slot {
  display: flex;
  border-bottom: 1px solid #e0e0e0;
  min-height: 60px;
  position: relative;
  min-width: 200px;
  border-right: 1px solid #e0e0e0;
}

.time-slot:last-child {
  border-bottom: none;
}

.time-label {
  width: 55px;
  padding: 10px;
  background: #f8f9fa;
  color: #7f8c8d;
  text-align: center;
  font-size: 0.9em;
  position: sticky;
  left: 0;
  z-index: 10;
  background: white;
  border-right: 1px solid #e0e0e0;
}

.time-content {
  flex: 1;
  padding: 5px;
  position: relative;
}

.event {
  position: absolute;
  left: 0;
  right: 0;
  background: #e3f2fd;
  border-left: 3px solid #2196f3;
  padding: 8px;
  border-radius: 0 4px 4px 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  overflow: hidden;
}

.event-title {
  font-weight: bold;
  color: #0d47a1;
  margin-bottom: 4px;
}

.event-resource {
  font-size: 0.8em;
  color: #546e7a;
}

.event-time {
  font-size: 0.8em;
  color: #455a64;
}

.day-calendar {
  max-width: 600px;
  margin: 0 auto;
  font-family: Arial, sans-serif;
}

.day-nav {
  display: flex;
  justify-content: space-between;
  margin: 20px 0;
}

.day-nav a {
  text-decoration: none;
  color: #337ab7;
}

.tennis-agenda {
  max-width: 800px;
  margin: 20px auto;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.agenda-header {
  background: #2e7d32;
  color: white;
  padding: 15px 20px;
  text-align: center;
}

.agenda-header h1 {
  margin: 0 0 10px 0;
  font-weight: 500;
}

.nav-btn, .today-btn {
  color: white;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background 0.2s;
}

.nav-btn:hover {
  background: rgba(255,255,255,0.15);
}

.today-btn {
  background: rgba(255,255,255,0.1);
}

.tennis-event {
  background: #e8f5e9;
  border-left: 3px solid #2e7d32;
  padding: 8px;
  margin-bottom: 5px;
  border-radius: 0 4px 4px 0;
  color: #1b5e20;
}

.event-time {
  font-size: 12px;
  color: #4caf50;
  margin-bottom: 3px;
}

.event-title {
  font-weight: 500;
}

.calendar-grid {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.calendar-scroll-container {
  display: flex;
  flex: 1;
  overflow: auto;
}

.hour-column {
  position: sticky;
  left: 0;
  z-index: 10;
  background: white;
  overflow-y: scroll;
  height: 100%;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.hour-column::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.scroll-container {
  overflow: auto;
  height: 100%;
}

.resources-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.resources-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: white;
  overflow-x: hidden;
}

.resources-content {
  flex: 1;
  overflow: auto;
}

.time-col {
  width: 55px;
  padding: 0px;
  text-align: right;
  position: relative;
}

.hour-label {
  font-size: 14px;
  position: absolute;
  top: -10px;
  right: 10px;
}

.resource-col {
  flex: 1;
  padding: 10px;
  min-height: 60px;
  border-right: 1px solid #eee;
  position: relative;
}

.resources-header {
  display: flex;
  position: sticky;
  top: 0;
  z-index: 25;
  background: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
}

.resource-header {
  flex: 1;
  min-width: 200px;
  padding: 10px;
  text-align: center;
  font-weight: bold;
  border-right: 1px solid #e0e0e0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.resources-content {
  display: flex;
  flex: 1;
  overflow: auto;
}

.time-col {
  height: 60px;
  position: relative;
  border-bottom: 1px solid #f0f0f0;
}

.hour-label {
  position: absolute;
  top: -10px;
  right: 5px;
  font-size: 0.8em;
  color: #666;
  background: white;
  padding: 0 5px;
}

.time-slot {
  position: relative;
  height: 60px;
  border-bottom: 1px solid #eee;
  overflow: visible;
}

.available-slot {
  position: absolute;
  left: 5px;
  right: 5px;
  background-color: rgba(200, 250, 200, 0.3);
  border: 1px dashed rgba(0, 200, 0, 0.3);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
  pointer-events: auto;
  z-index: 1;
}

.available-slot:hover {
  background-color: rgba(180, 230, 180, 0.5);
  border-color: rgba(0, 180, 0, 0.5);
}

.empty-slot {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.appointment-button {
  background: none;
  border: none;
  padding: 0;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.appointment-form {
  margin: 0;
  padding: 0;
  display: block;
  width: 100%;
}

.appointment-button:focus {
  outline: none;
}

.appointment {
  position: absolute;
  width: 100%;
  background: #e3f2fd;
  border-left: 3px solid #2196f3;
  padding: 8px;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 0 4px 4px 0;
  z-index: 1;
}

.appointment-title {
  font-size: 0.8em;
  font-weight: 400;
  margin-bottom: 4px;
  color: #455a64;
}

.appointment-time {
  font-size: 0.8em;
  color: #455a64;
}

.appointment-creator {
  font-size: 0.8em;
  color: #455a64;
}

/* Current user's appointment styling */
.current-user-appointment .appointment {
  background: #e3f7fd;
  border-left: 3px solid #21b1f3;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Appointment with match styling */
.appointment.has-match {
  background: #fff3cd;
  border-left: 3px solid #ffc107;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Current user's appointment with match styling */
.current-user-appointment .appointment.has-match {
  background: #fff3cd;
  border-left: 3px solid #ffc107;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.current-user-appointment .appointment-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.current-user-appointment .badge {
  font-size: 0.6em;
  padding: 0.25em 0.5em;
  margin-left: 0.5em;
  background-color: #21b1f3 !important;
  color: white;
  border-radius: 10px;
  font-weight: 500;
}

.empty-slot {
  height: 100%;
  width: 100%;
}

.add-appointment {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #78909c;
  font-size: 0.9em;
  transition: all 0.2s;
}

.appointment-selection {
  position: absolute;
  pointer-events: none;
  background-color: rgba(33, 150, 243, 0.2);
  border: 1px dashed #2196f3;
  min-height: 10px;
  width: 100%;
  left: 5px;
}

.calendar-grid::after {
  content: '';
  position: absolute;
  left: 55px;
  top: 0;
  bottom: 0;
  background: #eee;
  z-index: 9;
}

/* Floating Action Button */
.floating-action-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}

.floating-action-button {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #4CAF50;
  color: white;
  border: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.floating-action-button:hover {
  background-color: #3e8e41;
  transform: scale(1.1);
}

.floating-action-menu {
  position: absolute;
  bottom: 70px;
  right: 0;
  background: white;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  overflow: hidden;
  transform-origin: bottom right;
  transition: all 0.3s ease;
  opacity: 0;
  transform: scale(0);
  visibility: hidden;
}

.floating-action-menu.visible {
  opacity: 1;
  transform: scale(1);
  visibility: visible;
}

.floating-action-item {
  display: block;
  padding: 12px 24px;
  color: #333;
  text-decoration: none;
  white-space: nowrap;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

.floating-action-item:hover {
  background-color: #f5f5f5;
}

@media (max-width: 768px) {
  .appointment-title {
    font-size: 0.5em;
    font-weight: 500;
    margin-bottom: 4px;
    color: #455a64;
  }

  .appointment-time {
    font-size: 0.6em;
    font-weight: 600;
    color: #455a64;
  }
  
  .appointment-creator {
    font-size: 0.6em;
    font-weight: 600;
    color: #455a64;
  }
  
  .time-slot {
    min-width: 100px;
  }
  
  .resource-header {
    min-width: 100px;
  }
  
  .calendar-scroll-container {
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: none;
  }
  
  .resources-content {
    overflow-x: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: none;
  }
}
