/* ============================================================
   COLLEGE IT INVENTORY - Custom Styles
   ============================================================ */

:root {
  --primary: #0d6efd;
  --sidebar-width: 240px;
}

body {
  background-color: #f0f2f5;
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 14px;
}

/* ---- CARDS ---- */
.card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.card-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  border-radius: 12px 12px 0 0 !important;
  font-weight: 600;
  padding: 14px 18px;
}

/* ---- STAT CARDS ---- */
.stat-card {
  border-radius: 12px;
  padding: 20px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.stat-card .stat-icon {
  font-size: 48px;
  opacity: 0.2;
  position: absolute;
  right: 16px;
  bottom: 8px;
}
.stat-card .stat-value {
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}
.stat-card .stat-label {
  font-size: 13px;
  opacity: 0.85;
  margin-top: 4px;
}
.stat-blue   { background: linear-gradient(135deg, #0d6efd, #0a58ca); }
.stat-green  { background: linear-gradient(135deg, #198754, #146c43); }
.stat-red    { background: linear-gradient(135deg, #dc3545, #b02a37); }
.stat-orange { background: linear-gradient(135deg, #fd7e14, #d56600); }
.stat-purple { background: linear-gradient(135deg, #6f42c1, #59359a); }
.stat-teal   { background: linear-gradient(135deg, #0dcaf0, #0aa2c0); }
.stat-dark   { background: linear-gradient(135deg, #343a40, #212529); }
.stat-pink   { background: linear-gradient(135deg, #d63384, #b02277); }

/* ---- TABLE ---- */
.table th {
  background: #f8f9fa;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #6c757d;
  border-bottom: 2px solid #dee2e6;
}
.table td { vertical-align: middle; }
.table-hover tbody tr:hover { background: #f0f7ff; }

/* ---- BADGES ---- */
.badge { font-weight: 500; letter-spacing: .3px; }

/* ---- NAVBAR ---- */
.navbar-brand { font-size: 16px; }

/* ---- APPROVAL TIMELINE ---- */
.approval-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}
.approval-timeline::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #dee2e6;
}
.approval-timeline li {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  position: relative;
}
.approval-timeline .step-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  z-index: 1;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.step-pending  { background: #fff3cd; color: #856404; }
.step-approved { background: #d1e7dd; color: #0f5132; }
.step-rejected { background: #f8d7da; color: #842029; }

/* ---- FORM STYLING ---- */
.form-label { font-weight: 500; color: #495057; font-size: 13px; }
.form-control, .form-select {
  border-radius: 8px;
  border-color: #ced4da;
  font-size: 14px;
}
.form-control:focus, .form-select:focus {
  border-color: #86b7fe;
  box-shadow: 0 0 0 .2rem rgba(13,110,253,.15);
}

/* ---- SECTION HEADING ---- */
.section-heading {
  font-size: 18px;
  font-weight: 700;
  color: #212529;
  margin-bottom: 4px;
}
.section-sub {
  font-size: 13px;
  color: #6c757d;
}

/* ---- COMPUTER LAB SECTION ---- */
.lab-card {
  border: 2px solid #0d6efd;
  border-radius: 12px;
}
.lab-card .card-header {
  background: linear-gradient(135deg, #0d6efd, #0a58ca);
  color: #fff;
  border-radius: 10px 10px 0 0 !important;
}

/* ---- STATUS INDICATOR DOTS ---- */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px;
}
.dot-working  { background: #198754; }
.dot-damaged  { background: #dc3545; }
.dot-repair   { background: #ffc107; }
.dot-disposed { background: #6c757d; }

/* ---- PAGE TITLE BAR ---- */
.page-title-bar {
  background: #fff;
  border-radius: 12px;
  padding: 14px 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.page-title-bar h4 { margin: 0; font-weight: 700; font-size: 18px; }
.breadcrumb { margin: 0; font-size: 12px; }

/* ---- PRINT ---- */
@media print {
  .navbar, footer, .btn, .no-print { display: none !important; }
  .card { box-shadow: none !important; border: 1px solid #dee2e6 !important; }
  body { background: #fff !important; }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 576px) {
  .stat-value { font-size: 24px; }
  .page-title-bar { padding: 10px 14px; }
}

/* ---- DATATABLES custom ---- */
div.dataTables_wrapper div.dataTables_filter input {
  border-radius: 6px;
  border: 1px solid #ced4da;
  padding: 4px 8px;
}
div.dataTables_wrapper div.dataTables_length select {
  border-radius: 6px;
}
.dt-buttons .btn { border-radius: 6px !important; font-size: 12px; margin-right: 4px; }

/* ---- Quick summary pill ---- */
.summary-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
}
