/* 全局樣式 */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
}

/* 登入頁面樣式 */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-box {
  background: white;
  padding: 3rem;
  border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 400px;
}

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

.login-header i {
  font-size: 3rem;
  color: #667eea;
  margin-bottom: 1rem;
}

.login-header h2 {
  color: #333;
  margin-bottom: 0.5rem;
}

.login-header p {
  color: #666;
  font-size: 0.9rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #333;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.3s;
}

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

.btn-login {
  width: 100%;
  padding: 0.75rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.3s;
}

.btn-login:hover {
  opacity: 0.9;
}

.btn-login:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.alert {
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.alert-error {
  background-color: #fee;
  color: #c33;
  border: 1px solid #fcc;
}

.alert-success {
  background-color: #efe;
  color: #3c3;
  border: 1px solid #cfc;
}

.test-accounts {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}

.test-accounts h4 {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.test-account-btn {
  display: block;
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s;
}

.test-account-btn:hover {
  background: #e5e5e5;
  border-color: #667eea;
}

/* Dashboard 樣式 */
.dashboard {
  min-height: 100vh;
  background-color: #f5f5f5;
}

.navbar {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1rem 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: bold;
}

.navbar-user {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-logout {
  background: rgba(255,255,255,0.2);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-logout:hover {
  background: rgba(255,255,255,0.3);
}

.dashboard-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: white;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s;
}

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

.stat-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: #666;
  font-size: 0.9rem;
}

.section {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  margin-bottom: 2rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f0f0f0;
}

.section-title {
  font-size: 1.5rem;
  color: #333;
  font-weight: 600;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 600;
  transition: opacity 0.3s;
}

.btn-primary:hover {
  opacity: 0.9;
}

.table-responsive {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background-color: #f9f9f9;
}

th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: #666;
  border-bottom: 2px solid #e0e0e0;
}

td {
  padding: 1rem;
  border-bottom: 1px solid #f0f0f0;
}

tr:hover {
  background-color: #f9f9f9;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.badge-active {
  background-color: #d4edda;
  color: #155724;
}

.badge-pending {
  background-color: #fff3cd;
  color: #856404;
}

.badge-completed {
  background-color: #d1ecf1;
  color: #0c5460;
}

/* 響應式設計 */
@media (max-width: 768px) {
  .navbar-content {
    flex-direction: column;
    gap: 1rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .section {
    padding: 1rem;
  }
  
  .table-responsive {
    font-size: 0.9rem;
  }
}

/* Loading 動畫 */
.spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #667eea;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
  display: inline-block;
  margin-left: 0.5rem;
}

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

/* 側邊欄導航 */
.dashboard-layout {
  display: flex;
  min-height: calc(100vh - 64px);
}

.sidebar {
  width: 250px;
  background: white;
  border-right: 1px solid #e0e0e0;
  padding: 1.5rem 0;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
}

.menu-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  color: #666;
  text-decoration: none;
  transition: all 0.3s;
  position: relative;
}

.menu-item i {
  width: 20px;
  margin-right: 0.75rem;
  font-size: 1.1rem;
}

.menu-item:hover {
  background-color: #f5f5f5;
  color: #667eea;
}

.menu-item.active {
  background-color: #ede9fe;
  color: #667eea;
  font-weight: 600;
  border-left: 3px solid #667eea;
}

.menu-item .badge {
  margin-left: auto;
  font-size: 0.75rem;
}

.main-content {
  flex: 1;
  padding: 2rem;
  background-color: #f9fafb;
  overflow-y: auto;
}

/* 快速操作按鈕 */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.quick-action-btn {
  background: white;
  border: 2px solid #e0e0e0;
  padding: 1.5rem;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
}

.quick-action-btn:hover {
  border-color: #667eea;
  background-color: #f5f3ff;
  transform: translateY(-2px);
}

.quick-action-btn i {
  display: block;
  font-size: 2rem;
  color: #667eea;
  margin-bottom: 0.5rem;
}

.quick-action-btn span {
  display: block;
  color: #333;
  font-weight: 600;
}

/* 待辦任務卡片 */
.assignments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}

.assignment-card {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: all 0.3s;
}

.assignment-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.assignment-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f0f0f0;
}

.assignment-header h3 {
  margin: 0 0 0.25rem 0;
  color: #333;
}

.assignment-body {
  margin-bottom: 1rem;
}

.assignment-info {
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
  color: #666;
  font-size: 0.9rem;
}

.assignment-footer {
  display: flex;
  justify-content: flex-end;
}

/* 評分表單 */
.assignment-form {
  background: white;
  border-radius: 0.75rem;
  padding: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.form-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f0f0f0;
}

.form-header h1 {
  margin: 1rem 0 0.5rem 0;
}

.btn-back {
  background: #f5f5f5;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  color: #666;
  font-weight: 500;
  transition: all 0.3s;
}

.btn-back:hover {
  background: #e5e5e5;
}

.form-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #f9fafb;
  border-radius: 0.75rem;
}

.form-question {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: white;
  border-radius: 0.5rem;
}

.question-label {
  display: block;
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.required {
  color: #f56565;
  margin-left: 0.25rem;
}

.likert-scale {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.likert-option {
  flex: 1;
  text-align: center;
  cursor: pointer;
}

.likert-option input[type="radio"] {
  display: none;
}

.likert-label {
  display: block;
  padding: 0.75rem;
  border: 2px solid #e0e0e0;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s;
}

.likert-option input[type="radio"]:checked + .likert-label {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: #667eea;
}

.likert-option:hover .likert-label {
  border-color: #667eea;
}

.likert-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.5rem;
}

textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 1rem;
  resize: vertical;
  transition: border-color 0.3s;
}

textarea:focus {
  outline: none;
  border-color: #667eea;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid #f0f0f0;
}

/* 頁面標題 */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.page-header h1 {
  margin: 0;
}

/* 空狀態 */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
}

.empty-state i {
  font-size: 4rem;
  color: #cbd5e0;
  margin-bottom: 1rem;
}

.empty-state p {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

/* 進度條 */
.progress-bar {
  width: 100%;
  height: 8px;
  background-color: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transition: width 0.3s ease;
}

.progress-text {
  margin-left: 0.5rem;
  font-size: 0.9rem;
  color: #666;
  font-weight: 600;
}

/* 資訊網格 */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.info-item {
  display: flex;
  flex-direction: column;
}

.info-label {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.info-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
}

/* 表單大型容器 */
.form-container {
  max-width: 900px;
  margin: 0 auto;
}

.form-large {
  background: white;
  border-radius: 0.75rem;
  padding: 2rem;
}

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

select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.3s;
}

select:focus {
  outline: none;
  border-color: #667eea;
}

/* 按鈕樣式補充 */
.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}

.btn-secondary {
  background: #e0e0e0;
  color: #333;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}

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

/* 文字樣式 */
.text-muted {
  color: #999;
  font-size: 0.9rem;
}

.text-danger {
  color: #f56565;
}

.mr-2 {
  margin-right: 0.5rem;
}

.ml-2 {
  margin-left: 0.5rem;
}

/* 徽章變體 */
.badge-danger {
  background-color: #fee;
  color: #c33;
}

/* 響應式調整 */
@media (max-width: 768px) {
  .dashboard-layout {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
  }
  
  .main-content {
    padding: 1rem;
  }
  
  .assignments-grid {
    grid-template-columns: 1fr;
  }
  
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .likert-scale {
    flex-direction: column;
  }
}

/* ===========================
   評分表單增強樣式
   =========================== */

/* 表單問題 */
.form-question {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: white;
  border-radius: 0.75rem;
  border: 1px solid #e0e0e0;
  transition: all 0.3s;
}

.form-question:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.1);
}

.question-label {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.question-number {
  display: inline-block;
  min-width: 32px;
  color: var(--primary);
  font-weight: 700;
}

/* Likert 量表增強 */
.likert-scale {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.likert-option {
  flex: 1;
  position: relative;
  cursor: pointer;
  transition: all 0.3s;
}

.likert-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.likert-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0.5rem;
  border: 2px solid #e0e0e0;
  border-radius: 0.75rem;
  background: #f7fafc;
  transition: all 0.3s;
}

.likert-option:hover {
  border-color: var(--primary);
  background: #f3f0ff;
  transform: translateY(-2px);
}

.likert-option.selected {
  border-color: var(--primary);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
}

.likert-label {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.likert-option.selected .likert-label {
  color: white;
}

.likert-emoji {
  font-size: 1.5rem;
  margin-top: 0.25rem;
}

.likert-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #718096;
}

/* Textarea 增強 */
.form-textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
  transition: all 0.3s;
  line-height: 1.6;
}

.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #f3f0ff;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.char-count {
  text-align: right;
  font-size: 0.875rem;
  color: #718096;
  margin-top: 0.5rem;
}

/* 表單進度條 */
.form-progress {
  position: sticky;
  top: 0;
  z-index: 10;
  background: white;
  padding: 1.5rem;
  margin: 2rem -1.5rem 2rem -1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.progress-bar-container {
  width: 100%;
  height: 12px;
  background: #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--primary);
  transition: width 0.5s ease, background-color 0.3s;
  border-radius: 6px;
}

/* 成功訊息頁面 */
.success-message {
  text-align: center;
  padding: 4rem 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.success-icon {
  font-size: 5rem;
  color: #48bb78;
  margin-bottom: 1.5rem;
  animation: successBounce 0.6s ease;
}

@keyframes successBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.success-message h1 {
  font-size: 2rem;
  color: #2d3748;
  margin-bottom: 0.5rem;
}

.success-message p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.success-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Alert 資訊框 */
.alert {
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  line-height: 1.6;
}

.alert-info {
  background: #e6f7ff;
  border: 1px solid #91d5ff;
  color: #096dd9;
}

.alert-error {
  background: #fff1f0;
  border: 1px solid #ffa39e;
  color: #cf1322;
}

.alert ul {
  margin: 0;
  padding-left: 20px;
}

.alert li {
  margin: 0.25rem 0;
}

/* 表單頭部增強 */
.assignment-form .form-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 0.75rem;
  margin-bottom: 2rem;
}

.assignment-form .form-header h1 {
  color: white;
  margin: 0;
  font-size: 1.5rem;
}

.assignment-form .form-header .text-muted {
  color: rgba(255, 255, 255, 0.9);
}

.assignment-form .form-header .btn-back {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.assignment-form .form-header .btn-back:hover {
  background: rgba(255, 255, 255, 0.3);
}

#auto-save-status {
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 0.5rem;
  white-space: nowrap;
}

/* Checkbox 標籤樣式 */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.75rem;
  border-radius: 0.5rem;
  transition: background 0.3s;
}

.checkbox-label:hover {
  background: #f7fafc;
}

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

/* 響應式調整 */
@media (max-width: 768px) {
  .likert-scale {
    gap: 0.5rem;
  }
  
  .likert-option {
    padding: 0.75rem 0.25rem;
  }
  
  .likert-emoji {
    font-size: 1.25rem;
  }
  
  .assignment-form .form-header {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .success-actions {
    flex-direction: column;
  }
  
  .success-actions button {
    width: 100%;
  }
}

/* ===========================
   員工卡片樣式
   =========================== */

.employees-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.employee-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.3s;
}

.employee-card:hover {
  border-color: var(--primary);
  background: #f3f0ff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.15);
}

.employee-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.employee-info {
  flex: 1;
  min-width: 0;
}

.employee-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.employee-meta {
  font-size: 0.875rem;
  color: #718096;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.employee-action {
  color: #cbd5e0;
  font-size: 1.25rem;
  flex-shrink: 0;
  transition: all 0.3s;
}

.employee-card:hover .employee-action {
  color: var(--primary);
  transform: translateX(4px);
}

/* 匿名保護樣式 */
.text-muted {
  color: #a0aec0;
}

.fa-user-secret {
  color: #a0aec0;
}

/* Table 容器 */
.table-container {
  overflow-x: auto;
  border-radius: 0.75rem;
  border: 1px solid #e0e0e0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.data-table thead {
  background: #f7fafc;
}

.data-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: #4a5568;
  border-bottom: 2px solid #e0e0e0;
}

.data-table td {
  padding: 1rem;
  border-bottom: 1px solid #e0e0e0;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover {
  background: #f7fafc;
}

/* Badge 樣式補充 */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
}

.badge-info {
  background: #e6f7ff;
  color: #096dd9;
}

.badge-warning {
  background: #fff7e6;
  color: #d48806;
}

.badge-secondary {
  background: #f0f0f0;
  color: #595959;
}

.badge-success {
  background: #f6ffed;
  color: #52c41a;
}

.badge-danger {
  background: #fff1f0;
  color: #ff4d4f;
}

.badge-pending {
  background: #fff7e6;
  color: #d48806;
}

.badge-active {
  background: #e6f7ff;
  color: #1890ff;
}

/* Progress bar 小型版 */
.progress-bar-container {
  width: 100%;
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .employees-grid {
    grid-template-columns: 1fr;
  }
  
  .data-table {
    font-size: 0.875rem;
  }
  
  .data-table th,
  .data-table td {
    padding: 0.75rem 0.5rem;
  }
}
