/* MeetMate Mobile Styles */

/* Mobile Calendar */
.mm-mobile-calendar {
  margin: 20px 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
}

.mm-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  background: white;
  color: #374151;
  border-bottom: 1px solid #e5e7eb;
}

.mm-calendar-nav {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  color: #374151;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s;
}

.mm-calendar-nav:hover {
  background: #e5e7eb;
}

.mm-calendar-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.mm-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: #e5e7eb;
}

.mm-calendar-weekdays {
  display: contents;
}

.mm-calendar-weekday {
  background: white;
  padding: 12px 8px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  color: #6b7280;
  border-bottom: 2px solid #e5e7eb;
}

.mm-calendar-days {
  display: contents;
}

.mm-calendar-day {
  background: white;
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 500;
}

.mm-calendar-day:hover:not(.mm-past) {
  background: #f3f4f6;
}

.mm-calendar-day.mm-current-month {
  color: #1f2937;
}

.mm-calendar-day.mm-other-month {
  color: #9ca3af;
}

.mm-calendar-day.mm-today {
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 700;
}

.mm-calendar-day.mm-past {
  color: #d1d5db;
  cursor: not-allowed;
  background: #f9fafb;
}

.mm-calendar-day.mm-selected {
  background: rgba(71, 171, 219, 0.8);
  color: white;
  font-weight: 700;
  border: 1px solid #2c5aa0;
  border-radius: 8px;
}

.mm-calendar-day.mm-selected:hover {
  background: rgba(71, 171, 219, 0.9);
}

/* Mobile Time Inputs */
.mm-mobile-time-inputs {
  margin: 20px 0;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.mm-mobile-time-inputs h4 {
  margin: 0 0 15px 0;
  color: #374151;
  font-size: 16px;
}

.mm-time-input-group {
  margin-bottom: 15px;
}

.mm-time-input-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #374151;
  font-size: 14px;
}

.mm-mobile-select,
.mm-mobile-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 16px;
  background: white;
  transition: border-color 0.2s;
}

.mm-mobile-select:focus,
.mm-mobile-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.mm-duration-input {
  display: flex;
  gap: 10px;
  align-items: center;
}

.mm-duration-input .mm-mobile-input {
  flex: 1;
}

.mm-duration-input .mm-mobile-select {
  flex: 0 0 80px;
}

/* Duration Controls */
.mm-duration-controls {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 10px 0;
}

.mm-duration-btn {
  width: 40px;
  height: 40px;
  border: 2px solid #d1d5db;
  border-radius: 50%;
  background: white;
  color: #6b7280;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.mm-duration-btn:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
  color: #374151;
}

.mm-duration-btn:disabled {
  background: #f9fafb;
  border-color: #e5e7eb;
  color: #d1d5db;
  cursor: not-allowed;
}

.mm-duration-display {
  font-size: 18px;
  font-weight: 600;
  color: #374151;
  min-width: 80px;
  text-align: center;
  padding: 8px 12px;
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
}

.mm-mobile-buttons {
  display: flex;
  gap: 10px;
  margin: 20px 0;
}

/* Button-Styles jetzt in style.css - hier nur mobile-spezifische Anpassungen */
.mm-btn {
  flex: 1;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
}

/* Saved Slots Display */
.mm-mobile-saved-slots {
  margin-top: 20px;
  padding: 15px;
  background: white;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}

.mm-mobile-saved-slots h5 {
  margin: 0 0 10px 0;
  color: #374151;
  font-size: 14px;
}

.mm-no-slots {
  color: #6b7280;
  font-style: italic;
  margin: 0;
}

.mm-slot-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f3f4f6;
  color: #374151;
  padding: 8px 12px;
  margin: 4px 0;
  border-radius: 6px;
  font-size: 14px;
  border-left: 3px solid #3b82f6;
}

.mm-slot-delete {
  background: none;
  color: #6b7280;
  border: none;
  padding: 4px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  margin-left: 10px;
}

.mm-slot-delete:before {
  content: "🗑️";
  font-size: 16px;
}

/* Responsive Design */
@media (max-width: 480px) {
  .mm-calendar-day {
    min-height: 40px;
    font-size: 14px;
    padding: 8px 4px;
  }
  
  .mm-calendar-weekday {
    padding: 10px 4px;
    font-size: 12px;
  }
  
  .mm-mobile-buttons {
    flex-direction: column;
  }
  
  .mm-duration-input {
    flex-direction: column;
  }
  
  .mm-duration-input .mm-mobile-select {
    flex: none;
  }
}
