/* global.css — Shared styles */
/* Maersk Vietnam | Priority Routing Tool */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --maersk-blue: #00243D;
  --maersk-light-blue: #0073AB;
  --critical: #ef4444;
  --critical-bg: #fef2f2;
  --priority: #f59e0b;
  --priority-bg: #fffbeb;
  --standard: #22c55e;
  --standard-bg: #f0fdf4;
  --text-primary: #111827;
  --text-secondary: #6b7280;
  --border: #e5e7eb;
  --bg-page: #f9fafb;
  --bg-white: #ffffff;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.1);
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-size: 14px;
}

/* ── NAVBAR ── */
.navbar {
  background-color: var(--maersk-blue);
  padding: 0 32px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.navbar-brand span {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.navbar-brand .divider {
  color: rgba(255,255,255,0.3);
  font-weight: 300;
}

.navbar-brand .subtitle {
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  font-weight: 400;
}

.navbar-links {
  display: flex;
  gap: 4px;
}

.navbar-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s;
}

.navbar-links a:hover {
  background: rgba(255,255,255,0.1);
  color: #ffffff;
}

.navbar-links a.active {
  background: var(--maersk-light-blue);
  color: #ffffff;
}

/* ── PAGE LAYOUT ── */
.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
}

.page-header {
  margin-bottom: 28px;
}

.page-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.page-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ── CARDS ── */
.card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

/* ── LANE BADGES ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.badge-critical {
  background: var(--critical-bg);
  color: var(--critical);
  border: 1px solid #fca5a5;
}

.badge-priority {
  background: var(--priority-bg);
  color: #b45309;
  border: 1px solid #fcd34d;
}

.badge-standard {
  background: var(--standard-bg);
  color: #15803d;
  border: 1px solid #86efac;
}

/* ── ROW HIGHLIGHT ── */
.row-critical { background-color: #fff5f5; }
.row-priority { background-color: #fffdf0; }
.row-standard { background-color: #f6fff9; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
}

.btn-primary {
  background: var(--maersk-light-blue);
  color: white;
}

.btn-primary:hover {
  background: #005f8e;
}

.btn-secondary {
  background: var(--bg-white);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-page);
}

/* ── FORM ELEMENTS ── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}

.form-select,
.form-input {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
  background: var(--bg-white);
  outline: none;
  transition: border-color 0.15s;
}

.form-select:focus,
.form-input:focus {
  border-color: var(--maersk-light-blue);
}

/* ── TABLE ── */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

thead {
  background: var(--bg-page);
}

th {
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
}

tr:last-child td {
  border-bottom: none;
}

/* ── UTILITY ── */
.text-muted { color: var(--text-secondary); }
.text-small { font-size: 12px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }