/* --- Modern ClianTech Dashboard Styling --- */
body {
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  background: #f5f6fa;
  color: #2b2b2b;
  margin: 0;
  padding: 0;
}

.main-content {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.page-header h1 {
  font-size: 1.8rem;
  color: #373a76;
  margin: 0;
}
.form-card {
  background: #fff;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  font-weight: 600;
  color: #373a76;
  display: block;
  margin-bottom: 6px;
}

.form-control, .form-select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
}

.form-control:focus, .form-select:focus {
  border-color: #373a76;
  outline: none;
  box-shadow: 0 0 0 2px rgba(55,58,118,0.2);
}

.form-actions {
  margin-top: 25px;
  display: flex;
  gap: 10px;
}

.btn-secondary {
  background: #e9e9e9;
  color: #333;
}
.btn-secondary:hover {
  background: #dcdcdc;
}

.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: #373a76;
  color: #fff;
}
.btn-primary:hover {
  background: #ff7400;
}

.btn-outline-primary {
  border: 1px solid #373a76;
  color: #373a76;
  padding: 6px 12px;
}
.btn-outline-primary:hover {
  background: #373a76;
  color: #fff;
}

.btn-outline-danger {
  border: 1px solid #d9534f;
  color: #d9534f;
  padding: 6px 12px;
}
.btn-outline-danger:hover {
  background: #d9534f;
  color: #fff;
}

.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 20px;
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th, .table td {
  padding: 12px 15px;
  border-bottom: 1px solid #e5e5e5;
  text-align: left;
}

.table th {
  background: #f0f1f6;
  color: #373a76;
  font-weight: 600;
  font-size: 0.9rem;
}

.table tr:hover {
  background-color: #f8f9fd;
}

.badge {
  padding: 5px 10px;
  border-radius: 6px;
  color: #fff;
  font-size: 0.8rem;
}

.badge-admin { background: #373a76; }
.badge-finance { background: #ff7400; }
.badge-staff { background: #28a745; }

.text-center { text-align: center; }
.text-muted { color: #888; font-size: 0.9rem; }

.actions { display: flex; gap: 5px; }

/* === Responsive Multi-Column Form Layout (ClianTech Internal) === */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px 25px;
  align-items: start;
}

.form-section {
  margin-bottom: 40px;
}

.form-section h2,
.form-section h6,
.section-title {
  font-size: 0.95rem;
  text-transform: uppercase;
  color: #373a76;
  font-weight: 600;
  margin-bottom: 15px;
}

.form-card {
  max-width: 1200px;
  margin: 0 auto;
  padding: 25px 30px;
}

@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* ============ GLOBAL LAYOUT FIXES ============ */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* ============ METRICS GRID FIX ============ */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-bottom: 25px;
}
.metric-card {
  background: #fff;
  border-radius: 14px;
  padding: 16px 10px;
  text-align: center;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
  transition: all 0.25s ease;
  height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(47,48,99,0.15);
}
.metric-card h6 {
  font-size: 12px;
  font-weight: 600;
  color: #555;
  margin-bottom: 4px;
}
.metric-card h2 {
  font-size: 20px;
  font-weight: 700;
  color: #111;
  margin: 0;
}
.text-blue { color: #2f3063; }
.text-green { color: #2e8b57; }
