/*
 * TSVV FLOWGEN+ ERP — Core Styles
 * Theme: Sunrise (Orange/Red gradient accent)
 */

 :root {
  --accent-light: #ffedd5; /* orange-100 */
  --accent: #f97316;       /* orange-500 */
  --accent-dark: #ea580c;  /* orange-600 */
  --danger: #ef4444;       /* red-500 */
  --success: #22c55e;      /* green-500 */
  
  --font-base: 14px;
  --font-h1: 24px;
  --font-h2: 20px;
  --font-h3: 18px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: var(--font-base);
  color: #374151; /* gray-700 */
  background-color: #f3f4f6; /* gray-100 */
}

h1 { font-size: var(--font-h1); font-weight: 700; color: #111827; }
h2 { font-size: var(--font-h2); font-weight: 600; color: #1f2937; }
h3 { font-size: var(--font-h3); font-weight: 500; color: #374151; }

/* Sidebar */
.sidebar {
  background-color: white;
  border-right: 1px solid #e5e7eb;
}
.sidebar-nav-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: #4b5563;
  border-radius: 0.375rem;
  transition: all 0.2s;
}
.sidebar-nav-link:hover {
  background-color: var(--accent-light);
  color: var(--accent-dark);
}
.sidebar-nav-link.active {
  background-color: var(--accent-light);
  color: var(--accent-dark);
  font-weight: 600;
}

/* Cards & Containers */
.card {
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

/* Forms */
.form-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 14px;
}
.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-primary {
  background-color: var(--accent);
  color: white;
}
.btn-primary:hover {
  background-color: var(--accent-dark);
}
.btn-secondary {
  background-color: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
}
.btn-secondary:hover {
  background-color: #e5e7eb;
}

/* Tables */
.table-wrapper {
  overflow-x: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th {
  background-color: #f9fafb;
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
  color: #374151;
  border-bottom: 1px solid #e5e7eb;
}
.table td {
  padding: 0.75rem;
  border-bottom: 1px solid #e5e7eb;
}

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}
.badge-success { background-color: #dcfce7; color: #166534; }
.badge-warning { background-color: #fef9c3; color: #854d0e; }
.badge-danger { background-color: #fee2e2; color: #991b1b; }
.badge-info { background-color: #e0f2fe; color: #075985; }

/* Modals & Overlays */
.overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

/* Print Styles */
@media print {
  .no-print { display: none !important; }
  body { background-color: white; font-size: 12pt; }
  .card { box-shadow: none; border: none; padding: 0; }
}
