/* ============================================================
   Coubling Inventory System — Custom Styles
   Waha Oil Company
   ============================================================ */

:root {
  --waha-navy: #0d2137;
  --waha-navy-dark: #091929;
  --waha-gold: #c9a227;
  --waha-gold-light: #f0c93a;
}

/* ---- Body ---- */
body {
  background-color: #f5f7fa;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* ---- Navbar ---- */
.waha-navbar {
  background-color: var(--waha-navy) !important;
  border-bottom: 3px solid var(--waha-gold);
}

.waha-navbar .navbar-brand:hover {
  opacity: 0.9;
}

.waha-navbar .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: background-color 0.2s, color 0.2s;
}

.waha-navbar .nav-link:hover,
.waha-navbar .nav-link.active {
  background-color: rgba(255, 255, 255, 0.12);
  color: #fff !important;
}

/* ---- Card header ---- */
.waha-card-header {
  background-color: var(--waha-navy);
}

/* ---- Dashboard stat cards ---- */
.stat-card {
  border-radius: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1) !important;
}

.stat-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---- Low stock row highlight ---- */
.low-stock-row {
  background-color: #fff8e1 !important;
}

/* ---- General card ---- */
.card {
  border-radius: 10px;
}

.card-header {
  border-radius: 10px 10px 0 0 !important;
}

/* ---- Table ---- */
.table th {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---- Badges ---- */
.badge {
  font-size: 0.75rem;
  padding: 0.4em 0.75em;
}

/* ---- Buttons ---- */
.btn-warning {
  color: var(--waha-navy);
  font-weight: 600;
}

.btn-warning:hover {
  background-color: var(--waha-gold-light);
  color: var(--waha-navy);
}

/* ---- Footer ---- */
.waha-footer {
  background-color: #fff;
  border-top: 1px solid #e9ecef;
}

/* ---- Pagination ---- */
.page-link {
  color: var(--waha-navy);
}

.page-item.active .page-link {
  background-color: var(--waha-navy);
  border-color: var(--waha-navy);
}

/* ---- Responsive table — stack on small screens ---- */
@media (max-width: 576px) {
  .table-responsive table,
  .table-responsive thead,
  .table-responsive tbody,
  .table-responsive th,
  .table-responsive td,
  .table-responsive tr {
    display: block;
  }

  .table-responsive thead tr {
    display: none;
  }

  .table-responsive td {
    padding: 0.4rem 1rem;
    text-align: right !important;
    position: relative;
    padding-left: 50%;
  }

  .table-responsive td::before {
    content: attr(data-label);
    position: absolute;
    left: 1rem;
    font-weight: 600;
    color: #6c757d;
    font-size: 0.8rem;
    text-align: left;
  }

  .table-responsive tr {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
    background: #fff;
  }
}

/* ---- Form controls ---- */
.form-control:focus,
.form-select:focus {
  border-color: var(--waha-gold);
  box-shadow: 0 0 0 0.2rem rgba(201, 162, 39, 0.25);
}

/* ---- Alerts ---- */
.alert {
  border-radius: 8px;
}
