/* style.css */
:root {
  /* Header / primary buttons */
  --primary-color:      #193399;  /* METCALFE FARMS blue */

  /* Text on primary backgrounds */
  --secondary-color:    #FFFFFF;  

  /* Delivered badge (green) */
  --badge-delivered-bg:     #E8F3EA;
  --badge-delivered-border: #34A853;

  /* Shipped badge (amber) */
  --badge-shipped-bg:     #FEFAE0;
  --badge-shipped-border: #F2C94C;

  /* Pending badge (gray/black) */
  --badge-pending-bg:     #F3F3F3;
  --badge-pending-border: #000000;

  /* Canceled badge (red) */
  --badge-canceled-bg:     #FDEDEC;
  --badge-canceled-border: #EB5757;
}


/* Fade-in animation for the card */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* 1) Base styles for all pages */
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #f8f9fa;
  height: auto;       /* allow normal page flow */
  display: block;
}
.form-login {
  max-width: 360px;    /* slightly narrower */
  width: 100%;
  padding: 2rem;
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  animation: fadeInUp 0.6s ease-out both;
}

/* Logo above the form */
.form-login .logo {
  display: block;
  margin: 0 auto 1.5rem;
  width: 180px;
  height: 80px;
  background: url('/images/unnamed.jpg') no-repeat center/contain;
}

/* Button hover lift */
.btn-primary {
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}
/* Login-page background & centering */
body.login-page {
  background: linear-gradient(135deg, #193399 0%, #1a3ba8 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Ensure html/body fill the viewport */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

/* Only the login page gets the gradient + flex centering */
body.login-page {
  background: linear-gradient(135deg, #193399 0%, #1a3ba8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Reset any .form-login margins on login page */
body.login-page .form-login {
  margin: 0;           /* remove top/auto margins */
  width: 360px;        /* fixed width */
}
/* Improve card appearance */
.card {
  border: none;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  margin-bottom: 1.5rem;
}

/* Card header */
.card-header {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  font-weight: 600;
  border-bottom: none;
}

/* Summary cards row */
.dashboard-summary .card {
  text-align: center;
  padding: 1.5rem;
}

.dashboard-summary .card h5 {
  color: var(--primary-color);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.dashboard-summary .card p {
  font-size: 2rem;
  margin: 0;
  font-weight: 700;
}

/* Table styling */
.table {
  border-collapse: separate;
  border-spacing: 0;
}
.table thead th {
  border-bottom: 2px solid #e9ecef;
}
.table tbody tr {
  background-color: #fff;
  transition: background-color .2s;
}
.table tbody tr:nth-of-type(odd) {
  background-color: #f8f9fa;
}
.table tbody tr:hover {
  background-color: #f1f3f5;
}

/* Status badges: stronger contrast */
.badge {
  font-size: .85em;
  padding: .4em .6em;
  text-transform: uppercase;
  letter-spacing: .02em;
}

/* Link on reference cell */
.table tbody td a {
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: none;
}
.table tbody td a:hover {
  text-decoration: underline;
}

/* Optional: dashboard container padding */
main.container {
  padding-top: 2rem;
  padding-bottom: 2rem;
}
/* Navbar logo */
.navbar-brand .navbar-logo {
  max-height: 100px;  /* or whatever fits your header */
  width: auto;
}