/* ================================
   BASE CSS – GLOBAL FOUNDATION
   Used across entire SaaS
================================ */

/* Reset & defaults */
* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #f9fafb;
  color: #111827;
}

/* Links */
a {
  text-decoration: none;
  color: inherit;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background-color: #4f46e5;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #4338ca;
}

.btn-danger {
  background-color: #dc2626;
  color: #ffffff;
}

.btn-danger:hover {
  background-color: #b91c1c;
}

/* Inputs */
.input {
  width: 100%;
  padding: 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.input:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.15);
}

/* Cards */
.card {
  background: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

/* Page titles */
.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.page-subtitle {
  font-size: 0.875rem;
  color: #6b7280;
}

/* Utility helpers */
.text-muted {
  color: #6b7280;
}

.text-danger {
  color: #dc2626;
}

.text-success {
  color: #16a34a;
}

/* Tables (used later globally) */
.table {
  width: 100%;
  border-collapse: collapse;
}

.table th {
  background-color: #f3f4f6;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #6b7280;
  text-align: left;
  padding: 0.75rem;
}

.table td {
  padding: 0.75rem;
  border-top: 1px solid #e5e7eb;
  font-size: 0.875rem;
}
