/* SlipScan Core Styles - White Label */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #0F766E;
  --primary-dark: #0D5D56;
  --primary-light: #14B8A6;
  --accent: #F59E0B;
  --accent-dark: #D97706;
  --bg: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-hover: #F1F5F9;
  --text: #1E293B;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --border: #E2E8F0;
  --border-focus: #0F766E;
  --success: #059669;
  --danger: #DC2626;
  --warning: #D97706;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-lg: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --radius: 8px;
  --radius-lg: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 { font-weight: 700; color: var(--text); }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.375rem; }
h3 { font-size: 1.125rem; }
p { color: var(--text-muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border: none; border-radius: var(--radius);
  font-family: inherit; font-size: 0.875rem; font-weight: 600;
  cursor: pointer; transition: all 0.15s;
  text-decoration: none;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--primary-dark); }
.btn-secondary { background: var(--border); color: var(--text); }
.btn-secondary:hover:not(:disabled) { background: #CBD5E1; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #B91C1C; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover:not(:disabled) { background: var(--accent-dark); }
.btn-sm { padding: 6px 14px; font-size: 0.8125rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-icon { width: 36px; height: 36px; padding: 0; border-radius: 50%; }

/* Inputs */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-size: 0.8125rem; font-weight: 600;
  color: var(--text); margin-bottom: 6px;
}
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-family: inherit; font-size: 0.9375rem;
  background: var(--bg-card); color: var(--text);
  transition: border-color 0.15s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}
.form-textarea { resize: vertical; min-height: 80px; }

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
}

/* Status Badges */
.status-badge {
  display: inline-block; padding: 3px 10px;
  border-radius: 20px; font-size: 0.75rem; font-weight: 600;
  text-transform: capitalize;
}
.badge-draft { background: #F1F5F9; color: #64748B; }
.badge-submitted { background: #DBEAFE; color: #1D4ED8; }
.badge-approved { background: #D1FAE5; color: #059669; }
.badge-rejected { background: #FEE2E2; color: #DC2626; }
.badge-paid { background: #D1FAE5; color: #065F46; border: 1px solid #059669; }
.badge-cancelled { background: #F1F5F9; color: #94A3B8; }

/* Category Badges */
.category-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 0.75rem; font-weight: 500;
}
.cat-fuel { background: #DBEAFE; color: #1D4ED8; }
.cat-accommodation { background: #CCFBF1; color: #0F766E; }
.cat-food { background: #FEF3C7; color: #92400E; }
.cat-tollgates { background: #E9D5FF; color: #7C3AED; }
.cat-other { background: #F1F5F9; color: #64748B; }

/* Toast Notification */
.ss-toast {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(100px);
  padding: 12px 24px; border-radius: var(--radius); color: #fff;
  font-size: 0.875rem; font-weight: 500;
  z-index: 10000; opacity: 0; transition: all 0.3s;
  max-width: 90%; text-align: center;
}
.ss-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.ss-toast-info { background: var(--primary); }
.ss-toast-success { background: var(--success); }
.ss-toast-error { background: var(--danger); }
.ss-toast-warning { background: var(--warning); }

/* Modal */
.ss-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 9000; opacity: 0; transition: opacity 0.2s;
}
.ss-modal-overlay.show { opacity: 1; }
.ss-modal {
  background: var(--bg-card); border-radius: var(--radius-lg);
  padding: 24px; width: 90%; max-width: 420px;
  box-shadow: var(--shadow-lg);
}
.ss-modal h3 { margin-bottom: 12px; }
.ss-modal p { margin-bottom: 20px; font-size: 0.9375rem; }
.ss-modal-actions { display: flex; gap: 12px; justify-content: flex-end; }
.ss-modal-input {
  width: 100%; padding: 10px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius); font-family: inherit; font-size: 0.9375rem;
  margin-bottom: 16px; resize: vertical;
}

/* Utility */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.8125rem; }
.text-lg { font-size: 1.125rem; }
.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-1 { flex: 1; }
.hidden { display: none !important; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* Responsive */
@media (max-width: 768px) {
  .grid-2 { grid-template-columns: 1fr; }
  h1 { font-size: 1.375rem; }
}
