/* ==========================================================================
   B2B 智慧詢價系統與線索管理樣式 (大字清晰整齊版)
   ========================================================================== */

/* 浮動詢價按鈕 (Floating RFQ Badge) */
.rfq-floating-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: linear-gradient(135deg, #d93829, #ef4444);
  color: #ffffff;
  padding: 16px 26px; /* 原 14px 22px -> 16px 26px */
  border-radius: 50px;
  box-shadow: 0 10px 28px rgba(217, 56, 41, 0.45);
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  font-size: 17px; /* 原 15px -> 17px */
  z-index: 999;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid rgba(255,255,255,0.4);
}
.rfq-floating-btn:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 14px 36px rgba(217, 56, 41, 0.6);
}
.rfq-badge-count {
  background-color: #ffffff;
  color: #d93829;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
}

/* 詢價側邊抽屜 (RFQ Drawer) */
.rfq-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.rfq-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}
.rfq-drawer {
  position: fixed;
  top: 0;
  right: -520px;
  width: 100%;
  max-width: 500px;
  height: 100vh;
  background-color: #ffffff;
  box-shadow: -10px 0 36px rgba(0,0,0,0.18);
  z-index: 2001;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.rfq-drawer.active {
  right: 0;
}
.rfq-drawer-header {
  padding: 22px 28px;
  background-color: #0f2b48;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.rfq-drawer-header h3 {
  font-size: 20px; /* 原 18px -> 20px */
  font-weight: 800;
}
.rfq-drawer-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}
.rfq-drawer-close:hover {
  color: #ffffff;
}

.rfq-drawer-body {
  padding: 28px;
  overflow-y: auto;
  flex-grow: 1;
}
.rfq-item-card {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.rfq-item-info h5 {
  font-size: 16px; /* 原 14px -> 16px */
  font-weight: 800;
  color: #0f2b48;
}
.rfq-item-info span {
  font-size: 13px;
  color: #64748b;
  display: block;
  margin-top: 2px;
}
.rfq-item-remove {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  padding: 6px 10px;
}
.rfq-item-remove:hover {
  text-decoration: underline;
}

.rfq-drawer-footer {
  padding: 22px 28px;
  border-top: 1px solid #e2e8f0;
  background-color: #f8fafc;
}

/* 詢價專用表單 (RFQ Form) */
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 16px; /* 原 14px -> 16px */
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}
.form-group label .required {
  color: #ef4444;
}
.form-control {
  width: 100%;
  padding: 13px 16px; /* 原 11px 14px -> 13px 16px */
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 16px; /* 原 14px -> 16px */
  font-family: inherit;
  transition: all 0.2s ease;
  background-color: #ffffff;
}
.form-control:focus {
  outline: none;
  border-color: #0f2b48;
  box-shadow: 0 0 0 3px rgba(15, 43, 72, 0.12);
}
textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/* 管理後台 UI (Admin Dashboard) */
.admin-header {
  background-color: #0f2b48;
  color: #fff;
  padding: 22px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}
.admin-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.admin-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 28px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}
.stat-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.stat-box h6 {
  font-size: 15px; /* 原 13px -> 15px */
  color: #64748b;
  margin-bottom: 10px;
  font-weight: 700;
}
.stat-box .num {
  font-size: 36px; /* 原 28px -> 36px */
  font-weight: 900;
  color: #0f2b48;
}

/* 表格樣式 */
.table-responsive {
  overflow-x: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px; /* 原 14px -> 16px */
  text-align: left;
}
.table th {
  background-color: #f1f5f9;
  color: #334155;
  font-weight: 800;
  padding: 14px 18px;
  border-bottom: 2px solid #cbd5e1;
}
.table td {
  padding: 16px 18px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: middle;
}
.table tr:hover {
  background-color: #f8fafc;
}
.badge-status {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 800;
}
.status-new { background-color: #fee2e2; color: #dc2626; }
.status-process { background-color: #fef3c7; color: #d97706; }
.status-quoted { background-color: #e0e7ff; color: #4338ca; }
.status-closed { background-color: #dcfce7; color: #15803d; }
