/* Gold Fieldos - Custom Styles */

:root {
  --gold: #F0A500;
  --gold-dark: #cc8800;
  --sidebar-bg: #0d1117;
}

.font-inter { font-family: 'Inter', system-ui, -apple-system, sans-serif; }

/* Stat Cards */
.stat-card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.07);
  border: 1px solid #f3f4f6;
  transition: box-shadow .2s;
}
.stat-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.1); }

/* Tables */
.gf-table { min-width: 100%; border-collapse: collapse; }
.gf-table thead th {
  padding: .75rem 1rem; text-align: left; font-size: .75rem;
  font-weight: 600; color: #6b7280; text-transform: uppercase;
  letter-spacing: .05em; background: #f9fafb;
}
.gf-table tbody tr:hover { background: #f9fafb; }
.gf-table tbody td { padding: .75rem 1rem; font-size: .875rem; color: #374151; white-space: nowrap; }
.gf-table tbody tr { border-bottom: 1px solid #f3f4f6; }

/* Badges */
.badge { display: inline-flex; align-items: center; padding: .125rem .625rem; border-radius: 9999px; font-size: .75rem; font-weight: 600; }
.badge-green  { background: #d1fae5; color: #065f46; }
.badge-red    { background: #fee2e2; color: #991b1b; }
.badge-yellow { background: #fef3c7; color: #92400e; }
.badge-blue   { background: #dbeafe; color: #1e40af; }
.badge-gray   { background: #f3f4f6; color: #374151; }
.badge-orange { background: #ffedd5; color: #9a3412; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .625rem 1rem; border-radius: .75rem; font-size: .875rem;
  font-weight: 500; transition: all .2s; cursor: pointer; border: none;
  text-decoration: none; outline: none;
}
.btn:focus { box-shadow: 0 0 0 3px rgba(240,165,0,.3); }
.btn-primary  { background: #eab308; color: #111827; }
.btn-primary:hover  { background: #ca8a04; }
.btn-secondary { background: #fff; color: #374151; border: 1px solid #d1d5db; }
.btn-secondary:hover { background: #f9fafb; }
.btn-danger   { background: #dc2626; color: #fff; }
.btn-danger:hover   { background: #b91c1c; }
.btn-success  { background: #16a34a; color: #fff; }
.btn-success:hover  { background: #15803d; }
.btn-sm { padding: .375rem .75rem; font-size: .75rem; border-radius: .5rem; }

/* Forms */
.form-input, .form-select {
  display: block; width: 100%; padding: .625rem .75rem;
  border: 1px solid #d1d5db; border-radius: .75rem; font-size: .875rem;
  transition: border-color .15s, box-shadow .15s; outline: none;
  background: #fff; color: #111827;
}
.form-input:focus, .form-select:focus {
  border-color: #eab308;
  box-shadow: 0 0 0 3px rgba(234,179,8,.15);
}
.form-label { display: block; font-size: .875rem; font-weight: 500; color: #374151; margin-bottom: .375rem; }

/* Cards */
.card { background: #fff; border-radius: 1rem; box-shadow: 0 1px 3px rgba(0,0,0,.07); border: 1px solid #f3f4f6; }
.card-header { padding: 1rem 1.25rem; border-bottom: 1px solid #f3f4f6; display: flex; align-items: center; justify-content: space-between; }
.card-body { padding: 1.25rem; }

/* Modal Overlay */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 40; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.modal-panel   { background: #fff; border-radius: 1rem; box-shadow: 0 25px 50px rgba(0,0,0,.25); width: 100%; max-height: 90vh; overflow-y: auto; }

/* Status Dot */
.status-dot { display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; }
.status-dot.active   { background: #22c55e; }
.status-dot.inactive { background: #9ca3af; }
.status-dot.synced   { background: #3b82f6; }
.status-dot.pending  { background: #eab308; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Progress Bar */
.progress-bar  { height: .5rem; border-radius: 9999px; overflow: hidden; background: #e5e7eb; }
.progress-fill { height: 100%; border-radius: 9999px; transition: width .5s; }

/* Float balance color coding */
.float-critical { color: #dc2626; font-weight: 600; }
.float-low      { color: #d97706; font-weight: 600; }
.float-ok       { color: #16a34a; font-weight: 600; }

/* Alert severity */
.alert-critical { border-left: 4px solid #ef4444; background: #fef2f2; }
.alert-warning  { border-left: 4px solid #f59e0b; background: #fffbeb; }
.alert-info     { border-left: 4px solid #3b82f6; background: #eff6ff; }

/* Print styles */
@media print {
  aside, header, footer, .no-print { display: none !important; }
  main { margin: 0 !important; padding: 0 !important; }
}

/* Responsive table */
@media (max-width: 768px) {
  .gf-table-responsive { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* Skeleton loader */
.skeleton { animation: pulse 2s cubic-bezier(.4,0,.6,1) infinite; background: #e5e7eb; border-radius: .375rem; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.5} }

/* Gold gradient text */
.text-gold-gradient {
  background: linear-gradient(135deg, #F0A500, #FFD700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
