/* AsiaBerlin-inspired style for ABF Travel Cost Reporting */

:root {
  --ab-blue: #0057b8;
  --ab-red: #e60028;
  --ab-yellow: #ffd500;
  --ab-black: #222;
  --ab-bg: #fff;
  --ab-grey: #f5f6fa;
  --ab-border: #e0e0e0;
}

body {
  font-family: "Inter", "Open Sans", Arial, Helvetica, sans-serif;
  background: var(--ab-grey);
  color: var(--ab-black);
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 800;
  color: var(--ab-black);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.navbar {
  background: var(--ab-bg);
  border-bottom: 2px solid var(--ab-blue);
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
.navbar-brand {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--ab-blue);
  letter-spacing: 1px;
  text-decoration: none;
}
.navbar-nav {
  display: flex;
  gap: 2rem;
}
.nav-link {
  color: var(--ab-black);
  font-weight: 700;
  text-decoration: none;
  font-size: 1.1rem;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s;
}
.nav-link:hover,
.nav-link.active {
  color: var(--ab-blue);
}
.nav-link.active::after,
.nav-link:hover::after {
  content: "";
  display: block;
  height: 3px;
  background: var(--ab-blue);
  border-radius: 2px;
  width: 100%;
  position: absolute;
  left: 0;
  bottom: -2px;
}

.container {
  max-width: 1100px;
  margin: 2rem auto;
  background: var(--ab-bg);
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
  padding: 2.5rem 2rem;
}

.card,
.mb-4,
.card-header,
.card-body {
  background: var(--ab-bg) !important;
  border-radius: 16px !important;
  box-shadow: 0 2px 12px rgba(0, 87, 184, 0.07);
  border: 1px solid var(--ab-border) !important;
}

.table-wrapper {
  background: var(--ab-bg);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 87, 184, 0.07);
  padding: 0.5rem 0.5rem 0.5rem 0.5rem;
  margin-bottom: 2rem;
  overflow-x: auto;
}

.table {
  margin-bottom: 0;
  background: var(--ab-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 87, 184, 0.05);
}
.table th,
.table td {
  border: none;
  padding: 0.85rem 1rem;
  vertical-align: middle;
}
.table th {
  background: var(--ab-grey);
  color: var(--ab-blue);
  font-weight: 800;
  font-size: 1.05rem;
}
.table-striped tbody tr:nth-of-type(odd) {
  background: var(--ab-grey);
}

.btn,
.btn-primary {
  background: var(--ab-blue);
  color: #fff;
  border: none;
  border-radius: 24px;
  font-weight: 700;
  padding: 0.6rem 1.5rem;
  font-size: 1.1rem;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0, 87, 184, 0.08);
}
.btn:hover,
.btn:focus {
  background: var(--ab-black);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 87, 184, 0.13);
}
.btn-outline-secondary {
  background: #fff;
  color: var(--ab-blue);
  border: 2px solid var(--ab-blue);
}
.btn-outline-secondary:hover {
  background: var(--ab-blue);
  color: #fff;
}

.btn-danger {
  background: var(--ab-red) !important;
  color: #fff !important;
  border: none;
  border-radius: 24px;
  font-weight: 700;
  padding: 0.6rem 1.5rem;
  font-size: 1.1rem;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(230, 0, 40, 0.08);
}
.btn-danger:hover,
.btn-danger:focus {
  background: #b8001c !important;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(230, 0, 40, 0.13);
}

.form-label {
  font-weight: 700;
  color: var(--ab-blue);
}
.form-control,
.form-select {
  border-radius: 12px;
  border: 1.5px solid var(--ab-border);
  padding: 0.6rem 1rem;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--ab-blue);
  box-shadow: 0 0 0 2px rgba(0, 87, 184, 0.13);
}

.badge.bg-warning {
  background: var(--ab-red) !important;
  color: #fff !important;
  font-weight: 700;
}
.badge.bg-success {
  background: #00b894 !important;
  color: #fff !important;
  font-weight: 700;
}

.sort-arrow {
  font-size: 1.1em;
  margin-left: 0.3em;
  color: var(--ab-blue);
}

hr {
  border: none;
  border-top: 2px solid var(--ab-blue);
  margin: 2rem 0;
}

footer {
  background: var(--ab-bg);
  border-top: 2px solid var(--ab-blue);
  color: var(--ab-black);
  text-align: center;
  padding: 1.5rem 0 0.5rem 0;
  margin-top: 3rem;
  font-size: 1.05rem;
}

::-webkit-scrollbar {
  width: 10px;
  background: var(--ab-grey);
}
::-webkit-scrollbar-thumb {
  background: var(--ab-blue);
  border-radius: 8px;
}

/* Responsive */
@media (max-width: 700px) {
  .container {
    padding: 1rem 0.5rem;
  }
  .navbar {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0.5rem;
  }
  .navbar-nav {
    gap: 1rem;
  }
}
