/* TicketPass - 專業樣式系統 */
/* 基於 shadcn/ui 設計原則 */

:root {
  /* Professional Color System - 深藍與灰色調為主的專業配色 */
  --background: 0 0% 100%;
  --foreground: 222 47% 11%;
  --card: 0 0% 100%;
  --card-foreground: 222 47% 11%;
  --popover: 0 0% 100%;
  --popover-foreground: 222 47% 11%;
  --primary: 0 0% 0%;  /* 純黑色 */
  --primary-foreground: 0 0% 100%;
  --secondary: 220 14% 96%;  /* 淺灰色 */
  --secondary-foreground: 220 9% 46%;
  --muted: 220 14% 96%;
  --muted-foreground: 220 9% 46%;
  --accent: 204 96% 42%;  /* 活力藍 */
  --accent-foreground: 0 0% 100%;
  --destructive: 0 72% 51%;  /* 警告紅 */
  --destructive-foreground: 0 0% 100%;
  --border: 220 13% 91%;
  --input: 220 13% 91%;
  --ring: 0 0% 20%;
  --success: 145 63% 32%;  /* 沉穩綠 */
  --success-foreground: 0 0% 100%;
  --warning: 38 92% 50%;  /* 溫暖橙 */
  --warning-foreground: 0 0% 100%;
  --info: 199 89% 42%;  /* 資訊藍 */
  --info-foreground: 0 0% 100%;
  
  /* Radius */
  --radius: 0.5rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Dark mode support - 專業深色主題 (已禁用) */
/*
@media (prefers-color-scheme: dark) {
  :root {
    --background: 222 47% 11%;
    --foreground: 0 0% 95%;
    --card: 222 47% 15%;
    --card-foreground: 0 0% 95%;
    --popover: 222 47% 15%;
    --popover-foreground: 0 0% 95%;
    --primary: 0 0% 95%;
    --primary-foreground: 0 0% 0%;
    --secondary: 217 33% 17%;
    --secondary-foreground: 0 0% 95%;
    --muted: 217 33% 17%;
    --muted-foreground: 215 20% 65%;
    --accent: 199 89% 53%;
    --accent-foreground: 222 47% 11%;
    --destructive: 0 72% 51%;
    --destructive-foreground: 0 0% 95%;
    --border: 217 33% 22%;
    --input: 217 33% 22%;
    --ring: 0 0% 60%;
  }
}
*/

/* Base Styles */
* {
  border-color: hsl(var(--border));
}

body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-feature-settings: "rlig" 1, "calt" 1;
}

/* Typography Utilities */
.text-gray-800 {
  color: hsl(var(--foreground)) !important;
}

.text-muted {
  color: hsl(var(--muted-foreground));
}

/* Layout Utilities */
.gap-2 {
  gap: 0.5rem;
}

/* Card Components - 專業卡片樣式 */
.card {
  background-color: hsl(var(--card));
  color: hsl(var(--card-foreground));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 2px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease-in-out;
}

.card-header {
  background-color: hsl(220 14% 98%);
  border-bottom: 2px solid hsl(var(--border));
  font-weight: 600;
  color: hsl(var(--foreground));
}

.card-hover {
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: hsl(var(--primary) / 0.5);
}

.card-header.bg-primary {
  background-color: hsl(var(--primary)) !important;
  color: hsl(var(--primary-foreground)) !important;
  border-bottom: none;
}

.card-header.bg-success {
  background-color: hsl(var(--success)) !important;
  color: hsl(var(--success-foreground)) !important;
  border-bottom: none;
}

/* Status and Activity Components - 狀態標籤 */
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.status-dot.active {
  background-color: hsl(145 63% 42%);
  animation: pulse 2s infinite;
}

.status-dot.pending {
  background-color: hsl(38 92% 50%);
}

.status-dot.inactive {
  background-color: hsl(0 0% 60%);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.activity-item {
  transition: all 0.2s ease;
  border-radius: calc(var(--radius));
  padding: 0.75rem;
  margin: -0.75rem;
}

.activity-item:hover {
  background-color: hsl(var(--accent) / 0.5);
  transform: translateX(4px);
}

/* Disable hover animation for admin dashboard */
.no-hover-animation .activity-item:hover {
  background-color: transparent;
  transform: none;
}

/* Background Opacity Utilities */
.bg-opacity-10 {
  --bs-bg-opacity: 0.1;
}

/* Dropdown z-index fix */
.navbar .dropdown-menu {
  z-index: 9999 !important;
  position: absolute !important;
}

.dropdown-menu {
  z-index: 9999 !important;
  box-shadow: var(--shadow-lg);
  border: 1px solid hsl(var(--border));
  position: absolute !important;
}

/* 確保導航欄在最上層 */
.navbar {
  z-index: 1030;
  position: relative;
}

/* 修復可能的層級衝突 */
.navbar .dropdown {
  position: static !important;
}

/* 強制 Bootstrap dropdown 顯示在最上層 */
.navbar-nav .dropdown-menu {
  z-index: 9999 !important;
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
}

/* 確保 dropdown 不被其他元素遮擋 */
.navbar-nav .nav-item.dropdown {
  position: relative !important;
}

/* Form Components - 專業表單樣式 */
.form-control, .form-select {
  border: 2px solid hsl(var(--border));
  border-radius: var(--radius);
  font-weight: 500;
  transition: all 0.2s ease;
}

.form-control:hover, .form-select:hover {
  border-color: hsl(var(--primary) / 0.5);
}

.form-label {
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

.ticket-types-container {
  background-color: hsl(220 14% 98%);
  border: 2px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1rem;
  margin-top: 0.5rem;
}

.ticket-type-option {
  margin-bottom: 0.5rem;
}

.ticket-type-info {
  background-color: hsl(220 14% 98%);
  border: 2px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-top: 0.75rem;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.form-control:focus, .form-select:focus {
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.1);
  outline: none;
}

.form-check-input {
  width: 1.25em;
  height: 1.25em;
  border: 2px solid hsl(var(--border));
}

.form-check-input:checked {
  background-color: hsl(var(--primary));
  border-color: hsl(var(--primary));
}

/* Button Enhancements - 專業按鈕樣式 */
.btn {
  border-radius: var(--radius);
  font-weight: 600;
  transition: all 0.2s ease-in-out;
  border: 2px solid transparent;
  padding: 0.5rem 1.25rem;
  letter-spacing: 0.025em;
}

.btn:focus {
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.2);
}

.btn-outline-primary {
  color: hsl(var(--primary));
  border-color: hsl(var(--primary));
  background-color: transparent;
}

.btn-outline-primary:hover {
  background-color: hsl(var(--primary));
  border-color: hsl(var(--primary));
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: hsl(var(--secondary));
  border-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

.btn-secondary:hover {
  background-color: hsl(220 14% 92%);
  border-color: hsl(220 14% 92%);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-danger {
  background-color: hsl(var(--destructive));
  border-color: hsl(var(--destructive));
  color: hsl(var(--destructive-foreground));
}

.btn-danger:hover {
  background-color: hsl(0 72% 45%);
  border-color: hsl(0 72% 45%);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-info {
  background-color: hsl(var(--info));
  border-color: hsl(var(--info));
  color: hsl(var(--info-foreground));
}

.btn-info:hover {
  background-color: hsl(199 89% 38%);
  border-color: hsl(199 89% 38%);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1.125rem;
}

.btn-sm {
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
}

.btn-primary {
  background-color: hsl(var(--primary));
  border-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-weight: 600;
  letter-spacing: 0.025em;
}

.btn-primary:hover {
  background-color: hsl(0 0% 20%);  /* 深灰色 */
  border-color: hsl(0 0% 20%);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-success {
  background-color: hsl(var(--success));
  border-color: hsl(var(--success));
  color: hsl(var(--success-foreground));
  font-weight: 600;
  letter-spacing: 0.025em;
}

.btn-success:hover {
  background-color: hsl(145 63% 28%);  /* 深一點的綠色 */
  border-color: hsl(145 63% 28%);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-warning {
  background-color: hsl(var(--warning));
  border-color: hsl(var(--warning));
  color: hsl(var(--warning-foreground));
  font-weight: 600;
  letter-spacing: 0.025em;
}

.btn-warning:hover {
  background-color: hsl(38 92% 45%);  /* 深一點的橙色 */
  border-color: hsl(38 92% 45%);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Alert Components - 專業警告樣式 */
.alert {
  border-radius: var(--radius);
  border: 1px solid;
  font-weight: 500;
}

.alert-success {
  background-color: hsl(145 63% 95%);
  border-color: hsl(145 63% 82%);
  color: hsl(145 63% 25%);
}

.alert-warning {
  background-color: hsl(38 92% 95%);
  border-color: hsl(38 92% 82%);
  color: hsl(38 92% 25%);
}

.alert-info {
  background-color: hsl(199 89% 95%);
  border-color: hsl(199 89% 82%);
  color: hsl(199 89% 25%);
}

.alert-danger {
  background-color: hsl(0 72% 95%);
  border-color: hsl(0 72% 82%);
  color: hsl(0 72% 35%);
}

/* Timeline Components - 通用時間軸樣式 (用於其他頁面) */
.timeline {
  position: relative;
  padding-left: 2.5rem;
}

.timeline .timeline-item {
  position: relative;
  padding-bottom: 2rem;
}

.timeline .timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: -1.75rem;
  top: 1.25rem;
  width: 3px;
  height: calc(100% - 0.5rem);
  background: linear-gradient(180deg, hsl(var(--border)), hsl(var(--border) / 0.3));
  transition: border-color 0.2s ease;
}

.timeline .timeline-item.completed:not(:last-child)::before {
  background: linear-gradient(180deg, hsl(var(--success)), hsl(var(--success) / 0.3));
}

.timeline .timeline-marker {
  position: absolute;
  left: -2rem;
  top: 0.2rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 3px solid hsl(var(--background));
  background-color: hsl(var(--muted));
  transition: border-color 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.timeline .timeline-item.completed .timeline-marker {
  background-color: hsl(var(--success));
  border-color: hsl(var(--background));
  box-shadow: 0 0 0 4px hsl(var(--success) / 0.2);
}

.timeline .timeline-item.active .timeline-marker {
  background-color: hsl(var(--primary));
  border-color: hsl(var(--background));
  box-shadow: 0 0 0 4px hsl(var(--primary) / 0.2);
  animation: pulse-timeline 2s infinite;
}

@keyframes pulse-timeline {
  0% {
    box-shadow: 0 0 0 4px hsl(var(--primary) / 0.2);
  }
  50% {
    box-shadow: 0 0 0 8px hsl(var(--primary) / 0);
  }
  100% {
    box-shadow: 0 0 0 4px hsl(var(--primary) / 0.2);
  }
}

.timeline .timeline-content h6 {
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

/* 橫向進度步驟樣式 */
.progress-steps {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  margin: 2rem 0;
}

.progress-steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background-color: hsl(var(--border));
  z-index: 1;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1;
  z-index: 2;
}

.step-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.step.completed .step-icon {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.step.active .step-icon {
  background-color: hsl(var(--warning));
  color: hsl(var(--warning-foreground));
  animation: pulse 2s infinite;
}

.step-content {
  text-align: center;
  max-width: 120px;
}

.step-title {
  font-weight: 600;
  font-size: 0.875rem;
  color: hsl(var(--foreground));
  margin-bottom: 0.25rem;
}

.step-time {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.step.completed .step-title {
  color: hsl(var(--primary));
}

.step.active .step-title {
  color: hsl(var(--warning));
  font-weight: 700;
}

/* 進度線連接效果 */
.step.completed + .step::before {
  content: '';
  position: absolute;
  top: 20px;
  left: -35%;
  width: 70%;
  height: 2px;
  background-color: hsl(var(--primary));
  z-index: 1;
}

/* 響應式設計 */
@media (max-width: 768px) {
  .progress-steps {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .progress-steps::before {
    display: none;
  }
  
  .step {
    flex-direction: row;
    align-items: center;
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .step-icon {
    margin-right: 1rem;
    margin-bottom: 0;
  }
  
  .step-content {
    text-align: left;
    max-width: none;
  }
  
  .step.completed + .step::before {
    display: none;
  }
}

/* List Group Enhancements - 專業列表樣式 */
.list-group-item {
  border-radius: var(--radius);
  border: 2px solid hsl(var(--border));
  transition: border-color 0.2s ease;
  background-color: hsl(var(--card));
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  font-weight: 500;
}

/* 特定的 list-group 可以有間距，但不是全部 */
.list-group.spaced .list-group-item {
  margin-bottom: 0.5rem;
}

/* 側邊欄選單的 list-group 保持 Bootstrap 原本的樣式 */
.list-group-flush .list-group-item {
  margin-bottom: 0;
  border-radius: 0;
  box-shadow: none;
}

/* 側邊欄選單的 hover 效果 */
.list-group-flush .list-group-item:hover {
  background-color: hsl(var(--primary) / 0.1);
  transform: none;
  box-shadow: none;
}

/* 側邊欄選單的 active 狀態 */
.list-group-flush .list-group-item.active {
  background-color: hsl(var(--primary));
  border-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.list-group-item:hover {
  background-color: hsl(var(--accent));
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.application-item,
.release-item {
  border: 2px solid transparent !important;
  transition: border-color 0.2s ease;
}

.application-item.border-primary {
  border-color: hsl(var(--primary)) !important;
  background-color: hsl(var(--primary) / 0.05);
  box-shadow: var(--shadow-md);
}

.release-item.border-success {
  border-color: hsl(var(--success)) !important;
  background-color: hsl(var(--success) / 0.05);
  box-shadow: var(--shadow-md);
}

/* Badge Enhancements - 專業徽章樣式 */
.badge {
  font-weight: 600;
  border-radius: calc(var(--radius) / 2);
  padding: 0.35em 0.65em;
  letter-spacing: 0.025em;
}

.badge.bg-primary {
  background-color: hsl(var(--primary)) !important;
}

.badge.bg-success {
  background-color: hsl(var(--success)) !important;
}

.badge.bg-warning {
  background-color: hsl(var(--warning)) !important;
}

.badge.bg-danger {
  background-color: hsl(var(--destructive)) !important;
}

.badge.bg-info {
  background-color: hsl(var(--info)) !important;
}

.badge.bg-secondary {
  background-color: hsl(var(--secondary)) !important;
  color: hsl(var(--secondary-foreground)) !important;
}

/* Navigation Enhancements - 專業導航欄 */
.navbar {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
  background-color: hsl(var(--primary)) !important;
}

.navbar-dark .navbar-brand {
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.025em;
  color: white !important;
}

.navbar-dark .nav-link {
  font-weight: 500;
  transition: all 0.2s ease;
  color: rgba(255, 255, 255, 0.9) !important;
  padding: 0.5rem 1rem !important;
}

.navbar-dark .nav-link:hover {
  color: white !important;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
}

/* Progress Bars - 專業進度條 */
.progress {
  height: 0.75rem;
  border-radius: 999px;
  background-color: hsl(220 14% 94%);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.progress-bar {
  border-radius: 999px;
  transition: width 0.6s ease;
  background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--accent)));
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Input Group Enhancements */
.input-group-text {
  background-color: hsl(var(--muted));
  border-color: hsl(var(--border));
  color: hsl(var(--muted-foreground));
}

/* Footer - 專業頁腳 */
footer {
  background-color: hsl(222 47% 11%) !important;
  border-top: 2px solid hsl(var(--border));
  color: white !important;
}

footer a {
  color: rgba(255, 255, 255, 0.7) !important;
  text-decoration: none;
  transition: color 0.2s ease;
}

footer a:hover {
  color: white !important;
}

/* Footer 特殊樣式 */
.footer-link {
  transition: all 0.2s ease;
  padding: 0.25rem 0;
  display: inline-block;
}

.footer-link:hover {
  color: white !important;
  transform: translateX(5px);
}

footer h6 {
  color: white !important;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.3s ease-out;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.slide-in-right {
  animation: slideInRight 0.3s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
  .card-hover:hover {
    transform: none;
  }
  
  .activity-item:hover {
    transform: none;
  }
  
  .btn:hover {
    transform: none;
  }
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
  position: relative;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid hsl(var(--muted));
  border-top: 2px solid hsl(var(--primary));
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Focus Visible */
*:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* 專業表格樣式 */
.table {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.table thead th {
  background-color: hsl(220 14% 96%);
  border-bottom: 2px solid hsl(var(--border));
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  color: hsl(var(--foreground));
}

.table-hover tbody tr:hover {
  background-color: hsl(220 14% 98%);
}

/* 專業分頁樣式 */
.pagination {
  gap: 0.25rem;
}

/* Bootstrap 5 分頁組件優化 - 符合無動畫與乾淨設計原則 */
.pagination .page-link {
  color: hsl(var(--foreground));
  background-color: transparent;
  border: 1px solid hsl(var(--border));
  font-weight: 500;
  border-radius: 0.375rem;
  /* 移除 transition 以符合無動畫原則 */
}

.pagination .page-link:hover {
  color: hsl(var(--primary));  /* hover 時文字變主色 */
  background-color: hsl(var(--secondary));  /* 淡背景色 */
  border-color: hsl(var(--border));
  text-decoration: none;
  /* 移除 hover 動畫效果 */
}

.pagination .page-link:focus {
  box-shadow: 0 0 0 0.2rem hsl(var(--ring) / 0.25);
  outline: none;
}

.pagination .page-item.active .page-link {
  background-color: hsl(var(--primary));
  border-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-weight: 600;
}

.pagination .page-item.disabled .page-link {
  color: hsl(var(--muted-foreground));
  background-color: transparent;
  border-color: hsl(var(--border));
  opacity: 0.6;
}

/* 響應式分頁優化 */
@media (max-width: 576px) {
  .pagination .page-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }
  
  .pagination .page-item:not(.active) .page-link {
    min-width: 2.5rem;
  }
}

/* 專業模態框樣式 */
.modal-content {
  border: none;
  border-radius: calc(var(--radius) * 2);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-header {
  background-color: hsl(220 14% 98%);
  border-bottom: 2px solid hsl(var(--border));
  border-radius: calc(var(--radius) * 2) calc(var(--radius) * 2) 0 0;
}

.modal-title {
  font-weight: 700;
  color: hsl(var(--foreground));
}

/* 專業下拉選單 */
.dropdown-menu {
  border: 2px solid hsl(var(--border));
  border-radius: var(--radius);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  padding: 0.5rem;
}

.dropdown-item {
  border-radius: calc(var(--radius) / 2);
  font-weight: 500;
  transition: all 0.2s ease;
  padding: 0.5rem 1rem;
}

.dropdown-item:hover {
  background-color: hsl(var(--primary));
  color: white;
}

.dropdown-divider {
  margin: 0.5rem 0;
  border-top: 2px solid hsl(var(--border));
}

/* Selection */
::selection {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

::-moz-selection {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

/* Enhanced Event List Styles - 活動列表樣式 */

/* Event List Header Section */
.event-list-header {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid hsl(220 13% 91%);
  min-height: 40vh;
  display: flex;
  align-items: center;
}

.event-list-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    hsl(0 0% 96%) 0%, 
    hsl(0 0% 94%) 25%,
    hsl(0 0% 95%) 50%,
    hsl(0 0% 94%) 75%,
    hsl(0 0% 96%) 100%
  );
  z-index: 1;
}
/* Big Art Logo Background for Event List */
.event-list-header::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 10%;
  transform: translateY(-50%);
  width: 250px;
  height: 250px;
  background-image: url('/static/images/logo_bt.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.08;
  z-index: 2;
}

.event-list-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  opacity: 0.05;
  background-image: 
    radial-gradient(circle at 30px 30px, hsl(222 100% 26%) 1px, transparent 1px),
    radial-gradient(circle at 80px 80px, hsl(204 96% 42%) 1px, transparent 1px);
  background-size: 60px 60px, 120px 120px;
}

.event-list-title {
  position: relative;
  z-index: 10;
  color: hsl(222 47% 11%);
  letter-spacing: -0.02em;
}

.event-list-subtitle {
  position: relative;
  z-index: 10;
  color: hsl(220 9% 46%);
  font-weight: 400;
}

/* Enhanced Search Form */
.search-form {
  position: relative;
  z-index: 10;
}

.search-form .input-group-text {
  background-color: white;
  border: 2px solid hsl(var(--border));
  color: hsl(var(--muted-foreground));
}

.search-form .form-control {
  border: 2px solid hsl(var(--border));
  font-size: 1rem;
  padding: 0.75rem;
}

.search-form .form-control:focus {
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.1);
}

.search-form .btn {
  font-weight: 600;
  letter-spacing: 0.025em;
}

/* Event Statistics Card */
.event-stats-card {
  background: linear-gradient(135deg, 
    hsl(var(--card)) 0%, 
    hsl(220 14% 99%) 100%
  );
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 4px);
  padding: 1.5rem 2rem;
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.04),
    0 1px 3px rgba(0, 0, 0, 0.06);
  transition: border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.event-stats-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    hsl(var(--primary) / 0.03), 
    transparent
  );
  transition: left 0.6s ease;
}

.event-stats-card:hover {
  border-color: hsl(var(--primary) / 0.3);
}

.stats-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, 
    hsl(var(--primary) / 0.15), 
    hsl(var(--primary) / 0.08)
  );
  color: hsl(var(--primary));
  font-size: 1.5rem;
  flex-shrink: 0;
  position: relative;
  box-shadow: 
    0 4px 8px hsl(var(--primary) / 0.1),
    inset 0 1px 0 hsl(var(--primary) / 0.1);
  transition: border-color 0.2s ease;
}


/* Modern Event Card */
.modern-event-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  transition: border-color 0.2s ease;
  cursor: pointer;
  position: relative;
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.04),
    0 1px 3px rgba(0, 0, 0, 0.06);
}

.modern-event-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    hsl(var(--primary) / 0.05), 
    transparent
  );
  transition: left 0.6s ease;
  z-index: 1;
}

.modern-event-card:hover {
  border-color: hsl(var(--primary) / 0.3);
}

/* Event Image Container */
.event-image-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
  background: hsl(220 14% 96%);
}

.event-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* Event Placeholder */
.event-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, 
    hsl(220 14% 96%), 
    hsl(220 14% 94%)
  );
  color: hsl(var(--muted-foreground));
}

.placeholder-icon {
  font-size: 2.75rem;
  margin-bottom: 0.5rem;
  opacity: 0.6;
}

.placeholder-text {
  font-size: 0.8125rem;
  font-weight: 500;
  opacity: 0.8;
}

/* Event Status Badge */
.event-status-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 5;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.8rem;
  border-radius: calc(var(--radius) * 2);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.status-badge.success {
  background: hsl(var(--success) / 0.9);
  color: hsl(var(--success-foreground));
  border: 1px solid hsl(var(--success) / 0.3);
}

.status-badge.warning {
  background: hsl(var(--warning) / 0.9);
  color: hsl(var(--warning-foreground));
  border: 1px solid hsl(var(--warning) / 0.3);
}

.status-badge.secondary {
  background: hsl(0 0% 60% / 0.9);
  color: white;
  border: 1px solid hsl(0 0% 60% / 0.3);
}

.status-badge.info {
  background: hsl(var(--info) / 0.9);
  color: hsl(var(--info-foreground));
  border: 1px solid hsl(var(--info) / 0.3);
}

/* Event Hover Overlay */
.event-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom, 
    transparent 0%, 
    transparent 50%, 
    rgba(0, 0, 0, 0.7) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1.5rem;
  z-index: 3;
}

.modern-event-card:hover .event-hover-overlay {
  opacity: 1;
}

.hover-content {
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modern-event-card:hover .hover-content {
  transform: translateY(0);
}

.hover-action {
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: hsl(var(--primary) / 0.8);
  border-radius: calc(var(--radius) * 2);
  backdrop-filter: blur(10px);
}

/* Event Content */
.event-content {
  padding: 1.125rem 1.25rem 0.875rem 1.25rem;
  position: relative;
  z-index: 2;
  background: hsl(var(--card));
  flex: 1;
  display: flex;
  flex-direction: column;
}

.event-header {
  margin-bottom: 0.875rem;
}

.event-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  line-height: 1.3;
  margin: 0 0 0.25rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  letter-spacing: -0.01em;
  min-height: 2.6em; /* 調整固定高度 */
}

/* Event Details */
.event-details {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-bottom: 0.875rem;
}

.event-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.detail-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  font-size: 0.8125rem;
  flex-shrink: 0;
}

.detail-content {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
}

.detail-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail-value {
  font-size: 0.8125rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  line-height: 1.4;
  word-break: break-word;
}

/* Event Actions */
.event-actions {
  border-top: 1px solid hsl(var(--border));
  padding-top: 0.75rem;
  margin-top: auto;
}

.action-buttons {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

.action-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1.5px solid;
}

.release-btn {
  background: hsl(var(--warning) / 0.1);
  border-color: hsl(var(--warning) / 0.3);
  color: hsl(var(--warning));
}

.release-btn:hover {
  background: hsl(var(--warning));
  border-color: hsl(var(--warning));
  color: hsl(var(--warning-foreground));
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.application-btn {
  background: hsl(var(--success) / 0.1);
  border-color: hsl(var(--success) / 0.3);
  color: hsl(var(--success));
}

.application-btn:hover {
  background: hsl(var(--success));
  border-color: hsl(var(--success));
  color: hsl(var(--success-foreground));
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.login-prompt {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 0.75rem;
  background: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1.5px solid hsl(var(--border));
}

/* Empty State */
.empty-state-section {
  padding: 4rem 0;
}

.empty-state-card {
  background: hsl(var(--card));
  border: 2px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 6px);
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.empty-state-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, 
    hsl(var(--muted) / 0.5), 
    hsl(var(--muted) / 0.3)
  );
  color: hsl(var(--muted-foreground));
  font-size: 3rem;
  margin: 0 auto 2rem;
}

.empty-state-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
}

.empty-state-description {
  font-size: 1rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.empty-state-actions .btn {
  padding: 0.75rem 2rem;
  font-weight: 600;
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-spinner {
  text-align: center;
}

.loading-text {
  font-size: 1rem;
  color: hsl(var(--muted-foreground));
  margin: 0;
}

/* Animations */
@keyframes event-card-fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modern-event-card {
  animation: event-card-fade-in 0.4s ease-out;
  animation-fill-mode: both;
}

/* Staggered animation delays */
.modern-event-card:nth-child(1) { animation-delay: 0.05s; }
.modern-event-card:nth-child(2) { animation-delay: 0.1s; }
.modern-event-card:nth-child(3) { animation-delay: 0.15s; }
.modern-event-card:nth-child(4) { animation-delay: 0.2s; }
.modern-event-card:nth-child(5) { animation-delay: 0.25s; }
.modern-event-card:nth-child(6) { animation-delay: 0.3s; }
.modern-event-card:nth-child(7) { animation-delay: 0.35s; }
.modern-event-card:nth-child(8) { animation-delay: 0.4s; }
.modern-event-card:nth-child(9) { animation-delay: 0.45s; }

/* Responsive Design for Event List */
@media (max-width: 992px) {
  .modern-event-card:hover {
    border-color: hsl(var(--primary) / 0.3);
  }
  
  .event-content {
    padding: 1.125rem;
  }
  
  .event-title {
    font-size: 1rem;
  }
  
  .action-btn {
    font-size: 0.75rem;
    padding: 0.5rem 0.5rem;
  }
}

@media (max-width: 768px) {
  .event-list-header {
    padding: 3rem 0;
  }
  
  .event-list-header::after {
    width: 200px;
    height: 200px;
    right: 5%;
    opacity: 0.05;
  }
  
  .event-list-title {
    font-size: 2rem;
  }
  
  .event-list-subtitle {
    font-size: 0.9375rem;
  }
  
  .modern-event-card:hover,
  .empty-state-card:hover {
    border-color: hsl(var(--primary) / 0.3);
  }
  
  .release-btn:hover,
  .application-btn:hover {
    transform: none;
  }
  
  .event-content {
    padding: 0.875rem;
  }
  
  .event-details {
    margin-bottom: 0.875rem;
  }
  
  .event-detail-item {
    margin-bottom: 0.625rem;
  }
  
  .detail-icon {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }
  
  .action-buttons {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .action-btn {
    font-size: 0.85rem;
    padding: 0.75rem;
  }
  
  .empty-state-card {
    padding: 2rem 1.5rem;
  }
  
  .empty-state-icon {
    width: 80px;
    height: 80px;
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }
  
  .empty-state-title {
    font-size: 1.25rem;
  }
  
  .empty-state-description {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .event-list-header {
    padding: 2rem 0;
  }
  
  .event-list-header::after {
    width: 150px;
    height: 150px;
    right: 2%;
    opacity: 0.04;
  }
  
  .event-list-title {
    font-size: 1.625rem;
  }
  
  .event-list-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  .search-form .input-group-lg .form-control,
  .search-form .input-group-lg .input-group-text,
  .search-form .input-group-lg .btn {
    font-size: 0.9rem;
    padding: 0.6rem 0.75rem;
  }
  
  .event-stats-card {
    padding: 1rem;
  }
  
  .stats-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .event-title {
    font-size: 1rem;
    -webkit-line-clamp: 3;
  }
  
  .detail-value {
    font-size: 0.8rem;
  }
  
  .detail-label {
    font-size: 0.7rem;
  }
}

/* Print Styles for Event List */
@media print {
  .event-list-header {
    background: white !important;
  }
  
  .event-list-pattern {
    display: none;
  }
  
  .modern-event-card {
    break-inside: avoid;
    box-shadow: none !important;
    transform: none !important;
    border: 1px solid #000;
  }
  
  .modern-event-card::before {
    display: none;
  }
  
  .event-hover-overlay {
    display: none;
  }
  
  .action-buttons {
    display: none;
  }
  
  .loading-overlay {
    display: none !important;
  }
}

/* Event Detail Page - 現代化專業設計 */
.event-detail-image {
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 4px);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 4px 16px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s ease;
}


/* 活動主要資訊區域 */
.event-main-info {
  margin-bottom: 2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid hsl(var(--border));
}

.event-main-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  line-height: 1.3;
  margin: 0 0 1.25rem 0;
  letter-spacing: -0.01em;
}

/* 關鍵資訊 */
.event-key-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.key-info-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.key-info-icon {
  font-size: 1.25rem;
  color: hsl(var(--primary));
  width: 1.5rem;
  text-align: center;
  flex-shrink: 0;
}

.key-info-content {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.key-info-date {
  font-size: 1rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  line-height: 1.4;
}

.key-info-time {
  font-size: 0.9rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
}

.key-info-venue {
  font-size: 1rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  line-height: 1.4;
}

/* 響應式設計 */
@media (min-width: 768px) {
  .event-key-info {
    flex-direction: row;
    gap: 2rem;
  }
  
  .key-info-item {
    flex: 1;
    padding: 0.75rem 0;
    border-left: 2px solid hsl(var(--border));
    padding-left: 1rem;
    margin-left: 0.75rem;
  }
  
  .key-info-item:first-child {
    border-left-color: hsl(var(--primary));
  }
  
  .key-info-item:last-child {
    border-left-color: hsl(var(--success));
  }
}

/* 售票資訊卡片 */
.sale-info-card {
  background: linear-gradient(135deg, 
    hsl(var(--card)) 0%, 
    hsl(220 14% 99%) 100%
  );
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 4px);
  padding: 2rem;
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.04),
    0 2px 8px rgba(0, 0, 0, 0.02);
  transition: border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.sale-info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, 
    hsl(var(--primary)), 
    hsl(var(--accent))
  );
}

.sale-info-card:hover {
  border-color: hsl(var(--primary) / 0.3);
}

.sale-info-title {
  font-size: 1rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid hsl(var(--border));
}

.sale-period {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.period-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.period-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: hsl(var(--foreground));
}

.sale-status {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
}

.sale-status.active {
  background-color: hsl(145 63% 90%);
  color: hsl(145 63% 25%);
}

.sale-status.inactive {
  background-color: hsl(0 0% 90%);
  color: hsl(0 0% 40%);
}

/* 票價資訊卡片 */
.ticket-info-card {
  background: linear-gradient(135deg, 
    hsl(var(--card)) 0%, 
    hsl(220 14% 99%) 100%
  );
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 4px);
  padding: 2rem;
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.04),
    0 2px 8px rgba(0, 0, 0, 0.02);
  transition: border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.ticket-info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, 
    hsl(var(--success)), 
    hsl(var(--warning))
  );
}

.ticket-info-card:hover {
  border-color: hsl(var(--primary) / 0.3);
}

.ticket-info-title {
  font-size: 1rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid hsl(var(--border));
}

.ticket-price-card {
  background: linear-gradient(135deg, 
    hsl(220 14% 99%) 0%, 
    hsl(220 14% 97%) 100%
  );
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 2px);
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: border-color 0.2s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.02),
    0 1px 4px rgba(0, 0, 0, 0.04);
}

.ticket-price-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    hsl(var(--primary) / 0.04), 
    transparent
  );
  transition: left 0.6s ease;
}

.ticket-price-card:hover {
  border-color: hsl(var(--primary) / 0.3);
}

.ticket-type {
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.ticket-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: hsl(var(--primary));
}

/* 活動介紹卡片 */
.description-card {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.5rem;
}

.description-title {
  font-size: 1rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid hsl(var(--border));
}

.description-content {
  color: hsl(var(--foreground));
  line-height: 1.7;
  font-size: 0.95rem;
}

/* Right Column Cards */
.stats-card,
.action-card {
  background: linear-gradient(135deg, 
    hsl(var(--card)) 0%, 
    hsl(220 14% 99%) 100%
  );
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 4px);
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.04),
    0 2px 8px rgba(0, 0, 0, 0.02);
  transition: border-color 0.2s ease;
  overflow: hidden;
  position: relative;
}

.stats-card::before,
.action-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, 
    hsl(var(--success)), 
    hsl(var(--primary))
  );
}

.stats-card:hover,
.action-card:hover {
  border-color: hsl(var(--primary) / 0.3);
}

.stats-header,
.action-header {
  background: linear-gradient(135deg, 
    hsl(220 14% 98%) 0%, 
    hsl(220 14% 96%) 100%
  );
  border-bottom: 1px solid hsl(var(--border));
  padding: 1.25rem 1.5rem;
  position: relative;
}

.stats-body,
.action-body {
  padding: 1.5rem;
}

.stat-item {
  padding: 1rem 0;
}

.stat-item.release .stat-number {
  color: hsl(38 92% 50%);
}

.stat-item.application .stat-number {
  color: hsl(145 63% 32%);
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.85rem;
  color: hsl(var(--muted-foreground));
  font-weight: 500;
}

.action-notice {
  background-color: hsl(199 89% 95%);
  color: hsl(199 89% 25%);
  padding: 0.75rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  border-left: 3px solid hsl(199 89% 42%);
}

.login-prompt i,
.disabled-state i {
  font-size: 2.5rem;
}

/* Modern Flat Buttons */
.btn-flat-primary {
  background: linear-gradient(135deg, 
    hsl(var(--primary)) 0%, 
    hsl(222 100% 22%) 100%
  );
  border: 1px solid hsl(var(--primary));
  color: white;
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: calc(var(--radius) + 2px);
  transition: border-color 0.2s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 4px 12px hsl(var(--primary) / 0.15),
    0 2px 6px hsl(var(--primary) / 0.1);
}

.btn-flat-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.15), 
    transparent
  );
  transition: left 0.6s ease;
}

.btn-flat-primary:hover {
  background: linear-gradient(135deg, 
    hsl(222 100% 22%) 0%, 
    hsl(222 100% 18%) 100%
  );
  border-color: hsl(222 100% 22%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 
    0 8px 24px hsl(var(--primary) / 0.2),
    0 4px 12px hsl(var(--primary) / 0.15);
}

.btn-flat-primary:hover::before {
  left: 100%;
}

.btn-flat-warning {
  background: linear-gradient(135deg, 
    hsl(var(--warning)) 0%, 
    hsl(38 92% 45%) 100%
  );
  border: 1px solid hsl(var(--warning));
  color: hsl(var(--warning-foreground));
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: calc(var(--radius) + 2px);
  transition: border-color 0.2s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 4px 12px hsl(var(--warning) / 0.15),
    0 2px 6px hsl(var(--warning) / 0.1);
}

.btn-flat-warning::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.15), 
    transparent
  );
  transition: left 0.6s ease;
}

.btn-flat-warning:hover {
  background: linear-gradient(135deg, 
    hsl(38 92% 45%) 0%, 
    hsl(38 92% 40%) 100%
  );
  border-color: hsl(38 92% 45%);
  color: hsl(var(--warning-foreground));
  transform: translateY(-2px);
  box-shadow: 
    0 8px 24px hsl(var(--warning) / 0.2),
    0 4px 12px hsl(var(--warning) / 0.15);
}

.btn-flat-warning:hover::before {
  left: 100%;
}

.btn-flat-success {
  background: linear-gradient(135deg, 
    hsl(var(--success)) 0%, 
    hsl(145 63% 28%) 100%
  );
  border: 1px solid hsl(var(--success));
  color: hsl(var(--success-foreground));
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: calc(var(--radius) + 2px);
  transition: border-color 0.2s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 4px 12px hsl(var(--success) / 0.15),
    0 2px 6px hsl(var(--success) / 0.1);
}

.btn-flat-success::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.15), 
    transparent
  );
  transition: left 0.6s ease;
}

.btn-flat-success:hover {
  background: linear-gradient(135deg, 
    hsl(145 63% 28%) 0%, 
    hsl(145 63% 24%) 100%
  );
  border-color: hsl(145 63% 28%);
  color: hsl(var(--success-foreground));
  transform: translateY(-2px);
  box-shadow: 
    0 8px 24px hsl(var(--success) / 0.2),
    0 4px 12px hsl(var(--success) / 0.15);
}

.btn-flat-success:hover::before {
  left: 100%;
}

.btn-flat-outline {
  background-color: transparent;
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0;
  transition: all 0.2s ease;
}

.btn-flat-outline:hover {
  background-color: hsl(220 14% 96%);
  border-color: hsl(var(--border));
  color: hsl(var(--foreground));
}

/* Hero Section - Professional Ticket-Themed Background */
.hero-section {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid hsl(220 13% 91%);
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    hsl(0 0% 96%) 0%, 
    hsl(0 0% 94%) 25%,
    hsl(0 0% 95%) 50%,
    hsl(0 0% 94%) 75%,
    hsl(0 0% 96%) 100%
  );
  z-index: 1;
}
/* Big Art Logo Background */
.hero-section::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 10%;
  transform: translateY(-50%);
  width: 300px;
  height: 300px;
  background-image: url('/static/images/logo_bt.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.15;
  z-index: 2;
}

.hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  opacity: 0.1;
  background-image: 
    /* Subtle ticket perforations */
    radial-gradient(circle at 20px 20px, hsl(0 0% 40%) 2px, transparent 2px),
    radial-gradient(circle at 60px 60px, hsl(0 0% 50%) 1.5px, transparent 1.5px),
    radial-gradient(circle at 100px 40px, hsl(0 0% 40%) 1px, transparent 1px),
    /* Diagonal lines suggesting ticket edges */
    linear-gradient(45deg, transparent 40%, hsl(0 0% 40% / 0.05) 41%, hsl(0 0% 40% / 0.05) 43%, transparent 44%),
    linear-gradient(-45deg, transparent 60%, hsl(0 0% 50% / 0.03) 61%, hsl(0 0% 50% / 0.03) 63%, transparent 64%);
  background-size: 
    80px 80px,
    120px 120px,
    160px 160px,
    200px 200px,
    300px 300px;
  background-position:
    0 0,
    40px 40px,
    80px 20px,
    0 0,
    0 0;
  /* animation: hero-pattern-drift 60s ease-in-out infinite; */
}

/* @keyframes hero-pattern-drift {
  0%, 100% {
    transform: translateX(0) translateY(0);
  }
  25% {
    transform: translateX(20px) translateY(-10px);
  }
  50% {
    transform: translateX(-10px) translateY(15px);
  }
  75% {
    transform: translateX(15px) translateY(-5px);
  }
} */

/* Floating accent elements - removed */
/* .hero-section::before {
  content: '';
  position: absolute;
  top: 20%;
  right: 10%;
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, hsl(222 100% 26% / 0.1), hsl(204 96% 42% / 0.1));
  border-radius: 50%;
  z-index: 2;
} */

/* .hero-section::after {
  content: '';
  position: absolute;
  bottom: 15%;
  left: 8%;
  width: 150px;
  height: 150px;
  background: linear-gradient(45deg, hsl(204 96% 42% / 0.08), hsl(222 100% 26% / 0.08));
  border-radius: 50%;
  z-index: 2;
} */

/* @keyframes hero-float-1 {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-30px) rotate(180deg);
  }
} */

/* @keyframes hero-float-2 {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(-180deg);
  }
} */

/* Hero Text Enhancement */
.hero-title {
  position: relative;
  z-index: 10;
  color: hsl(222 47% 11%);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  letter-spacing: -0.02em;
}

.hero-subtitle {
  position: relative;
  z-index: 10;
  color: hsl(220 9% 46%);
  font-weight: 500;
  line-height: 1.4;
  max-width: 800px;
  margin: 0 0 2rem 0;
}

/* Hero Buttons Enhancement */
.hero-btn {
  position: relative;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border-width: 2px;
}

.hero-btn.btn-primary {
  background: linear-gradient(135deg, hsl(222 100% 26%), hsl(222 100% 22%));
  border-color: hsl(222 100% 26%);
}

.hero-btn.btn-primary:hover {
  background: linear-gradient(135deg, hsl(222 100% 22%), hsl(222 100% 18%));
  border-color: hsl(222 100% 22%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.hero-btn.btn-outline-primary {
  background: rgba(255, 255, 255, 0.9);
  border-color: hsl(0 0% 20%);
  color: hsl(0 0% 20%);
}

.hero-btn.btn-outline-primary:hover {
  background: hsl(0 0% 0%);
  border-color: hsl(0 0% 0%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments for hero */
@media (max-width: 768px) {
  .hero-section {
    min-height: 50vh;
  }
  
  .hero-section::after {
    width: 200px;
    height: 200px;
    right: 5%;
    opacity: 0.1;
  }
  
  .hero-pattern {
    opacity: 0.05;
  }
  
  .hero-btn:hover {
    transform: none;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-section::after {
    width: 150px;
    height: 150px;
    right: 2%;
    opacity: 0.08;
  }
}

/* Homepage Enhancements - Professional Components */

/* Section Titles and Subtitles */
.section-title {
  color: hsl(var(--foreground));
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-subtitle {
  color: hsl(var(--muted-foreground));
  font-weight: 400;
  line-height: 1.5;
}

/* Enhanced Features Section */
.features-section {
  position: relative;
}

.feature-card {
  background: hsl(var(--card));
  border: 2px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 4px);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: border-color 0.2s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    hsl(var(--primary) / 0.05), 
    transparent
  );
  transition: left 0.6s ease;
}

.feature-card:hover::before {
  left: 100%;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: hsl(var(--primary) / 0.3);
  box-shadow: 
    0 20px 25px -5px hsl(var(--primary) / 0.1),
    0 10px 10px -5px hsl(var(--primary) / 0.05),
    0 0 0 1px hsl(var(--primary) / 0.05);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, 
    hsl(var(--primary) / 0.1), 
    hsl(var(--primary) / 0.05)
  );
  margin: 0 auto 1.5rem;
  transition: border-color 0.2s ease;
  position: relative;
}

.feature-icon i {
  font-size: 2rem;
  color: hsl(var(--primary));
  transition: border-color 0.2s ease;
}

.feature-icon.success {
  background: linear-gradient(135deg, 
    hsl(var(--success) / 0.1), 
    hsl(var(--success) / 0.05)
  );
}

.feature-icon.success i {
  color: hsl(var(--success));
}

.feature-icon.accent {
  background: linear-gradient(135deg, 
    hsl(var(--accent) / 0.1), 
    hsl(var(--accent) / 0.05)
  );
}

.feature-icon.accent i {
  color: hsl(var(--accent));
}

.feature-icon.warning {
  background: linear-gradient(135deg, 
    hsl(var(--warning) / 0.1), 
    hsl(var(--warning) / 0.05)
  );
}

.feature-icon.warning i {
  color: hsl(var(--warning));
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.feature-card:hover .feature-icon i {
  transform: scale(1.1);
}

.feature-content {
  position: relative;
  z-index: 2;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
  line-height: 1.3;
}

.feature-description {
  color: hsl(var(--muted-foreground));
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.feature-highlight {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  border-radius: calc(var(--radius) * 2);
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid hsl(var(--primary) / 0.2);
  transition: border-color 0.2s ease;
}

.feature-highlight.success {
  background: hsl(var(--success) / 0.1);
  color: hsl(var(--success));
  border-color: hsl(var(--success) / 0.2);
}

.feature-highlight.accent {
  background: hsl(var(--accent) / 0.1);
  color: hsl(var(--accent));
  border-color: hsl(var(--accent) / 0.2);
}

.feature-highlight.warning {
  background: hsl(var(--warning) / 0.1);
  color: hsl(var(--warning));
  border-color: hsl(var(--warning) / 0.2);
}

.feature-card:hover .feature-highlight {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px hsl(var(--primary) / 0.2);
}

/* ===================================================
   首頁流程圖樣式 - Homepage Process Timeline Styles
   =================================================== */

.process-section {
  position: relative;
  padding: 3rem 0;
}

.process-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 6px);
  padding: 0;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.05),
    0 1px 2px rgba(0, 0, 0, 0.1);
}

.process-card:hover {
  transform: translateY(-6px);
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.12),
    0 10px 20px -5px rgba(0, 0, 0, 0.08);
  border-color: hsl(var(--primary) / 0.2);
}

.process-header {
  background: linear-gradient(135deg, 
    hsl(var(--card)), 
    hsl(220 14% 98%)
  );
  padding: 2.5rem 2rem 2rem;
  text-align: center;
  border-bottom: 1px solid hsl(var(--border));
  position: relative;
}

.process-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent, 
    hsl(var(--primary) / 0.3), 
    transparent
  );
}

.process-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, 
    hsl(var(--primary)), 
    hsl(var(--primary) / 0.8)
  );
  margin-bottom: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 8px 25px hsl(var(--primary) / 0.15),
    0 3px 10px hsl(var(--primary) / 0.1);
}

.process-icon.success {
  background: linear-gradient(135deg, 
    hsl(var(--success)), 
    hsl(var(--success) / 0.8)
  );
  box-shadow: 
    0 8px 25px hsl(var(--success) / 0.15),
    0 3px 10px hsl(var(--success) / 0.1);
}

.process-icon.accent {
  background: linear-gradient(135deg, 
    hsl(45 100% 60%), 
    hsl(45 100% 50%)
  );
  box-shadow: 
    0 8px 25px hsl(45 100% 50% / 0.15),
    0 3px 10px hsl(45 100% 50% / 0.1);
}

.process-icon i {
  font-size: 2rem;
  color: white;
}

.process-card:hover .process-icon {
  transform: scale(1.05) rotate(2deg);
}

.process-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.process-subtitle {
  color: hsl(var(--muted-foreground));
  font-size: 1rem;
  margin: 0;
  line-height: 1.4;
}

.process-timeline {
  padding: 2.5rem 2rem;
  position: relative;
}

/* 流程時間軸項目 */
.process-timeline .timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 2rem;
  position: relative;
  padding-left: 0;
  transition: all 0.2s ease;
}

.process-timeline .timeline-item:last-child {
  margin-bottom: 0;
}

/* 連接線 */
.process-timeline .timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 20px;
  top: 45px;
  width: 2px;
  height: calc(100% - 10px);
  background: linear-gradient(180deg, 
    hsl(var(--border)), 
    hsl(var(--border) / 0.3)
  );
  z-index: 1;
}

/* 步驟圓圈 */
.process-timeline .timeline-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, 
    hsl(var(--primary)), 
    hsl(var(--primary) / 0.8)
  );
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 0 0 4px hsl(var(--background)),
    0 2px 8px hsl(var(--primary) / 0.2);
  line-height: 1;
}

.process-timeline .timeline-marker.success {
  background: linear-gradient(135deg, 
    hsl(var(--success)), 
    hsl(var(--success) / 0.8)
  );
  box-shadow: 
    0 0 0 4px hsl(var(--background)),
    0 2px 8px hsl(var(--success) / 0.2);
}

.process-timeline .timeline-item:hover .timeline-marker {
  transform: scale(1.1);
  box-shadow: 
    0 0 0 4px hsl(var(--background)),
    0 0 0 8px hsl(var(--primary) / 0.15),
    0 4px 12px hsl(var(--primary) / 0.25);
}

.process-timeline .timeline-item:hover .timeline-marker.success {
  box-shadow: 
    0 0 0 4px hsl(var(--background)),
    0 0 0 8px hsl(var(--success) / 0.15),
    0 4px 12px hsl(var(--success) / 0.25);
}

/* 內容區域 */
.process-timeline .timeline-content {
  flex: 1;
  padding-top: 0.2rem;
}

.process-timeline .timeline-content h6 {
  font-size: 1.05rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.process-timeline .timeline-content p {
  color: hsl(var(--muted-foreground));
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

/* Enhanced Notice Section */
.notice-section {
  margin-bottom: 3rem;
}

.notice-card {
  background: linear-gradient(135deg, 
    hsl(199 89% 97%), 
    hsl(199 89% 95%)
  );
  border: 2px solid hsl(199 89% 85%);
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.notice-card:hover {
  border-color: hsl(199 89% 75%);
  box-shadow: 
    0 10px 15px -3px hsl(199 89% 50% / 0.1),
    0 4px 6px -2px hsl(199 89% 50% / 0.05);
}

.notice-header {
  background: linear-gradient(135deg, 
    hsl(199 89% 92%), 
    hsl(199 89% 88%)
  );
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
  border-bottom: 2px solid hsl(199 89% 85%);
}

.notice-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, 
    hsl(199 89% 42%), 
    hsl(199 89% 38%)
  );
  margin-bottom: 1rem;
  transition: border-color 0.2s ease;
}

.notice-icon i {
  font-size: 1.75rem;
  color: white;
}

.notice-card:hover .notice-icon {
  transform: scale(1.05);
}

.notice-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(199 89% 25%);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.notice-subtitle {
  color: hsl(199 89% 35%);
  font-size: 0.95rem;
  margin: 0;
}

.notice-content {
  padding: 2rem 1.5rem;
}

.notice-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: white;
  border-radius: var(--radius);
  border: 1px solid hsl(199 89% 90%);
  transition: border-color 0.2s ease;
  height: 100%;
}

.notice-item:hover {
  transform: translateY(-2px);
  border-color: hsl(199 89% 75%);
  box-shadow: 0 4px 8px hsl(199 89% 50% / 0.1);
}

.notice-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, 
    hsl(199 89% 90%), 
    hsl(199 89% 85%)
  );
  flex-shrink: 0;
  transition: border-color 0.2s ease;
}

.notice-item-icon i {
  font-size: 1.25rem;
  color: hsl(199 89% 42%);
}

.notice-item:hover .notice-item-icon {
  transform: scale(1.05);
  background: linear-gradient(135deg, 
    hsl(199 89% 42%), 
    hsl(199 89% 38%)
  );
}

.notice-item:hover .notice-item-icon i {
  color: white;
}

.notice-item-content h5 {
  font-size: 1rem;
  font-weight: 600;
  color: hsl(199 89% 25%);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.notice-item-content p {
  color: hsl(199 89% 35%);
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
}

/* Animation Enhancements */
@keyframes homepage-fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.features-section,
.process-section,
.notice-section {
  animation: homepage-fade-in 0.6s ease-out;
}

.feature-card {
  animation: homepage-fade-in 0.6s ease-out;
  animation-fill-mode: both;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }

.timeline-item {
  animation: homepage-fade-in 0.4s ease-out;
  animation-fill-mode: both;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }
.timeline-item:nth-child(6) { animation-delay: 0.6s; }

/* ===========================================
   響應式設計 - Homepage Responsive Design
   =========================================== */

@media (max-width: 992px) {
  .feature-card:hover {
    transform: translateY(-3px);
  }
  
  .process-card:hover {
    transform: translateY(-4px);
  }
  
  .process-header {
    padding: 2rem 1.5rem 1.5rem;
  }
  
  .process-icon {
    width: 72px;
    height: 72px;
    margin-bottom: 1.25rem;
  }
  
  .process-icon i {
    font-size: 1.8rem;
  }
  
  .process-title {
    font-size: 1.4rem;
  }
  
  .process-timeline {
    padding: 2rem 1.5rem;
  }
  
  .process-timeline .timeline-marker {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
  
  .process-timeline .timeline-item:not(:last-child)::after {
    left: 19px;
    top: 42px;
  }
  
  .process-timeline .timeline-content h6 {
    font-size: 1rem;
  }
  
  .process-timeline .timeline-content p {
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .feature-card:hover,
  .process-card:hover,
  .notice-item:hover {
    transform: translateY(-2px);
  }
  
  .feature-card:hover .feature-icon,
  .process-card:hover .process-icon {
    transform: scale(1.02);
  }
  
  .process-timeline .timeline-item:hover .timeline-marker,
  .notice-card:hover .notice-icon,
  .notice-item:hover .notice-item-icon {
    transform: none;
  }
  
  .feature-card {
    padding: 1.5rem 1.25rem;
  }
  
  .feature-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
  }
  
  .feature-icon i {
    font-size: 1.5rem;
  }
  
  .feature-title {
    font-size: 1.1rem;
  }
  
  .process-header {
    padding: 2rem 1.25rem 1.5rem;
  }
  
  .process-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
  }
  
  .process-icon i {
    font-size: 1.6rem;
  }
  
  .process-title {
    font-size: 1.3rem;
  }
  
  .process-subtitle {
    font-size: 0.9rem;
  }
  
  .process-timeline {
    padding: 2rem 1.25rem;
  }
  
  .process-timeline .timeline-marker {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
  
  .process-timeline .timeline-item:not(:last-child)::after {
    left: 18px;
    top: 40px;
  }
  
  .process-timeline .timeline-content h6 {
    font-size: 0.95rem;
  }
  
  .process-timeline .timeline-content p {
    font-size: 0.8rem;
  }
  
  .notice-header {
    padding: 1.5rem 1rem 1rem;
  }
  
  .notice-content {
    padding: 1.5rem 1rem;
  }
  
  .notice-icon {
    width: 56px;
    height: 56px;
  }
  
  .notice-icon i {
    font-size: 1.5rem;
  }
  
  .notice-title {
    font-size: 1.25rem;
  }
}

@media (max-width: 576px) {
  .section-title {
    font-size: 1.75rem;
  }
  
  .section-subtitle {
    font-size: 0.95rem;
  }
  
  .feature-card {
    margin-bottom: 1rem;
    padding: 1.25rem 1rem;
  }
  
  .process-section {
    padding: 2rem 0;
  }
  
  .process-header {
    padding: 1.5rem 1rem 1.25rem;
  }
  
  .process-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 0.75rem;
  }
  
  .process-icon i {
    font-size: 1.4rem;
  }
  
  .process-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }
  
  .process-subtitle {
    font-size: 0.85rem;
  }
  
  .process-timeline {
    padding: 1.5rem 1rem;
  }
  
  .process-timeline .timeline-item {
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .process-timeline .timeline-marker {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }
  
  .process-timeline .timeline-item:not(:last-child)::after {
    left: 16px;
    top: 36px;
  }
  
  .process-timeline .timeline-content h6 {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
  }
  
  .process-timeline .timeline-content p {
    font-size: 0.75rem;
  }
  
  .notice-item {
    gap: 0.75rem;
    padding: 0.75rem;
  }
  
  .notice-item-icon {
    width: 40px;
    height: 40px;
  }
  
  .notice-item-icon i {
    font-size: 1rem;
  }
  
  .notice-item-content h5 {
    font-size: 0.9rem;
  }
  
  .notice-item-content p {
    font-size: 0.8rem;
  }
}

/* Enhanced Mobile Responsiveness for Event Pages */
@media (max-width: 768px) {
  .event-stats-card:hover,
  .sale-info-card:hover,
  .ticket-info-card:hover,
  .ticket-price-card:hover,
  .stats-card:hover,
  .action-card:hover {
    transform: none;
    box-shadow: 
      0 4px 16px rgba(0, 0, 0, 0.04),
      0 2px 8px rgba(0, 0, 0, 0.02);
  }
  
  .btn-flat-primary:hover,
  .btn-flat-warning:hover,
  .btn-flat-success:hover {
    transform: none;
    box-shadow: 
      0 4px 12px hsl(var(--primary) / 0.1),
      0 2px 6px hsl(var(--primary) / 0.05);
  }
  
  .stats-icon,
  .event-stats-card:hover .stats-icon {
    transform: none;
  }
  
}

/* Print Styles */
@media print {
  .card-hover:hover {
    transform: none;
    box-shadow: none;
  }
  
  .btn {
    transform: none !important;
    box-shadow: none !important;
  }
  
  .hero-pattern {
    display: none;
  }
  
  /* .hero-section::before,
  .hero-section::after {
    display: none;
  } */
  
  .feature-card,
  .process-card,
  .notice-card {
    break-inside: avoid;
    box-shadow: none !important;
    transform: none !important;
  }
  
  .feature-card::before {
    display: none;
  }
  
  .timeline-item:not(:last-child)::after {
    background: #000;
  }
  
  .event-stats-card,
  .sale-info-card,
  .ticket-info-card,
  .ticket-price-card,
  .stats-card,
  .action-card {
    box-shadow: none !important;
    transform: none !important;
  }
  
  .btn-flat-primary,
  .btn-flat-warning,
  .btn-flat-success {
    box-shadow: none !important;
    transform: none !important;
  }
}

/* ===============================================
   會員中心專用樣式 - Member Center Styles
   =============================================== */

/* 會員中心標題區域 */
.member-center-header {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 4px);
  padding: 2rem 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

/* 移除會員中心 header 的滑動動畫 */

.member-header-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.member-header-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: hsl(var(--primary) / 0.12);
  color: hsl(var(--primary));
  font-size: 2rem;
  flex-shrink: 0;
  box-shadow: 
    0 4px 8px hsl(var(--primary) / 0.1),
    inset 0 1px 0 hsl(var(--primary) / 0.1);
}

.member-header-text {
  flex: 1;
  min-width: 0;
}

.member-center-title {
  font-size: 2rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin: 0 0 0.5rem 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.member-center-subtitle {
  font-size: 1rem;
  color: hsl(var(--muted-foreground));
  margin: 0;
  line-height: 1.5;
}

.member-header-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.header-stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: hsl(var(--foreground));
}

.stat-value.status-active {
  color: hsl(var(--success));
}

.stat-value.status-suspended {
  color: hsl(var(--warning));
}

.stat-value.status-blacklisted {
  color: hsl(var(--destructive));
}

/* 會員內容區域 */
.member-content-wrapper {
  /* 移除 gap，使用 Bootstrap 原生的 gutter */
}

.member-main-content {
  position: relative;
}

/* 會員側邊欄樣式 */
.member-sidebar {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 2px 4px -1px rgba(0, 0, 0, 0.03);
  /* 移除 sticky positioning 避免佈局問題 */
}

.sidebar-header {
  background: hsl(220 14% 97%);
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid hsl(var(--border));
}

.sidebar-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-title i {
  color: hsl(var(--primary));
  font-size: 1rem;
}

.sidebar-nav {
  padding: 0.25rem 0;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  color: hsl(var(--foreground));
  text-decoration: none;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
  position: relative;
}

.sidebar-nav-item:hover {
  background-color: hsl(var(--primary) / 0.05);
  border-left-color: hsl(var(--primary) / 0.3);
  color: hsl(var(--foreground));
  text-decoration: none;
}

.sidebar-nav-item.active {
  background-color: hsl(var(--primary) / 0.08);
  border-left-color: hsl(var(--primary));
  color: hsl(var(--foreground));
}

.sidebar-nav-item.active .nav-item-icon {
  color: hsl(var(--primary));
}

.sidebar-nav-item.active .nav-item-arrow {
  color: hsl(var(--primary));
  transform: translateX(4px);
}

.nav-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: hsl(var(--muted) / 0.5);
  color: hsl(var(--muted-foreground));
  font-size: 1rem;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.sidebar-nav-item:hover .nav-item-icon {
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  transform: scale(1.05);
}

.nav-item-content {
  flex: 1;
  min-width: 0;
}

.nav-item-title {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: inherit;
  line-height: 1.3;
  margin-bottom: 0;
}

.nav-item-description {
  display: block;
  font-size: 0.8rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.3;
}

.nav-item-arrow {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.sidebar-nav-item:hover .nav-item-arrow {
  transform: translateX(2px);
  color: hsl(var(--primary));
}

.sidebar-footer {
  border-top: 1px solid hsl(var(--border));
  padding: 1rem 1.5rem;
  background: hsl(220 14% 99%);
}

.member-quick-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.quick-info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.quick-info-item small {
  font-size: 0.8rem;
  line-height: 1.3;
}

/* 會員資料卡片優化 */
.member-main-content .card {
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 4px);
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 2px 4px -1px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  transition: all 0.2s ease;
}

.member-main-content .card:hover {
  border-color: hsl(var(--primary) / 0.3);
  box-shadow: 
    0 10px 15px -3px rgba(0, 0, 0, 0.08),
    0 4px 6px -2px rgba(0, 0, 0, 0.03);
}

.member-main-content .card-header {
  background: hsl(220 14% 97%);
  border-bottom: 1px solid hsl(var(--border));
  padding: 1.25rem 1.5rem;
}

.member-main-content .card-header h5 {
  font-size: 1.1rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.member-main-content .card-body {
  padding: 1.5rem;
}

/* 個人資料行項目優化 */
.member-main-content .row.mb-3 {
  padding: 0.875rem 0;
  border-bottom: 1px solid hsl(var(--border) / 0.5);
  margin-bottom: 0 !important;
  transition: all 0.2s ease;
}

.member-main-content .row.mb-3:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* 移除個人資料行的 hover 動畫 */

.member-main-content .row h6 {
  font-size: 0.9rem;
  font-weight: 700;
  color: hsl(var(--muted-foreground));
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.member-main-content .row .text-secondary {
  font-size: 0.95rem;
  font-weight: 500;
  color: hsl(var(--foreground)) !important;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* 狀態標籤優化 */
.member-main-content .badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: calc(var(--radius) * 2);
  text-transform: uppercase;
  letter-spacing: 0.025em;
  border: 1px solid transparent;
}

.member-main-content .badge.bg-success {
  background-color: hsl(var(--success) / 0.15) !important;
  color: hsl(var(--success)) !important;
  border-color: hsl(var(--success) / 0.3);
}

.member-main-content .badge.bg-warning {
  background-color: hsl(var(--warning) / 0.15) !important;
  color: hsl(var(--warning)) !important;
  border-color: hsl(var(--warning) / 0.3);
}

.member-main-content .badge.bg-danger {
  background-color: hsl(var(--destructive) / 0.15) !important;
  color: hsl(var(--destructive)) !important;
  border-color: hsl(var(--destructive) / 0.3);
}

/* 違規記錄表格優化 */
.member-main-content .table {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.member-main-content .table th {
  background-color: hsl(220 14% 98%);
  color: hsl(var(--foreground));
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid hsl(var(--border));
  padding: 1rem 0.75rem;
}

.member-main-content .table td {
  padding: 1rem 0.75rem;
  border-bottom: 1px solid hsl(var(--border) / 0.5);
  vertical-align: middle;
}

.member-main-content .table-responsive {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid hsl(var(--border));
}

/* 響應式設計 */
@media (max-width: 992px) {
  .member-center-header {
    padding: 1.5rem 1.75rem;
  }
  
  .member-header-content {
    gap: 1rem;
    margin-bottom: 1rem;
  }
  
  .member-header-icon {
    width: 56px;
    height: 56px;
    font-size: 1.75rem;
  }
  
  .member-center-title {
    font-size: 1.75rem;
  }
  
  .member-header-stats {
    gap: 1.5rem;
  }
  
  /* 響應式下保持正常佈局 */
}

@media (max-width: 768px) {
  .member-center-header {
    padding: 1.25rem 1.5rem;
  }
  
  .member-header-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .member-center-title {
    font-size: 1.5rem;
  }
  
  .member-header-stats {
    justify-content: center;
    gap: 1rem;
  }
  
  .sidebar-nav-item {
    padding: 0.875rem 1.25rem;
  }
  
  .nav-item-icon {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }
  
  .nav-item-title {
    font-size: 0.9rem;
  }
  
  .nav-item-description {
    font-size: 0.75rem;
  }
  
  .member-main-content .card-header,
  .member-main-content .card-body {
    padding: 1.25rem;
  }
  
  /* 響應式下也移除 hover 動畫 */
}

/* ===== Homepage Typography Refinements ===== */

/* Improved hero section typography for better readability */
.hero-title {
  font-size: 2.5rem; /* Smaller than display-4 but larger than h1 */
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.hero-subtitle {
  font-size: 1.125rem; /* fs-5 equivalent */
  line-height: 1.6;
  font-weight: 400;
}

/* Refined section typography */
.section-title.h2 {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-subtitle.fs-6 {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 2rem;
}

/* Enhanced feature cards typography */
.feature-title.h5 {
  font-size: 1.125rem;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.feature-description {
  font-size: 0.875rem;
  line-height: 1.5;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
}

.feature-highlight {
  font-size: 0.8rem;
  font-weight: 500;
}

/* 移除重複的樣式定義 - 這些樣式已經整合到主要的 process 樣式中 */

/* Improved button sizing */
.hero-btn.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
}

/* Enhanced spacing for better visual hierarchy */
.features-section .mb-5 {
  margin-bottom: 3rem !important;
}

.process-section .mb-5 {
  margin-bottom: 3rem !important;
}

/* Responsive adjustments for refined typography */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .section-title.h2 {
    font-size: 1.75rem;
  }
  
  .process-title.h4 {
    font-size: 1.25rem;
  }
  
  .feature-title.h5 {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 1.75rem;
    line-height: 1.2;
  }
  
  .hero-subtitle {
    font-size: 0.95rem;
  }
  
  .section-title.h2 {
    font-size: 1.5rem;
  }
  
  .hero-btn.btn-lg {
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
  }
}

/* ==========================================================================
   Admin Dashboard Styles
   ========================================================================== */

/* Dashboard Header */
.dashboard-header {
  border-bottom: 1px solid hsl(var(--border));
  padding-bottom: 1rem;
}

.dashboard-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  letter-spacing: -0.025em;
}

.dashboard-subtitle {
  font-size: 0.95rem;
  color: hsl(var(--muted-foreground));
  font-weight: 400;
}

/* Metrics Cards */
.metrics-section .metric-card {
  transition: all 0.2s ease-in-out;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
}

.metrics-section .metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: hsl(var(--ring));
}

.metric-card .metric-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.metric-card .metric-value {
  font-size: 1.875rem;
  font-weight: 800;
  color: hsl(var(--foreground));
  line-height: 1.1;
}

.metric-card .icon-wrapper {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
}

.metric-card .card-footer {
  font-size: 0.75rem;
  padding: 0.5rem 0.75rem;
}

/* Activity Cards */
.activity-section .activity-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  transition: all 0.3s ease;
}

.activity-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.activity-card .card-header {
  background: linear-gradient(135deg, rgba(var(--primary), 0.05), rgba(var(--primary), 0.02));
  border-bottom: 1px solid rgba(var(--border), 0.5);
  padding: 1.25rem 1.5rem;
}

.activity-card .card-header h6 {
  font-size: 1rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.activity-icon-wrapper {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.activity-icon-wrapper i {
  font-size: 1.1rem;
}

.activity-counter {
  font-size: 0.875rem;
  min-width: 2.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

/* =============================================
   活動時間軸樣式 - Activity Timeline Styles
   ============================================= */

.activity-timeline {
  position: relative;
  padding: 1rem 1.5rem;
}

.activity-timeline .timeline-item {
  margin-bottom: 1.75rem;
  padding-left: 2rem;
}

.activity-timeline .timeline-item:last-child {
  margin-bottom: 0;
}

.activity-timeline .timeline-marker {
  position: absolute;
  left: 1.5rem;
  top: 0.5rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: translateX(-50%);
}

.activity-timeline .timeline-item::before {
  content: '';
  position: absolute;
  left: 1.5rem;
  top: 1rem;
  bottom: -1rem;
  width: 1px;
  background: linear-gradient(to bottom, rgba(var(--border), 0.8), transparent);
  transform: translateX(-50%);
}

.activity-timeline .timeline-item:last-child::before {
  display: none;
}

.activity-timeline .timeline-content {
  background: hsl(var(--card));
  border: 1px solid rgba(var(--border), 0.5);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  transition: all 0.3s ease;
  position: relative;
}

.activity-timeline .timeline-content:hover {
  background: rgba(var(--accent), 0.02);
  border-color: rgba(var(--primary), 0.2);
  transform: translateX(4px);
}

.activity-timeline .timeline-content::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 1rem;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 8px solid rgba(var(--border), 0.5);
  transform: translateY(-50%);
}

.event-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  color: hsl(var(--foreground));
}

.match-participants, .transaction-info {
  margin-bottom: 0.75rem;
}

.participant-info, .buyer-info, .amount-info {
  display: flex;
  align-items: center;
  font-size: 0.8rem;
}

.participant-info i, .buyer-info i, .amount-info i {
  font-size: 0.9rem;
}

.match-details, .transaction-details {
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.detail-tag {
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid rgba(var(--border), 0.3);
  transition: all 0.2s ease;
}

.detail-tag:hover {
  transform: scale(1.05);
}

.status-badge-wrapper {
  margin-left: 0.75rem;
  flex-shrink: 0;
}

.status-badge {
  font-size: 0.75rem;
  font-weight: 600;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.status-badge:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Activity List Styles (Legacy Support) */
.activity-list .activity-item {
  border-color: hsl(var(--border)) !important;
  padding: 0.75rem 0;
}

.activity-item:last-child {
  border-bottom: none !important;
}

.activity-content .fw-medium {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
}

.activity-meta {
  font-size: 0.8rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.4;
}

.activity-status .badge {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
}

/* Enhanced Empty State */
.empty-state {
  padding: 3rem 1rem;
}

.empty-state .empty-icon {
  margin-bottom: 1.5rem;
}

.empty-state .empty-icon > div {
  transition: all 0.3s ease;
}

.empty-state:hover .empty-icon > div {
  transform: scale(1.05);
}

.empty-state h6 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.empty-state p {
  font-size: 0.9rem;
  color: hsl(var(--muted-foreground));
}

/* Alert Card (Smart Match Suggestions) */
.alert-card .card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
}

.alert-card .card-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.alert-card .card-header h6 {
  font-size: 1rem;
  font-weight: 600;
}

.alert-card .table th {
  font-size: 0.8125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  border-color: hsl(var(--border));
  padding: 0.75rem;
}

.alert-card .table td {
  font-size: 0.875rem;
  color: hsl(var(--foreground));
  border-color: hsl(var(--border));
  padding: 0.75rem;
  vertical-align: middle;
}

.alert-card .table-hover tbody tr:hover {
  background-color: hsl(var(--muted)) !important;
}

.alert-card .fw-medium {
  font-weight: 600;
}

/* Badge Enhancements */
.badge.rounded-pill {
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 992px) {
  .dashboard-title {
    font-size: 1.5rem;
  }
  
  .metric-card .metric-value {
    font-size: 1.5rem;
  }
  
  .metric-card .icon-wrapper {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .metric-card .icon-wrapper i {
    font-size: 1rem !important;
  }
}

@media (max-width: 768px) {
  .dashboard-header {
    text-align: center;
  }
  
  .dashboard-title {
    font-size: 1.375rem;
  }
  
  .dashboard-subtitle {
    font-size: 0.875rem;
  }
  
  .metric-card .metric-value {
    font-size: 1.375rem;
  }
  
  .activity-content .fw-medium {
    font-size: 0.85rem;
  }
  
  .activity-meta {
    font-size: 0.75rem;
  }
}

@media (max-width: 576px) {
  .metrics-section .col-6 {
    margin-bottom: 0.75rem;
  }
  
  .metric-card .card-body {
    padding: 0.75rem !important;
  }
  
  .metric-card .metric-value {
    font-size: 1.25rem;
  }
  
  .metric-card .icon-wrapper {
    width: 2rem;
    height: 2rem;
  }
  
  .metric-card .icon-wrapper i {
    font-size: 0.9rem !important;
  }
  
  .alert-card .table-responsive {
    font-size: 0.8rem;
  }
  
  .activity-section .card-header {
    padding: 0.75rem !important;
  }
  
  .activity-section .card-body {
    padding: 0.75rem !important;
  }
  
  /* Timeline Mobile Optimizations */
  .activity-timeline {
    padding: 0.75rem 1rem;
  }
  
  .activity-timeline .timeline-item {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
  }
  
  .activity-timeline .timeline-marker {
    left: 1rem;
    width: 6px;
    height: 6px;
  }
  
  .activity-timeline .timeline-item::before {
    left: 1rem;
  }
  
  .activity-timeline .timeline-content {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
  }
  
  .activity-timeline .timeline-content::before {
    left: -6px;
    border-right-width: 6px;
    border-top-width: 4px;
    border-bottom-width: 4px;
  }
  
  .event-title {
    font-size: 0.875rem;
  }
  
  .match-participants, .transaction-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  
  .match-participants .mx-2 {
    display: none;
  }
  
  .match-details, .transaction-details {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .status-badge-wrapper {
    margin-left: 0;
    margin-top: 0.5rem;
    align-self: flex-start;
  }
  
  .activity-icon-wrapper {
    width: 32px;
    height: 32px;
  }
  
  .activity-icon-wrapper i {
    font-size: 1rem;
  }
  
  .activity-card .card-header {
    padding: 1rem;
  }
  
  .activity-counter {
    font-size: 0.8rem;
    min-width: 2rem;
    padding: 0.25rem 0.5rem;
  }
  
  /* Enhanced empty state for mobile */
  .empty-state {
    padding: 2rem 1rem;
  }
}

/* 緊湊型媒合建議卡片樣式 */
.compact-match-card {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  transition: none;
}

.compact-match-card .card-body {
  padding: 12px !important;
}

.compact-match-card .release-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.compact-match-card .release-icon i {
  font-size: 18px;
}

.compact-match-card h6 {
  font-size: 14px;
  line-height: 1.3;
  margin-bottom: 4px;
}

.compact-match-card .release-details {
  line-height: 1.4;
}

.compact-match-card .badge {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 3px;
}

.compact-match-card .badge.small {
  font-size: 10px;
  padding: 1px 4px;
}

.compact-match-card .applications-list {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #f0f0f0;
}

.compact-match-card .application-row {
  padding: 6px 0;
}

.compact-match-card .application-info strong {
  font-size: 12px;
  color: #333;
}

.compact-match-card .application-info .text-muted {
  font-size: 11px;
  line-height: 1.2;
}

.compact-match-card .preferred-dates,
.compact-match-card .preferred-types {
  line-height: 1.2;
}

.compact-match-card .btn-sm {
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 3px;
  min-width: 32px;
}

.compact-match-card .btn-sm i {
  font-size: 12px;
}

.compact-match-card hr {
  margin: 8px 0;
  border-color: #f0f0f0;
}

.compact-match-card small {
  font-size: 11px;
}

.compact-match-card .text-muted.small {
  font-size: 10px;
}

/* 響應式調整 */
@media (max-width: 768px) {
  .compact-match-card .row.align-items-center {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .compact-match-card .col-md-3 {
    margin-bottom: 4px;
    padding-left: 0;
  }
  
  .compact-match-card .text-end {
    text-align: left !important;
  }
  
  .compact-match-card .justify-content-end {
    justify-content: flex-start !important;
  }
}

/* ========== Pagination Styles ========== */
.pagination-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}

.pagination-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.pagination-pages {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  background: transparent;
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) - 2px);
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.pagination-btn:hover {
  color: hsl(var(--primary));  /* hover 時文字變主色 */
  background: hsl(var(--primary) / 0.05);  /* 非常淡的主色背景 */
  border-color: hsl(var(--primary) / 0.3);
  text-decoration: none;
  transform: translateY(-1px);
}

.pagination-btn-current {
  color: hsl(var(--primary-foreground));
  background: hsl(var(--primary));
  border-color: hsl(var(--primary));
  font-weight: 600;
  cursor: default;
}

.pagination-btn-current:hover {
  transform: none;
}

.pagination-btn-nav {
  padding: 0.5rem 1rem;
}

.pagination-btn-nav .pagination-btn-text {
  font-size: 0.875rem;
}

.pagination-btn-disabled {
  color: hsl(var(--muted-foreground));
  background: hsl(var(--muted) / 0.5);
  border-color: hsl(var(--border));
  cursor: not-allowed;
  opacity: 0.6;
}

.pagination-btn-disabled:hover {
  color: hsl(var(--muted-foreground));
  background: hsl(var(--muted) / 0.5);
  border-color: hsl(var(--border));
  transform: none;
}

.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: hsl(var(--muted-foreground));
  font-weight: 500;
}

.pagination-info {
  color: hsl(var(--muted-foreground));
  font-size: 0.8rem;
  text-align: center;
}

/* 響應式調整 */
@media (max-width: 768px) {
  .pagination-wrapper {
    gap: 0.25rem;
  }
  
  .pagination-btn {
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0.375rem 0.5rem;
    font-size: 0.8rem;
  }
  
  .pagination-btn-nav {
    padding: 0.375rem 0.75rem;
  }
  
  .pagination-btn-nav .pagination-btn-text {
    display: none;
  }
  
  .pagination-ellipsis {
    width: 2.25rem;
    height: 2.25rem;
  }
}
/* 取消按鈕樣式 - Cancel Button Styles */
.cancel-action-footer {
  background-color: hsl(var(--secondary));
  border-top: 1px solid hsl(var(--border));
}

.cancel-action-footer .btn-outline-danger {
  border-color: hsl(var(--destructive));
  color: hsl(var(--destructive));
  background-color: transparent;
  font-size: 0.875rem;
  transition: all 0.15s ease-in-out;
}

.cancel-action-footer .btn-outline-danger:hover,
.cancel-action-footer .btn-outline-danger:focus {
  background-color: hsl(var(--destructive));
  color: hsl(var(--destructive-foreground));
  border-color: hsl(var(--destructive));
}

/* 行動裝置適配 */
@media (max-width: 767px) {
  .cancel-action-footer {
    position: sticky;
    bottom: 0;
    z-index: 10;
    margin-left: -1rem;
    margin-right: -1rem;
    margin-bottom: -1rem;
    border-radius: 0;
  }
  
  .cancel-action-footer .d-flex {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .cancel-action-footer .btn-outline-danger {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    min-height: 44px; /* 符合無障礙觸控目標 */
  }
  
  .cancel-action-footer small {
    text-align: center;
    order: 2;
  }
}
