/**
 * 快反神秘客系統 - 前端樣式
 */

/* ==================== 基礎樣式 ==================== */
#fast-mystery-shopper-app {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #333;
  line-height: 1.6;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

#fast-mystery-shopper-app * {
  box-sizing: border-box;
}

/* ==================== 載入畫面 ==================== */
.fms-loading-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  font-size: 1.5rem;
  color: white;
}

.fms-loading {
  text-align: center;
  padding: 2rem;
  color: white;
}

/* ==================== 登入頁面 ==================== */
.fms-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.fms-login-container {
  background: white;
  border-radius: 20px;
  padding: 3rem;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.fms-login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.fms-login-header h1 {
  font-size: 2rem;
  color: #667eea;
  margin: 0 0 0.5rem;
}

.fms-login-header p {
  color: #888;
  margin: 0;
  font-size: 0.9rem;
}

.fms-login-roles {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.fms-role-btn {
  flex: 1;
  padding: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.fms-role-btn:hover {
  border-color: var(--role-color);
  transform: translateY(-2px);
}

.fms-role-btn.active {
  border-color: var(--role-color);
  background: var(--role-color);
  color: white;
}

.fms-role-icon {
  font-size: 2rem;
}

.fms-role-name {
  font-size: 0.9rem;
  font-weight: 500;
}

.fms-login-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.fms-login-error {
  background: #fee;
  color: #c33;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
}

.fms-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.fms-form-group label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #555;
}

.fms-form-group input,
.fms-form-group select,
.fms-form-group textarea {
  padding: 0.875rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.fms-form-group input:focus,
.fms-form-group select:focus,
.fms-form-group textarea:focus {
  outline: none;
  border-color: #667eea;
}

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

.fms-login-submit {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.fms-login-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(102, 126, 234, 0.4);
}

.fms-login-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* ==================== 儀表板佈局 ==================== */
.fms-manager-dashboard,
.fms-visitor-workspace,
.fms-client-dashboard {
  min-height: 100vh;
}

.fms-dashboard-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.fms-header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.fms-header-left h1 {
  font-size: 1.5rem;
  color: #667eea;
  margin: 0;
}

.fms-user-role {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.375rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
}

.fms-header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.fms-user-name {
  font-weight: 500;
  color: #555;
}

.fms-logout-btn {
  background: #ff6b6b;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: background 0.3s;
}

.fms-logout-btn:hover {
  background: #ee5a5a;
}

/* ==================== 每日佳句 ==================== */
.fms-daily-quote {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 1rem 2rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(245, 87, 108, 0.3);
}

.fms-quote-icon {
  font-size: 3rem;
  flex-shrink: 0;
}

.fms-quote-content {
  flex: 1;
}

.fms-quote-text {
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0 0 0.5rem;
  line-height: 1.5;
}

.fms-quote-author {
  font-size: 0.9rem;
  opacity: 0.9;
  margin: 0;
}

.fms-quote-date {
  font-size: 0.875rem;
  opacity: 0.8;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 20px;
}

/* ==================== 導航選單 ==================== */
.fms-dashboard-nav {
  display: flex;
  gap: 0.5rem;
  padding: 0 2rem;
  margin-bottom: 1rem;
  overflow-x: auto;
}

.fms-nav-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: #555;
  transition: all 0.3s;
  white-space: nowrap;
}

.fms-nav-btn:hover {
  background: white;
  transform: translateY(-2px);
}

.fms-nav-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

/* ==================== 內容區域 ==================== */
.fms-dashboard-content {
  padding: 0 2rem 2rem;
}

.fms-tab-content {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.fms-tab-content h2 {
  margin: 0 0 1.5rem;
  color: #333;
  font-size: 1.5rem;
}

.fms-tab-content h3 {
  margin: 1.5rem 0 1rem;
  color: #555;
  font-size: 1.25rem;
}

/* ==================== 統計卡片 ==================== */
.fms-dashboard {
  margin-bottom: 2rem;
}

.fms-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.fms-stat-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s;
}

.fms-stat-card:hover {
  transform: translateY(-4px);
}

.fms-stat-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.fms-stat-value {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.fms-stat-label {
  font-size: 0.875rem;
  opacity: 0.9;
}

/* ==================== 圖表區域 ==================== */
.fms-charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.fms-chart-card {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1.5rem;
}

.fms-chart-card.full-width {
  grid-column: 1 / -1;
}

.fms-chart-card h3 {
  margin: 0 0 1rem;
  color: #555;
  font-size: 1.1rem;
}

/* ==================== 表格樣式 ==================== */
.fms-data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.fms-data-table th,
.fms-data-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

.fms-data-table th {
  background: #f8f9fa;
  font-weight: 600;
  color: #555;
}

.fms-data-table tr:hover {
  background: #f8f9fa;
}

/* ==================== 按鈕樣式 ==================== */
.fms-btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: transform 0.3s, box-shadow 0.3s;
}

.fms-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.fms-btn-secondary {
  background: #e0e0e0;
  color: #555;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.3s;
}

.fms-btn-secondary:hover {
  background: #d0d0d0;
}

.fms-btn-success {
  background: #7ed321;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
}

.fms-btn-success:hover {
  background: #6bc01a;
}

.fms-btn-danger {
  background: #ff6b6b;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
}

.fms-btn-danger:hover {
  background: #ee5a5a;
}

.fms-btn-small {
  background: #e0e0e0;
  color: #555;
  border: none;
  padding: 0.375rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  margin-right: 0.5rem;
}

.fms-btn-small:hover {
  background: #d0d0d0;
}

.fms-btn-small.fms-btn-danger {
  background: #ff6b6b;
  color: white;
}

.fms-btn-small.fms-btn-danger:hover {
  background: #ee5a5a;
}

/* ==================== 表單樣式 ==================== */
.fms-form {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.fms-form h3 {
  margin: 0 0 1.5rem;
  color: #333;
}

.fms-form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.fms-form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* ==================== 區塊標題 ==================== */
.fms-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.fms-section-header h2 {
  margin: 0;
}

/* ==================== 類別區塊 ==================== */
.fms-category-section {
  margin-bottom: 2rem;
}

.fms-category-title {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin: 0 0 1rem;
  font-size: 1.1rem;
}

/* ==================== 評分項目 ==================== */
.fms-evaluation-category {
  margin-bottom: 2rem;
}

.fms-evaluation-category h4 {
  background: #f0f0f0;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin: 0 0 1rem;
  color: #555;
}

.fms-evaluation-item {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.fms-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.fms-item-name {
  font-weight: 600;
  color: #333;
}

.fms-item-type {
  background: #667eea;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
}

.fms-item-desc {
  color: #666;
  font-size: 0.9rem;
  margin: 0 0 1rem;
}

.fms-score-input {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.fms-score-input label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

/* ==================== 狀態標籤 ==================== */
.fms-status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  color: white;
}

/* ==================== 報告詳情 ==================== */
.fms-report-detail {
  margin-top: 1.5rem;
}

.fms-report-info {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.fms-report-info p {
  margin: 0.5rem 0;
}

.fms-scores-section {
  margin-bottom: 2rem;
}

.fms-ai-review-section {
  background: #f0f7ff;
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.fms-ai-opinion {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
}

.fms-review-actions {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 12px;
}

.fms-review-actions textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 1rem;
  min-height: 100px;
}

.fms-review-buttons {
  display: flex;
  gap: 1rem;
}

/* ==================== 留言區 ==================== */
.fms-comments-section {
  margin-top: 2rem;
}

.fms-comments-list {
  max-height: 400px;
  overflow-y: auto;
  margin-bottom: 1rem;
}

.fms-comment {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

.fms-comment.ai {
  background: #f0f7ff;
  border-left: 4px solid #667eea;
}

.fms-comment-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.fms-comment-author {
  font-weight: 600;
  color: #667eea;
}

.fms-comment-time {
  font-size: 0.8rem;
  color: #888;
}

.fms-comment p {
  margin: 0;
  white-space: pre-wrap;
}

.fms-comment-input {
  display: flex;
  gap: 0.5rem;
}

.fms-comment-input textarea {
  flex: 1;
  padding: 0.75rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  min-height: 60px;
}

.fms-comment-input button {
  background: #667eea;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
}

/* ==================== AI 分析結果 ==================== */
.fms-ai-analysis {
  background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  border: 2px solid #667eea30;
}

.fms-ai-analysis h4 {
  color: #667eea;
  margin: 0 0 1rem;
}

.fms-score-summary {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.fms-score-summary h4 {
  margin: 0 0 1rem;
}

/* ==================== AI 服務專家 ==================== */
.fms-ai-expert {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
}

.fms-ai-toggle {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 1rem 1.5rem;
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
  transition: transform 0.3s;
}

.fms-ai-toggle:hover {
  transform: scale(1.05);
}

.fms-ai-icon {
  font-size: 1.5rem;
}

.fms-ai-panel {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 380px;
  height: 500px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.fms-ai-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fms-ai-header h4 {
  margin: 0;
}

.fms-ai-header button {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

.fms-ai-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.fms-ai-welcome {
  padding: 1rem;
}

.fms-ai-welcome p {
  margin: 0 0 1rem;
  color: #555;
}

.fms-ai-welcome ul {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
  color: #666;
}

.fms-ai-welcome li {
  margin-bottom: 0.5rem;
}

.fms-ai-quick-questions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.fms-ai-quick-questions button {
  background: #f0f0f0;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  color: #555;
  transition: background 0.3s;
}

.fms-ai-quick-questions button:hover {
  background: #e0e0e0;
}

.fms-ai-message {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.fms-ai-message.user {
  flex-direction: row-reverse;
}

.fms-ai-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fms-ai-message.assistant .fms-ai-avatar {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.fms-ai-content {
  background: #f8f9fa;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  max-width: 80%;
}

.fms-ai-message.user .fms-ai-content {
  background: #667eea;
  color: white;
}

.fms-ai-content pre {
  margin: 0;
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 0.9rem;
}

.fms-ai-typing {
  color: #888;
  font-size: 0.9rem;
}

.fms-ai-input {
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
  border-top: 1px solid #e0e0e0;
}

.fms-ai-input input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 25px;
  outline: none;
}

.fms-ai-input input:focus {
  border-color: #667eea;
}

.fms-ai-input button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 500;
}

.fms-ai-input button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ==================== 圖表切換標籤 ==================== */
.fms-chart-tabs {
  display: flex;
  gap: 0.5rem;
}

.fms-chart-tabs button {
  background: #e0e0e0;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
}

.fms-chart-tabs button.active {
  background: #667eea;
  color: white;
}

/* ==================== 響應式設計 ==================== */
@media (max-width: 768px) {
  .fms-login-roles {
    flex-direction: column;
  }
  
  .fms-dashboard-header {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  
  .fms-dashboard-nav {
    padding: 0 1rem;
  }
  
  .fms-dashboard-content {
    padding: 0 1rem 1rem;
  }
  
  .fms-daily-quote {
    margin: 1rem;
    flex-direction: column;
    text-align: center;
  }
  
  .fms-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .fms-charts-grid {
    grid-template-columns: 1fr;
  }
  
  .fms-ai-panel {
    width: calc(100vw - 2rem);
    right: -1rem;
  }
  
  .fms-form-row {
    grid-template-columns: 1fr;
  }
  
  .fms-data-table {
    font-size: 0.875rem;
  }
  
  .fms-data-table th,
  .fms-data-table td {
    padding: 0.75rem 0.5rem;
  }
}

/* ==================== 動畫效果 ==================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fms-tab-content {
  animation: fadeIn 0.3s ease;
}

/* ==================== 滾動條美化 ==================== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

/* ==================== 登入/註冊切換 ==================== */
.fms-mode-switch {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  background: #f0f0f0;
  padding: 0.25rem;
  border-radius: 10px;
}

.fms-mode-switch button {
  flex: 1;
  padding: 0.75rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  color: #666;
  transition: all 0.3s;
}

.fms-mode-switch button.active {
  background: white;
  color: #667eea;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.fms-register-form {
  max-height: 500px;
  overflow-y: auto;
}

.fms-register-note {
  text-align: center;
  color: #888;
  font-size: 0.875rem;
  margin-top: 1rem;
}

.fms-register-success {
  text-align: center;
  padding: 2rem;
}

.fms-success-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.fms-register-success h2 {
  color: #7ed321;
  margin-bottom: 1rem;
}

.fms-register-success p {
  color: #666;
  margin-bottom: 2rem;
}

/* ==================== 密碼修改按鈕 ==================== */
.fms-change-password-btn {
  background: #4a90e2;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  margin-right: 0.5rem;
  transition: background 0.3s;
}

.fms-change-password-btn:hover {
  background: #3a80d2;
}

/* ==================== 模態框 ==================== */
.fms-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: fadeIn 0.3s ease;
}

.fms-modal {
  background: white;
  border-radius: 16px;
  width: 90%;
  max-width: 450px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: slideUp 0.3s ease;
}

.fms-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid #e0e0e0;
}

.fms-modal-header h3 {
  margin: 0;
  color: #333;
}

.fms-modal-header button {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #888;
}

.fms-modal-body {
  padding: 1.5rem;
}

.fms-login-success {
  background: #e8f5e9;
  color: #2e7d32;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

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

/* ==================== 空狀態 ==================== */
.fms-empty-state {
  text-align: center;
  padding: 3rem;
  color: #888;
}

.fms-empty-state p {
  font-size: 1.1rem;
}

::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}
