/* ===== CHAMPAGNE & LIMOUSINES FONT ===== */
@font-face {
  font-family: 'Champagne & Limousines';
  src: url('/static/fonts/champagne-limousines.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Champagne & Limousines';
  src: url('/static/fonts/champagne-limousines-bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

/* Navigation links */
.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: #a8a29e;
  text-decoration: none;
  transition: all 0.15s ease;
}
.nav-link:hover {
  background: #292524;
  color: #e7e5e4;
}
.nav-link.active {
  background: #1c1917;
  color: #C2BDB0;
  border-left: 2px solid #938F74;
}

/* Star rating */
.stars {
  display: flex;
  gap: 2px;
}
.star {
  width: 15px;
  height: 15px;
  color: #d1d5db;
}
.star.filled {
  color: #938F74;
}

/* Tag pills */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.tag-cat {
  background: #EDEAE3;
  color: #625E4A;
}
.tag-brand {
  background: #ede9fe;
  color: #5b21b6;
}
.tag-more {
  background: #f1f5f9;
  color: #64748b;
}

/* Cards */
.supplier-card {
  background: white;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  cursor: pointer;
  border: 1px solid #f5f5f4;
}
.supplier-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  transform: translateY(-1px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  border: none;
  outline: none;
}
.btn-primary {
  background: #7A7660;
  color: white;
}
.btn-primary:hover {
  background: #625E4A;
}
.btn-secondary {
  background: #f5f5f4;
  color: #1c1917;
}
.btn-secondary:hover {
  background: #e7e5e4;
}
.btn-danger {
  background: #fef2f2;
  color: #dc2626;
}
.btn-danger:hover {
  background: #fee2e2;
}
.btn-ghost {
  background: transparent;
  color: #78716c;
  padding: 6px 8px;
}
.btn-ghost:hover {
  background: #f5f5f4;
  color: #1c1917;
}
.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}
.btn-whatsapp {
  background: #22c55e;
  color: white;
}
.btn-whatsapp:hover {
  background: #16a34a;
}
.btn-email {
  background: #3b82f6;
  color: white;
}
.btn-email:hover {
  background: #2563eb;
}

/* Form elements */
.form-input {
  width: 100%;
  padding: 9px 13px;
  border: 1px solid #e7e5e4;
  border-radius: 8px;
  font-size: 15px;
  background: white;
  transition: border-color 0.15s;
  font-family: inherit;
}
.form-input:focus {
  outline: none;
  border-color: #938F74;
  box-shadow: 0 0 0 3px rgba(147,143,116,0.15);
}
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #57534e;
  margin-bottom: 5px;
}
.form-select {
  width: 100%;
  padding: 9px 13px;
  border: 1px solid #e7e5e4;
  border-radius: 8px;
  font-size: 15px;
  background: white;
  cursor: pointer;
  font-family: inherit;
}
.form-select:focus {
  outline: none;
  border-color: #938F74;
}
.form-textarea {
  width: 100%;
  padding: 9px 13px;
  border: 1px solid #e7e5e4;
  border-radius: 8px;
  font-size: 15px;
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
}
.form-textarea:focus {
  outline: none;
  border-color: #938F74;
  box-shadow: 0 0 0 3px rgba(147,143,116,0.15);
}

/* Tag input */
.tag-input-container {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 7px 10px;
  border: 1px solid #e7e5e4;
  border-radius: 8px;
  min-height: 44px;
  background: white;
  cursor: text;
  align-items: center;
}
.tag-input-container:focus-within {
  border-color: #938F74;
  box-shadow: 0 0 0 3px rgba(147,143,116,0.15);
}
.tag-input-container input {
  border: none;
  outline: none;
  font-size: 15px;
  flex: 1;
  min-width: 120px;
  background: transparent;
  font-family: inherit;
}
.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #EDEAE3;
  color: #625E4A;
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 13px;
  font-weight: 500;
}
.tag-chip-remove {
  cursor: pointer;
  color: #938F74;
  line-height: 1;
}
.tag-chip-remove:hover { color: #625E4A; }

/* Upload drop zone */
.drop-zone {
  border: 2px dashed #e7e5e4;
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.drop-zone:hover, .drop-zone.dragover {
  border-color: #938F74;
  background: #F5F4F0;
}

/* Stats card */
.stat-card {
  background: white;
  border-radius: 14px;
  padding: 20px 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border: 1px solid #f5f5f4;
}
.stat-card-link {
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.stat-card-link:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  transform: translateY(-2px);
  border-color: #D9D5CB;
}

/* Filter sidebar */
.filter-section {
  background: white;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid #f5f5f4;
}
.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  cursor: pointer;
  font-size: 14px;
  color: #44403c;
}
.filter-checkbox input {
  accent-color: #938F74;
  width: 15px;
  height: 15px;
}

/* Page header */
.page-header {
  background: white;
  border-bottom: 1px solid #f5f5f4;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.page-title {
  font-size: 22px;
  font-weight: 600;
  color: #1c1917;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #a8a29e;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d6d3d1; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #a8a29e; }

/* Supplier logo */
.supplier-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: contain;
  background: #f5f5f4;
  border: 1px solid #e7e5e4;
  flex-shrink: 0;
}
.supplier-logo-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #EDEAE3;
  color: #625E4A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  border: 1px solid #D9D5CB;
}

/* Animate */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.2s ease; }

/* Table */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  text-align: left;
  padding: 11px 15px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #78716c;
  background: #fafaf9;
  border-bottom: 1px solid #e7e5e4;
}
.data-table td {
  padding: 13px 15px;
  font-size: 14px;
  border-bottom: 1px solid #f5f5f4;
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #fafaf9; }

/* Badge */
.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.badge-green { background: #dcfce7; color: #166534; }
.badge-amber { background: #EDEAE3; color: #625E4A; }
.badge-red { background: #fee2e2; color: #991b1b; }
.badge-blue { background: #dbeafe; color: #1e40af; }
.badge-gray { background: #f1f5f9; color: #475569; }

/* Autocomplete dropdown */
.autocomplete-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #e7e5e4;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  z-index: 100;
  max-height: 200px;
  overflow-y: auto;
}
.autocomplete-item {
  padding: 9px 13px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.1s;
}
.autocomplete-item:hover { background: #F5F4F0; color: #625E4A; }

/* Modal */
#modal-overlay.flex { display: flex !important; }
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #f5f5f4;
}
.modal-title { font-size: 18px; font-weight: 600; color: #1c1917; }
.modal-body { padding: 20px 24px; }
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #f5f5f4;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* Progress steps */
.step-indicator {
  display: flex;
  align-items: center;
  gap: 0;
}
.step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #a8a29e;
}
.step.active { color: #938F74; }
.step.done { color: #10b981; }
.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  background: #f5f5f4;
  color: #a8a29e;
  flex-shrink: 0;
}
.step.active .step-num { background: #938F74; color: white; }
.step.done .step-num { background: #10b981; color: white; }
.step-line { flex: 1; height: 1px; background: #e7e5e4; min-width: 20px; }

/* Supplier detail panel */
.detail-panel {
  position: fixed;
  top: 0;
  right: -480px;
  width: 480px;
  height: 100vh;
  background: white;
  box-shadow: -8px 0 32px rgba(0,0,0,0.12);
  z-index: 30;
  transition: right 0.3s ease;
  overflow-y: auto;
}
.detail-panel.open { right: 0; }

/* ===== TAILWIND TEXT SIZE OVERRIDES ===== */
.text-xs   { font-size: 15px !important; line-height: 1.5 !important; }
.text-sm   { font-size: 17px !important; line-height: 1.5 !important; }
.text-base { font-size: 19px !important; line-height: 1.6 !important; }
.text-lg   { font-size: 22px !important; }
.text-xl   { font-size: 25px !important; }
.text-2xl  { font-size: 29px !important; }
.text-3xl  { font-size: 35px !important; }

/* Texto secundário mais escuro e legível */
.text-stone-400 { color: #78716c !important; }
.text-stone-500 { color: #57534e !important; }

/* ===== TAILWIND AMBER → BRAND COLOR OVERRIDES ===== */
.bg-amber-50   { background-color: #F5F4F0 !important; }
.bg-amber-100  { background-color: #EDEAE3 !important; }
.bg-amber-200  { background-color: #D9D5CB !important; }
.bg-amber-300  { background-color: #C2BDB0 !important; }
.bg-amber-400  { background-color: #ABA592 !important; }
.bg-amber-500  { background-color: #938F74 !important; }
.bg-amber-600  { background-color: #7A7660 !important; }
.bg-amber-700  { background-color: #625E4A !important; }
.bg-amber-800  { background-color: #4E4B3C !important; }

.text-amber-400  { color: #ABA592 !important; }
.text-amber-500  { color: #938F74 !important; }
.text-amber-600  { color: #938F74 !important; }
.text-amber-700  { color: #7A7660 !important; }
.text-amber-800  { color: #625E4A !important; }
.text-amber-900  { color: #4E4B3C !important; }

.border-amber-100 { border-color: #EDEAE3 !important; }
.border-amber-200 { border-color: #D9D5CB !important; }
.border-amber-300 { border-color: #C2BDB0 !important; }

.hover\:bg-amber-600:hover  { background-color: #7A7660 !important; }
.hover\:bg-amber-700:hover  { background-color: #625E4A !important; }
.hover\:text-amber-600:hover { color: #938F74 !important; }

.accent-amber-600 { accent-color: #938F74 !important; }

.ring-amber-500 { --tw-ring-color: #938F74 !important; }
.focus\:ring-amber-500:focus { --tw-ring-color: #938F74 !important; }
.focus\:border-amber-500:focus { border-color: #938F74 !important; }
