/* ============================================================================
 * Dashboard Page Styles
 * 儀表板頁面樣式
 * ============================================================================ */

#dashboard-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 頂部導航欄 */
.topbar {
  background: white;
  border-bottom: 1px solid #e0e0e0;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-logo {
  font-size: 20px;
  font-weight: 600;
  color: #667eea;
}

.topbar-title {
  font-size: 16px;
  color: #666;
  padding-left: 16px;
  border-left: 1px solid #e0e0e0;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  background: #f5f5f5;
  border-radius: 20px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #667eea;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 500;
  font-size: 14px;
}

.user-name {
  font-size: 14px;
  color: #333;
}

/* 主要內容區 */
.main-content {
  flex: 1;
  padding: 24px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* 統計卡片 */
.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

/* 空狀態 */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.empty-state-text {
  font-size: 16px;
}

/* 匯款資訊區塊 */
.bank-info-section {
  background: white;
  padding: 20px 24px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bank-info-content {
  flex: 1;
}

.bank-info-title {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
  font-weight: 600;
}

.bank-info-details {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.bank-info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bank-info-label {
  font-size: 12px;
  color: #999;
}

.bank-info-value {
  font-size: 14px;
  color: #333;
  font-weight: 500;
}

/* 合約列表（客戶視圖）*/
.contract-list {
  padding: 24px;
}

.contract-item {
  padding: 20px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 16px;
  transition: box-shadow 0.3s;
  position: relative;
}

.contract-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.contract-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.contract-amount {
  font-size: 20px;
  font-weight: 600;
  color: #667eea;
}

.contract-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.contract-field {
  display: flex;
  flex-direction: column;
}

.contract-field-label {
  font-size: 12px;
  color: #666;
  margin-bottom: 4px;
}

.contract-field-value {
  font-size: 14px;
  color: #333;
  font-weight: 500;
}

/* 合約篩選區 */
.contract-filter-section {
  padding: 16px 24px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  gap: 24px;
  align-items: center;
}

.contract-filter-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #666;
  transition: color 0.2s;
}

.contract-filter-label:hover {
  color: #667eea;
}

.contract-filter-label input[type="radio"] {
  cursor: pointer;
  width: 16px;
  height: 16px;
  accent-color: #667eea;
}

.contract-filter-label input[type="radio"]:checked + span {
  color: #667eea;
  font-weight: 600;
}

/* 批次操作按鈕區 */
.batch-actions {
  padding: 16px 24px;
  background: #f0f4ff;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.batch-actions.hidden {
  display: none;
}
