/* Resolve Booking - Modern Calendar Design */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;600;700&display=swap');

.resolve-booking-wrapper {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 30px 20px;
  box-sizing: border-box;
}

/* Calendar Container */
.calendar-container {
  flex: 1 1 500px;
  min-width: 320px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  color: white;
}

.calendar-title {
  font-size: 28px;
  font-weight: 600;
  margin: 0;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.calendar-nav-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Noto Sans KR', sans-serif;
}

.calendar-nav-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 15px;
}

.weekday {
  text-align: center;
  padding: 12px 8px;
  font-weight: 600;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.calendar-day {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-weight: 500;
  color: #333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.calendar-day::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.calendar-day:hover {
  background: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.calendar-day:hover::before {
  opacity: 1;
}

.calendar-day.disabled {
  background: rgba(255, 255, 255, 0.5);
  color: #999;
  cursor: not-allowed;
  opacity: 0.6;
}

.calendar-day.disabled:hover {
  transform: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.calendar-day strong {
  font-size: 18px;
  display: block;
  margin-bottom: 4px;
  color: #333;
}

.calendar-day .day-info {
  font-size: 11px;
  color: #666;
  line-height: 1.4;
}

.calendar-day.disabled strong,
.calendar-day.disabled .day-info {
  color: #999;
}

.calendar-day.selected {
  background: #fff3cd;
  border: 2px solid #667eea;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Reservation Panel */
.reservation-panel {
  flex: 1 1 500px;
  min-width: 320px;
  background: #fff;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.form-container {
  margin-bottom: 30px;
}

.selected-date-title {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 18px;
  margin-bottom: 15px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 15px;
  font-family: 'Noto Sans KR', sans-serif;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.submit-btn,
.search-btn,
.admin-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff !important;
  border: none;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Noto Sans KR', sans-serif;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.submit-btn:hover,
.search-btn:hover,
.admin-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.submit-btn:active,
.search-btn:active,
.admin-btn:active {
  transform: translateY(0);
}

/* Search Section */
.search-section {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 2px solid #f0f0f0;
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
}

.search-result {
  margin-top: 15px;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 10px;
  min-height: 50px;
}

.search-result ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.search-result li {
  padding: 10px;
  margin-bottom: 8px;
  background: white;
  border-radius: 8px;
  border-left: 4px solid #667eea;
}

/* Admin Section */
.admin-section {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 2px solid #f0f0f0;
}

.admin-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.admin-controls label {
  font-weight: 500;
  color: #333;
}

.reservation-list {
  margin-top: 20px;
}

.reservation-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.reservation-list li {
  padding: 15px;
  margin-bottom: 10px;
  background: #f9f9f9;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.reservation-list li:hover {
  background: #f0f0f0;
  transform: translateX(5px);
}

.reservation-list input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.reservation-list .delete-btn {
  background: #ff4757;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  margin-left: auto;
  transition: all 0.3s ease;
}

.reservation-list .delete-btn:hover {
  background: #ff3838;
  transform: translateY(-2px);
}

.confirmation {
  margin-top: 20px;
  padding: 15px;
  background: #d4edda;
  color: #155724;
  border-radius: 10px;
  border-left: 4px solid #28a745;
  display: none;
}

.confirmation.show {
  display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
  .resolve-booking-wrapper {
    flex-direction: column;
    gap: 20px;
    padding: 20px 15px;
  }
  
  .calendar-container,
  .reservation-panel {
    flex: 1 1 100%;
  }
  
  .calendar-title {
    font-size: 22px;
  }
  
  .calendar-nav-btn {
    padding: 8px 15px;
    font-size: 14px;
  }
  
  .admin-controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .admin-controls label,
  .admin-controls input,
  .admin-controls button {
    width: 100%;
  }
}

