/* ============================
   經銷商平台 CSS
   ============================ */

:root {
  --dealer-primary: #1a5276;
  --dealer-accent:  #2e86c1;
  --dealer-sidebar-bg: linear-gradient(160deg, #1a3a5c 0%, #1a5276 100%);
}

body { background: #f5f7fa; font-family: 'Noto Sans TC', 'Microsoft JhengHei', sans-serif; }

/* --- Sidebar --- */
.dealer-sidebar {
  min-height: 100vh;
  background: var(--dealer-sidebar-bg);
}
.sidebar-title  { color: #f0f4f8; font-weight: 700; margin-bottom: 2px; }
.sidebar-company { color: #b0c4de; font-size: .85rem; }
.sidebar-divider { border-color: rgba(255,255,255,.2); margin: .75rem 1rem; }

.dealer-sidebar .nav-link {
  color: rgba(255,255,255,.82);
  border-radius: .5rem;
  margin: 2px 0;
  transition: all .25s;
  font-size: .92rem;
}
.dealer-sidebar .nav-link:hover { background: rgba(255,255,255,.12); color: #fff; transform: translateX(3px); }
.dealer-sidebar .nav-link.active { background: rgba(255,255,255,.22); color: #fff; border-left: 3px solid #7ec8e3; padding-left: .85rem; }

/* --- Main content --- */
.dealer-main { padding: 1.5rem; }

/* --- Cards --- */
.stat-card { border: none; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.07); }
.stat-card .card-body { padding: 1.25rem 1.5rem; }
.stat-value { font-size: 1.6rem; font-weight: 700; }

/* --- Tables --- */
.table th { font-weight: 600; font-size: .88rem; color: #555; }
.table td { vertical-align: middle; font-size: .9rem; }

/* --- Badges --- */
.badge-dealer-active   { background: #198754; }
.badge-dealer-pending  { background: #fd7e14; }
.badge-dealer-suspended{ background: #6c757d; }

/* --- Price display --- */
.price-suggest { color: #888; text-decoration: line-through; font-size: .82rem; }
.price-dealer  { color: #c0392b; font-weight: 700; font-size: .95rem; }

/* --- Credit bar --- */
.credit-bar-wrap { background: #e9ecef; border-radius: 4px; height: 8px; overflow: hidden; }
.credit-bar-fill { background: linear-gradient(90deg, #2e86c1, #27ae60); height: 100%; border-radius: 4px; transition: width .4s; }

/* --- Auth pages --- */
.auth-card { max-width: 460px; margin: 3rem auto; border-radius: 16px; box-shadow: 0 4px 20px rgba(0,0,0,.1); }
.auth-logo { font-size: 1.4rem; font-weight: 800; color: var(--dealer-primary); }

/* --- Alert overrides --- */
.alert { border-radius: 8px; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .dealer-main { padding: 1rem; }
  .stat-value { font-size: 1.3rem; }
}
