/* UD 服務設施預約平台 - 專屬主題樣式 */

/* ========================================
   UD 主題色彩系統
======================================== */
:root {
  /* UD主色調 - 溫泉藍綠 */
  --ud-primary: #2E8B7B;
  --ud-primary-light: #4ECDC4;
  --ud-primary-dark: #1A5F56;
  
  /* 輔助色彩 */
  --ud-hot-spring: #FF6B9D;    /* 泡湯服務 */
  --ud-water-play: #4A90E2;    /* 戲水服務 */
  --ud-dining: #F5A623;        /* 餐廳服務 */
  --ud-facility: #7ED321;      /* 設施服務 */
  
  /* 狀態色彩 */
  --ud-available: #2ECC71;     /* 可預約 */
  --ud-full: #E74C3C;          /* 已滿 */
  --ud-maintenance: #95A5A6;   /* 維護中 */
  --ud-expired: #BDC3C7;       /* 過期 */
  
  /* 背景色彩 */
  --ud-bg-light: #F8FFFE;
  --ud-bg-section: #E8F6F3;
  --ud-card-bg: #FFFFFF;
  
  /* 文字色彩 */
  --ud-text-primary: #2C3E50;
  --ud-text-secondary: #7F8C8D;
  --ud-text-light: #BDC3C7;
}

/* ========================================
   全域樣式重置
======================================== */
body {
  font-family: 'Noto Sans CJK TC', 'Microsoft JhengHei', sans-serif;
  background: linear-gradient(45deg, var(--ud-bg-light), var(--ud-bg-section));
  color: var(--ud-text-primary);
}

/* 主要導航條 */
.navbar-brand {
  color: var(--ud-primary) !important;
  font-weight: bold;
}

.navbar-brand i {
  color: var(--ud-primary-light) !important;
}

/* ========================================
   UD 服務卡片樣式
======================================== */
.ud-service-card {
  background: var(--ud-card-bg);
  border: none;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(46, 139, 123, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
  height: 100%;
}

.ud-service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(46, 139, 123, 0.15);
}

.ud-service-card .card-header {
  border: none;
  padding: 0;
  position: relative;
  height: 200px;
  overflow: hidden;
}

.ud-service-card .service-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem;
  color: white;
  z-index: 2;
}

.ud-service-card .service-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--ud-primary), var(--ud-primary-light));
  opacity: 0.9;
  z-index: 1;
}

.ud-service-card.hot-spring .service-overlay {
  background: linear-gradient(135deg, var(--ud-hot-spring), #FF8FB3);
}

.ud-service-card.water-play .service-overlay {
  background: linear-gradient(135deg, var(--ud-water-play), #6BA6F0);
}

.ud-service-card.dining .service-overlay {
  background: linear-gradient(135deg, var(--ud-dining), #F7C052);
}

.ud-service-card.facility .service-overlay {
  background: linear-gradient(135deg, var(--ud-facility), #9FE870);
}

.ud-service-card .card-body {
  padding: 1.5rem;
}

.ud-service-card .card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ud-text-primary);
  margin-bottom: 0.5rem;
}

.ud-service-card .card-text {
  color: var(--ud-text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

.ud-service-card .service-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #E9ECEF;
}

.ud-service-card .price-text {
  font-size: 0.85rem;
  color: var(--ud-text-secondary);
}

.ud-service-card .price-amount {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2d5a57;
}

/* 首頁產品卡片的溫和配色價格結構 */
.ud-service-card .price-structure {
    background: #f8fffe;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid #e6f7f5;
    margin: 0.5rem 0;
}

.ud-service-card .price-category {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
    padding: 0.2rem 0;
}

.ud-service-card .price-category:last-child {
    margin-bottom: 0;
}

.ud-service-card .price-label-soft {
    font-weight: 500;
    color: #5a7c7a;
    font-size: 0.85rem;
    min-width: 35px;
}

.ud-service-card .price-range-soft {
    font-weight: 600;
    color: #2d5a57;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}

/* 通用產品卡片價格結構樣式 */
.product-card .price-structure,
.activity-card .price-structure,
.resort-card .price-structure {
    background: #f8fffe;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid #e6f7f5;
    margin: 0.5rem 0;
}

/* 通用產品卡片price-amount樣式 - 確保溫和配色 */
.product-card .price-amount,
.activity-card .price-amount,
.resort-card .price-amount,
.ud-service-card .price-amount,
.ud-product-card .price-amount {
    color: #2d5a57 !important;
    font-weight: 600;
}

/* 確保所有價格相關元素都使用溫和配色 */
.price-amount,
.price-value,
.current-price,
.original-price,
span[class*="price"] {
    color: #2d5a57 !important;
}

.product-card .price-category,
.activity-card .price-category,
.resort-card .price-category {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
    padding: 0.2rem 0;
}

.product-card .price-category:last-child,
.activity-card .price-category:last-child,
.resort-card .price-category:last-child {
    margin-bottom: 0;
}

.product-card .price-label-soft,
.activity-card .price-label-soft,
.resort-card .price-label-soft {
    font-weight: 500;
    color: #5a7c7a;
    font-size: 0.85rem;
    min-width: 35px;
}

.product-card .price-range-soft,
.activity-card .price-range-soft,
.resort-card .price-range-soft {
    font-weight: 600;
    color: #2d5a57;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}

/* ========================================
   UD 按鈕樣式
======================================== */
.btn-ud-primary {
  background-color: var(--ud-primary);
  border-color: var(--ud-primary);
  color: white;
  font-weight: 500;
  padding: 0.5rem 1.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-ud-primary:hover {
  background-color: var(--ud-primary-dark);
  border-color: var(--ud-primary-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(46, 139, 123, 0.3);
}

.btn-ud-secondary {
  background-color: transparent;
  border: 2px solid var(--ud-primary);
  color: var(--ud-primary);
  font-weight: 500;
  padding: 0.5rem 1.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-ud-secondary:hover {
  background-color: var(--ud-primary);
  color: white;
}

/* 服務專用按鈕 */
.btn-hot-spring {
  background-color: var(--ud-hot-spring);
  border-color: var(--ud-hot-spring);
}

.btn-hot-spring:hover {
  background-color: #E04F85;
  border-color: #E04F85;
}

.btn-water-play {
  background-color: var(--ud-water-play);
  border-color: var(--ud-water-play);
}

.btn-water-play:hover {
  background-color: #357ABD;
  border-color: #357ABD;
}

.btn-dining {
  background-color: var(--ud-dining);
  border-color: var(--ud-dining);
}

.btn-dining:hover {
  background-color: #E8961C;
  border-color: #E8961C;
}

.btn-facility {
  background-color: var(--ud-facility);
  border-color: var(--ud-facility);
}

.btn-facility:hover {
  background-color: #6BBF0D;
  border-color: #6BBF0D;
}

/* ========================================
   UD 時段選擇器樣式
======================================== */
.ud-timeslot-container {
  background: var(--ud-card-bg);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 15px rgba(46, 139, 123, 0.1);
}

.ud-timeslot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--ud-bg-section);
}

.ud-timeslot-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ud-text-primary);
}

.ud-timeslot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.ud-timeslot-item {
  background: var(--ud-bg-light);
  border: 2px solid #E9ECEF;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.ud-timeslot-item:hover {
  border-color: var(--ud-primary-light);
  background: rgba(78, 205, 196, 0.1);
}

.ud-timeslot-item.available {
  border-color: var(--ud-available);
  background: rgba(46, 204, 113, 0.1);
}

.ud-timeslot-item.available:hover {
  background: rgba(46, 204, 113, 0.2);
  transform: translateY(-2px);
}

.ud-timeslot-item.full {
  border-color: var(--ud-full);
  background: rgba(231, 76, 60, 0.1);
  cursor: not-allowed;
  opacity: 0.7;
}

.ud-timeslot-item.maintenance {
  border-color: var(--ud-maintenance);
  background: rgba(149, 165, 166, 0.1);
  cursor: not-allowed;
  opacity: 0.6;
}

.ud-timeslot-item.selected {
  border-color: var(--ud-primary);
  background: rgba(46, 139, 123, 0.15);
  box-shadow: 0 0 0 3px rgba(46, 139, 123, 0.2);
}

.ud-timeslot-time {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ud-text-primary);
  margin-bottom: 0.25rem;
}

.ud-timeslot-status {
  font-size: 0.8rem;
  color: var(--ud-text-secondary);
}

.ud-timeslot-item.available .ud-timeslot-status {
  color: var(--ud-available);
}

.ud-timeslot-item.full .ud-timeslot-status {
  color: var(--ud-full);
}

.ud-timeslot-price {
  position: absolute;
  top: 5px;
  right: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ud-primary);
  background: rgba(255, 255, 255, 0.9);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ========================================
   UD 狀態徽章
======================================== */
.ud-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
}

.ud-status-badge.available {
  background-color: rgba(46, 204, 113, 0.1);
  color: var(--ud-available);
  border: 1px solid var(--ud-available);
}

.ud-status-badge.full {
  background-color: rgba(231, 76, 60, 0.1);
  color: var(--ud-full);
  border: 1px solid var(--ud-full);
}

.ud-status-badge.confirmed {
  background-color: rgba(52, 152, 219, 0.1);
  color: #3498DB;
  border: 1px solid #3498DB;
}

.ud-status-badge.cancelled {
  background-color: rgba(149, 165, 166, 0.1);
  color: var(--ud-maintenance);
  border: 1px solid var(--ud-maintenance);
}

/* ========================================
   UD 首頁專用樣式
======================================== */
.ud-hero-section {
  background: linear-gradient(135deg, var(--ud-primary), var(--ud-primary-light));
  color: white;
  padding: 4rem 0;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

/* 滿版背景樣式 */
.ud-hero-section.hero-fullscreen {
  background: url('../image/banner.jpg') center center/cover no-repeat;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin-bottom: 0;
  position: relative;
}

/* 背景遮罩層 */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    rgba(46, 139, 123, 0.85) 0%,
    rgba(46, 139, 123, 0.65) 40%,
    rgba(46, 139, 123, 0.45) 70%,
    rgba(46, 139, 123, 0.35) 100%
  );
  z-index: 1;
}

/* Hero 內容區域 */
.hero-fullscreen .container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Hero 內容文字區域 */
.hero-fullscreen .hero-content {
  text-align: center;
  color: white;
  padding-top: 80px; /* 確保不被導航欄遮蓋 */
}

/* 滾動指示器 */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 100%;
  text-align: center;
}

.scroll-down {
  display: inline-block;
  color: white;
  font-size: 1.5rem;
  text-decoration: none;
  animation: bounce 2s infinite;
  transition: all 0.3s ease;
}

.scroll-down:hover {
  color: rgba(255, 255, 255, 0.8);
  transform: translateY(-5px);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* 平滑滾動 */
html {
  scroll-behavior: smooth;
}

/* 背景視差效果 */
.hero-fullscreen {
  background-attachment: fixed;
}

@media (max-width: 768px) {
  /* 在行動裝置上停用視差效果以提升效能 */
  .hero-fullscreen {
    background-attachment: scroll;
  }
}



/* 添加微妙的動畫效果 */
.hero-content {
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ud-hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 滿版背景時的標題樣式 */
.hero-fullscreen .ud-hero-title {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
}

.ud-hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* 滿版背景時的副標題樣式 */
.hero-fullscreen .ud-hero-subtitle {
  font-size: 1.4rem;
  margin-bottom: 3rem;
  opacity: 0.95;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* 按鈕組樣式 */
.hero-fullscreen .hero-buttons {
  margin-top: 2rem;
}

.hero-fullscreen .hero-buttons .btn {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.hero-fullscreen .hero-buttons .btn-light {
  background: white;
  color: var(--ud-primary);
  border-color: white;
}

.hero-fullscreen .hero-buttons .btn-light:hover {
  background: var(--ud-primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.hero-fullscreen .hero-buttons .btn-outline-light {
  background: transparent;
  color: white;
  border-color: white;
}

.hero-fullscreen .hero-buttons .btn-outline-light:hover {
  background: white;
  color: var(--ud-primary);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.ud-services-section {
  padding: 3rem 0;
}

.ud-section-title {
  font-size: 2.5rem;
  font-weight: 600;
  text-align: center;
  color: var(--ud-text-primary);
  margin-bottom: 3rem;
  position: relative;
}

.ud-section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--ud-primary);
  border-radius: 2px;
}

/* ========================================
   響應式設計
======================================== */
@media (max-width: 768px) {
  .ud-hero-title {
    font-size: 2rem;
  }
  
  /* 滿版背景在平板上的樣式 */
  .hero-fullscreen .ud-hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  .ud-hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-fullscreen .ud-hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }
  
  .hero-fullscreen .hero-buttons .btn {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    margin: 0.5rem;
  }
  
  .ud-section-title {
    font-size: 2rem;
  }
  
  .ud-timeslot-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
  }
  
  .ud-service-card .card-header {
    height: 150px;
  }
  
  .ud-service-card .service-icon {
    font-size: 3rem;
  }
}

@media (max-width: 576px) {
  .ud-hero-section {
    padding: 2rem 0;
  }
  
  /* 滿版背景在手機上的樣式 */
  .hero-fullscreen {
    min-height: 100vh;
  }
  
  .hero-fullscreen .container {
    padding: 0 1rem;
  }
  
  .hero-fullscreen .ud-hero-title {
    font-size: 2rem;
    line-height: 1.3;
  }
  
  .hero-fullscreen .ud-hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-fullscreen .hero-buttons {
    margin-top: 1rem;
  }
  
  .hero-fullscreen .hero-content {
    padding-top: 60px; /* 手機版調整較小的上方間距 */
  }
  
  .hero-fullscreen .hero-buttons .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    margin: 0.25rem;
    display: block;
    width: 100%;
    margin-bottom: 0.75rem;
  }
  
  .scroll-indicator {
    bottom: 20px;
  }
  
  .scroll-down {
    font-size: 1.2rem;
  }
  
  .ud-timeslot-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .ud-timeslot-item {
    padding: 0.75rem;
  }
  
  .ud-services-section {
    padding: 2rem 0;
  }
}

/* ========================================
   載入動畫
======================================== */
.ud-loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(46, 139, 123, 0.3);
  border-radius: 50%;
  border-top-color: var(--ud-primary);
  animation: ud-spin 1s ease-in-out infinite;
}

@keyframes ud-spin {
  to { transform: rotate(360deg); }
}

/* ========================================
   工具類別
======================================== */
.text-ud-primary { color: var(--ud-primary) !important; }
.text-ud-secondary { color: var(--ud-text-secondary) !important; }
.bg-ud-light { background-color: var(--ud-bg-light) !important; }
.bg-ud-section { background-color: var(--ud-bg-section) !important; }
.border-ud-primary { border-color: var(--ud-primary) !important; }

/* ========================================
   會員中心樣式
======================================== */
.member-header {
    background: linear-gradient(135deg, var(--ud-primary) 0%, var(--ud-hot-spring) 100%);
    padding-top: 6rem !important;
}

.member-avatar .avatar-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  border: 3px solid rgba(255,255,255,0.3);
}

.stat-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 15px rgba(46, 139, 123, 0.1);
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
}

.stat-card.hot-spring::before { background: var(--ud-hot-spring); }
.stat-card.water-play::before { background: var(--ud-water-play); }
.stat-card.dining::before { background: var(--ud-dining); }
.stat-card.facility::before { background: var(--ud-facility); }

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(46, 139, 123, 0.15);
}

.stat-icon {
  font-size: 2rem;
  margin-right: 1rem;
  width: 60px;
  text-align: center;
}

.stat-card.hot-spring .stat-icon { color: var(--ud-hot-spring); }
.stat-card.water-play .stat-icon { color: var(--ud-water-play); }
.stat-card.dining .stat-icon { color: var(--ud-dining); }
.stat-card.facility .stat-icon { color: var(--ud-facility); }

.stat-info h3 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  color: var(--ud-text-primary);
}

.stat-info p {
  margin: 0;
  color: var(--ud-text-secondary);
  font-size: 0.9rem;
}

.member-section {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 15px rgba(46, 139, 123, 0.1);
  margin-bottom: 1.5rem;
}

.quick-action-card {
  background: white;
  border: 1px solid #E9ECEF;
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.quick-action-card:hover {
  border-color: var(--ud-primary);
  transform: translateY(-1px);
  box-shadow: 0 2px 10px rgba(46, 139, 123, 0.1);
}

.action-icon {
  font-size: 1.5rem;
  color: var(--ud-primary);
  margin-right: 1rem;
  width: 40px;
  text-align: center;
}

.action-content {
  flex: 1;
}

.action-content h6 {
  margin: 0 0 0.25rem 0;
  color: var(--ud-text-primary);
}

.action-content p {
  margin: 0;
  color: var(--ud-text-secondary);
  font-size: 0.85rem;
}

.action-arrow {
  color: var(--ud-text-tertiary);
}

.member-level-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 15px rgba(46, 139, 123, 0.1);
}

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

.level-badge {
  background: linear-gradient(135deg, var(--ud-primary), var(--ud-hot-spring));
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.level-progress .progress {
  height: 8px;
  background-color: #F8F9FA;
  border-radius: 4px;
}

.level-progress .progress-bar {
  background: linear-gradient(90deg, var(--ud-primary), var(--ud-hot-spring));
}

.coupon-section {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 15px rgba(46, 139, 123, 0.1);
}

.coupon-item {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  border: 1px solid #E9ECEF;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.coupon-item:hover {
  border-color: var(--ud-primary);
  transform: translateX(2px);
}

.coupon-item.expiring-soon {
  border-color: #FFC107;
  background: #FFF9E6;
}

.coupon-discount {
  background: var(--ud-primary);
  color: white;
  padding: 0.5rem;
  border-radius: 6px;
  font-weight: 600;
  margin-right: 0.75rem;
  min-width: 60px;
  text-align: center;
}

.coupon-info h6 {
  margin: 0 0 0.25rem 0;
  font-size: 0.9rem;
  color: var(--ud-text-primary);
}

.recent-reservation-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  margin-bottom: 0.5rem;
  border: 1px solid #E9ECEF;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.recent-reservation-item:hover {
  border-color: var(--ud-primary);
  transform: translateX(2px);
}

.reservation-icon {
  font-size: 1.5rem;
  margin-right: 1rem;
  width: 40px;
  text-align: center;
}

.reservation-details {
  flex: 1;
}

.reservation-details h6 {
  margin: 0 0 0.25rem 0;
  color: var(--ud-text-primary);
}

.status-badge {
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-confirmed {
  background: #E8F5E8;
  color: #2E7D32;
}

.contact-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 15px rgba(46, 139, 123, 0.1);
  text-align: center;
}

/* ========================================
   預約成功頁面樣式
======================================== */
.booking-success-container {
  background: linear-gradient(to bottom, #F8F9FA 0%, white 300px);
}

.success-header {
  background: white;
}

.success-icon i {
  font-size: 4rem;
}

.booking-number {
  background: #F8F9FA;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  display: inline-block;
}

.booking-summary-card,
.payment-info-card,
.usage-guide-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(46, 139, 123, 0.1);
  overflow: hidden;
}

.booking-summary-card .card-header,
.payment-info-card .card-header,
.usage-guide-card .card-header {
  background: #F8F9FA;
  padding: 1.5rem;
  border-bottom: 1px solid #E9ECEF;
  margin: 0;
}

.booking-summary-card .card-body,
.payment-info-card .card-body,
.usage-guide-card .card-body {
  padding: 1.5rem;
}

.detail-item {
  margin-bottom: 1rem;
}

.detail-item label {
  font-size: 0.85rem;
  color: var(--ud-text-secondary);
  margin-bottom: 0.25rem;
  display: block;
}

.detail-item .value {
  font-weight: 500;
  color: var(--ud-text-primary);
}

.service-detail {
  display: flex;
  align-items: center;
  background: #F8F9FA;
  padding: 0.75rem;
  border-radius: 6px;
}

.service-detail .service-icon {
  font-size: 1.5rem;
  margin-right: 0.75rem;
  color: var(--ud-hot-spring);
}

.price-breakdown {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #E9ECEF;
}

.total-amount {
  padding-top: 0.5rem;
  border-top: 1px solid #E9ECEF;
  margin-top: 0.5rem;
  font-size: 1.1rem;
}

.guide-steps {
  margin-bottom: 1.5rem;
}

.step-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.step-number {
  background: var(--ud-primary);
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-right: 1rem;
  flex-shrink: 0;
}

.step-content h6 {
  margin: 0 0 0.25rem 0;
  color: var(--ud-text-primary);
}

.step-content p {
  margin: 0;
  color: var(--ud-text-secondary);
  font-size: 0.9rem;
}

.notice-section {
  background: #FFF9E6;
  padding: 1rem;
  border-radius: 6px;
  border-left: 4px solid #FFC107;
}

.notice-list {
  margin: 0;
  padding-left: 1.2rem;
}

.notice-list li {
  margin-bottom: 0.5rem;
  color: var(--ud-text-secondary);
  font-size: 0.9rem;
}

.qr-code-card,
.contact-info-card,
.quick-actions-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(46, 139, 123, 0.1);
  overflow: hidden;
}

.qr-code-card .card-header,
.contact-info-card .card-header,
.quick-actions-card .card-header {
  background: #F8F9FA;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #E9ECEF;
  text-align: center;
}

.qr-code-card .card-body,
.contact-info-card .card-body,
.quick-actions-card .card-body {
  padding: 1.5rem;
}

.qr-code-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  background: #F8F9FA;
  border-radius: 8px;
  padding: 1rem;
}

.booking-code {
  font-family: 'Courier New', monospace;
  font-weight: 600;
  color: var(--ud-primary);
  background: #F8F9FA;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  display: inline-block;
}

.qr-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: var(--ud-text-secondary);
}

.contact-item i {
  width: 20px;
  color: var(--ud-primary);
}

.action-buttons .btn {
  border-radius: 8px;
}

/* QR CODE Modal 樣式 */
#qrCodeModal .modal-body {
  padding: 2rem;
}

#qr_code_display canvas {
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.qr-info h4 {
  font-family: 'Courier New', monospace;
  letter-spacing: 1px;
}

.qr-instructions .alert {
  border-radius: 8px;
  border: none;
} 