/* 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: 1550px;
  margin: 0 auto;
  padding: 30px 20px;
  box-sizing: border-box;
  width: 100%;
}

/* Calendar Container */
.calendar-container {
  flex: 7 1 0;
  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);
  overflow: hidden;
}

.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;
  overflow: hidden;
  contain: layout;
}

.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 !important;
  border: 3px solid #667eea !important;
  box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5) !important;
  transform: scale(1.05);
  z-index: 10;
  position: relative;
  transform-origin: center;
  will-change: transform;
}

.calendar-day.selected strong {
  color: #667eea;
  font-weight: 700;
}

.calendar-day.selected .day-info {
  color: #764ba2;
  font-weight: 600;
}

/* Reservation Panel */
.reservation-panel {
  flex: 3 1 0;
  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;
}

/* 개인/단체 라디오 버튼 */
.reservation-type-group {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  padding: 12px;
  background: #f9f9f9;
  border-radius: 10px;
  border: 2px solid #e0e0e0;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: #333;
  user-select: none;
}

.radio-label input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #667eea;
}

.radio-label span {
  cursor: pointer;
}

.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;
}

/* 예약 결과 항목 스타일 */
.reservation-result-item {
  padding: 15px;
  margin-bottom: 12px;
  background: white;
  border-radius: 10px;
  border-left: 4px solid #667eea;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.reservation-result-item:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.reservation-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.reservation-result-date {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.reservation-result-time {
  font-size: 16px;
  color: #667eea;
  font-weight: 500;
  margin-bottom: 10px;
}

.reservation-result-details {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.reservation-result-people {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.reservation-result-status {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
}

.reservation-result-status.status-waiting {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffc107;
}

.reservation-result-status.status-confirmed {
  background: #d4edda;
  color: #155724;
  border: 1px solid #28a745;
}

.reservation-result-status.status-cancelled {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #dc3545;
}

.reservation-result-organization {
  font-size: 13px;
  color: #667eea;
  font-weight: 500;
  margin-top: 6px;
}

.reservation-result-message {
  font-size: 13px;
  color: #666;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #f0f0f0;
}

.cancel-reservation-btn {
  margin-top: 12px;
  padding: 10px 20px;
  background: #dc3545;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Noto Sans KR', sans-serif;
  width: 100%;
}

.cancel-reservation-btn:hover {
  background: #c82333;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.cancel-reservation-btn:active {
  transform: translateY(0);
}

/* 안내 카드 */
.reservation-notice-card {
  margin-top: 25px;
  background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
  border: 2px solid #ffd6d6;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(255, 182, 193, 0.2);
  transition: all 0.3s ease;
}

.reservation-notice-card:hover {
  box-shadow: 0 6px 20px rgba(255, 182, 193, 0.3);
  transform: translateY(-2px);
}

.notice-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  padding-bottom: 12px;
  border-bottom: 2px solid #ffcccc;
}

.notice-icon {
  font-size: 24px;
  line-height: 1;
}

.notice-title {
  font-size: 18px;
  font-weight: 700;
  color: #d32f2f;
  margin: 0;
  letter-spacing: -0.5px;
}

.notice-card-content {
  padding: 0;
}

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

.notice-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 182, 193, 0.3);
}

.notice-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.notice-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.notice-text {
  flex: 1;
  font-size: 15px;
  line-height: 1.6;
  color: #5a3a3a;
  font-weight: 500;
  padding-top: 2px;
}

/* 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: 1024px) {
  .reservation-item {
    font-size: 12px;
  }
}

@media (max-width: 768px) {
  .resolve-booking-wrapper {
    flex-direction: column;
    gap: 20px;
    padding: 15px 10px;
  }
  
  .calendar-container,
  .reservation-panel {
    flex: 1 1 100%;
    min-width: 100%;
  }
  
  .calendar-container {
    padding: 20px 15px;
  }
  
  .calendar-header {
    margin-bottom: 15px;
  }
  
  .calendar-title {
    font-size: 18px;
  }
  
  .calendar-nav-btn {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  .calendar-weekdays {
    gap: 4px;
    margin-bottom: 10px;
  }
  
  .weekday {
    padding: 8px 4px;
    font-size: 11px;
  }
  
  .calendar-days {
    gap: 4px;
  }
  
  .calendar-day {
    min-height: 50px;
    padding: 6px 4px;
    font-size: 12px;
  }
  
  .calendar-day strong {
    font-size: 14px;
    margin-bottom: 2px;
  }
  
  .calendar-day .day-info {
    font-size: 9px;
    line-height: 1.2;
  }
  
  .reservation-panel {
    padding: 20px 15px;
  }
  
  .selected-date-title {
    font-size: 18px;
    margin-bottom: 15px;
  }
  
  .form-input,
  .form-textarea {
    padding: 12px 15px;
    font-size: 14px;
    margin-bottom: 12px;
  }
  
  .submit-btn,
  .search-btn {
    padding: 12px 20px;
    font-size: 14px;
    width: 100%;
  }
  
  .section-title {
    font-size: 18px;
    margin-bottom: 12px;
  }
  
  .reservation-notice-card {
    margin-top: 20px;
    padding: 15px;
  }
  
  .notice-title {
    font-size: 16px;
  }
  
  .notice-text {
    font-size: 14px;
  }
  
  .notice-number {
    min-width: 24px;
    height: 24px;
    font-size: 12px;
  }
  
  .admin-controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .admin-controls label,
  .admin-controls input,
  .admin-controls button {
    width: 100%;
  }
  
  .reservation-item {
    font-size: 9px;
  }
}

/* 작은 모바일 (480px 이하) */
@media (max-width: 480px) {
  .resolve-booking-wrapper {
    padding: 10px 5px;
  }
  
  .calendar-container {
    padding: 15px 10px;
  }
  
  .calendar-title {
    font-size: 16px;
  }
  
  .calendar-nav-btn {
    padding: 5px 10px;
    font-size: 11px;
  }
  
  .weekday {
    padding: 6px 2px;
    font-size: 10px;
  }
  
  .calendar-days {
    gap: 3px;
  }
  
  .calendar-day {
    min-height: 45px;
    padding: 5px 3px;
    font-size: 11px;
  }
  
  .calendar-day strong {
    font-size: 13px;
  }
  
  .calendar-day .day-info {
    font-size: 8px;
  }
  
  .reservation-panel {
    padding: 15px 10px;
  }
}

/* 예약 상태 표시 */
.reservation-status-list {
  margin-top: 5px;
  font-size: 10px;
  width: 100%;
  flex-shrink: 0;
}

.reservation-item {
  padding: 2px 4px;
  margin: 2px 0;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reservation-item.status-waiting {
  background: #fff3cd;
  color: #856404;
  border-left: 2px solid #ffc107;
}

.reservation-item.status-confirmed {
  background: #d4edda;
  color: #155724;
  border-left: 2px solid #28a745;
}

.reservation-item.status-cancelled {
  background: #f8d7da;
  color: #721c24;
  border-left: 2px solid #dc3545;
}

