/* ============================================================
   City of Johannesburg – Public Works Maintenance System
   Aesthetic: Municipal authority meets modern civic tech
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800&family=Barlow:wght@300;400;500;600&display=swap');

:root {
  --gold: #D4A017;
  --gold-light: #F0C040;
  --gold-dim: #8C6A10;
  --navy: #0B1F3A;
  --navy-mid: #142947;
  --navy-light: #1E3A5F;
  --slate: #2C3E50;
  --sky: #1A7BBF;
  --sky-light: #3498DB;
  --green: #1A8A4A;
  --green-light: #27AE60;
  --red: #C0392B;
  --orange: #E67E22;
  --white: #FFFFFF;
  --off-white: #F4F6F9;
  --muted: #8395A7;
  --border: rgba(212, 160, 23, 0.25);

  --font-head: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;

  --radius: 6px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  --transition: 0.22s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--off-white);
  color: var(--slate);
  min-height: 100vh;
}

/* ── UTILITY ───────────────────────────────────────────────── */
.hidden {
  display: none !important;
}

.text-gold {
  color: var(--gold);
}

.text-muted {
  color: var(--muted);
  font-size: 0.85rem;
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-pending {
  background: #FEF3CD;
  color: #9A6400;
}

.badge-assigned {
  background: #D1ECF1;
  color: #0C5460;
}

.badge-inprogress {
  background: #CCE5FF;
  color: #004085;
}

.badge-completed {
  background: #D4EDDA;
  color: #155724;
}

/* ── HOME LANDING PAGE (FULL IMAGE BACKGROUND) ─────────────── */
#home-screen {
  position: relative;
  min-height: 100vh;
  background: url('jozi.png') no-repeat center center fixed;
  background-size: cover;
  display: flex;
  flex-direction: column;
}

/* Add this to ensure it shows correctly when .hidden is removed */
#home-screen:not(.hidden) {
  display: flex !important;
}

/* Dark layout shading overlay over the background picture to maintain text contrast */
.home-dark-overlay {
  background: linear-gradient(to bottom, rgba(11, 31, 58, 0.88) 0%, rgba(20, 41, 71, 0.92) 100%);
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.home-navbar {
  background: rgba(11, 31, 58, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--gold);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 75px;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-box {
  width: 38px;
  height: 38px;
  background: var(--gold);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.logo-title-top {
  font-family: var(--font-head);
  color: var(--gold);
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.logo-title-sub {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
}

.navbar-actions {
  display: flex;
  gap: 0.75rem;
}

.btn-outline-light {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: white;
  cursor: pointer;
  transition: var(--transition);
  padding: 8px 16px;
  border-radius: var(--radius);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: white;
}

.hero-section {
  padding: 4.5rem 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.hero-content {
  max-width: 800px;
}

.hero-content h1 {
  font-family: var(--font-head);
  font-size: 3.2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 1.2rem;
  color: var(--gold);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2.2rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.hero-btn-group {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.track-section {
  padding: 2rem;
  display: flex;
  justify-content: center;
}

.track-card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius);
  padding: 2rem;
  width: 100%;
  max-width: 650px;
  text-align: center;
  box-shadow: var(--shadow);
}

.track-card h3 {
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.track-input-container {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.testimonials-section {
  padding: 4rem 2rem;
  text-align: center;
}

.testimonials-section h2 {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2.5rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.95);
  padding: 2rem;
  border-radius: var(--radius);
  text-align: left;
  box-shadow: var(--shadow);
  border-top: 5px solid var(--gold);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.quote-mark {
  font-size: 3rem;
  line-height: 1;
  font-family: serif;
  color: var(--gold);
  margin-top: -0.5rem;
  height: 25px;
}

.testimonial-card p {
  font-style: italic;
  color: var(--slate);
  font-size: 0.98rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
  font-weight: 500;
}

.citizen-profile {
  border-top: 1px solid #E2E8F0;
  padding-top: 0.75rem;
  font-size: 0.88rem;
  color: #4A5568;
}

.home-footer {
  background: rgba(11, 31, 58, 0.85);
  color: rgba(255, 255, 255, 0.6);
  padding: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: auto;
  backdrop-filter: blur(4px);
}

/* ── TOP NAV / HEADER ──────────────────────────────────────── */
.top-bar {
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.top-bar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.top-bar-logo img {
  height: 40px;
}

.top-bar-logo-text {
  line-height: 1.15;
}

.top-bar-logo-text .city {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.top-bar-logo-text .dept {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.top-bar .user-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--navy-light);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 6px 14px 6px 8px;
  color: var(--white);
  font-size: 0.82rem;
  cursor: pointer;
  transition: background var(--transition);
}

.top-bar .user-pill:hover {
  background: var(--navy-mid);
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-weight: 800;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
}

.btn-logout {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  padding: 6px 14px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
}

.btn-logout:hover {
  border-color: var(--red);
  color: var(--red);
}

/* ── NOTIFICATION BELL ─────────────────────────────────────── */
.notif-bell {
  position: relative;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.2rem;
  transition: color var(--transition);
}

.notif-bell:hover {
  color: var(--gold);
}

.notif-dot {
  position: absolute;
  top: -2px;
  right: -3px;
  width: 9px;
  height: 9px;
  background: var(--red);
  border-radius: 50%;
  border: 2px solid var(--navy);
}

/* ── SIDEBAR ───────────────────────────────────────────────── */
.layout {
  display: flex;
  min-height: calc(100vh - 64px);
}

.sidebar {
  width: 230px;
  background: var(--navy-mid);
  border-right: 1px solid var(--border);
  padding: 1.5rem 0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
}

.sidebar-section-label {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  padding: 12px 20px 4px;
  font-weight: 700;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--transition);
  border-left: 3px solid transparent;
  cursor: pointer;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

.nav-link.active {
  background: rgba(212, 160, 23, 0.12);
  color: var(--gold);
  border-left-color: var(--gold);
}

.nav-link .icon {
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

.nav-badge {
  margin-left: auto;
  background: var(--red);
  color: white;
  border-radius: 50px;
  padding: 1px 7px;
  font-size: 0.68rem;
  font-weight: 700;
}

/* ── MAIN CONTENT ──────────────────────────────────────────── */
.main {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
}

.page-title {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.page-subtitle {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 1.75rem;
}

.user-id-badge {
  display: inline-block;
  background: var(--gold-light);
  color: var(--navy);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  margin-left: 8px;
  vertical-align: middle;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.75rem;
}

/* ── STAT CARDS ────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  border: 1px solid #E0E6EE;
  border-left: 4px solid var(--gold);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform var(--transition), box-shadow var(--transition);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.stat-card.blue {
  border-left-color: var(--sky);
}

.stat-card.green {
  border-left-color: var(--green);
}

.stat-card.red {
  border-left-color: var(--red);
}

.stat-card.orange {
  border-left-color: var(--orange);
}

.stat-number {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 600;
}

/* ── CARD / PANEL ──────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid #E0E6EE;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-bottom: 1.5rem;
}

.card-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #EFF2F5;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.card-body {
  padding: 1.5rem;
}

/* ── FORMS & INPUTS ────────────────────────────────────────── */
.form-group {
  margin-bottom: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 0.25rem;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--slate);
  background-color: var(--white);
  border: 1px solid #CCD4DE;
  border-radius: var(--radius);
  font-family: var(--font-body);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(26, 123, 191, 0.15);
}

textarea.form-control {
  resize: vertical;
}

/* ── BUTTONS ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  padding: 10px 20px;
  border-radius: var(--radius);
  transition: all var(--transition);
  border: 1px solid transparent;
}

.btn-lg {
  padding: 12px 26px;
  font-size: 0.95rem;
}

.btn-sm {
  padding: 5px 12px;
  font-size: 0.75rem;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-primary {
  background-color: var(--navy);
  color: white;
}

.btn-primary:hover {
  background-color: var(--navy-light);
}

.btn-gold {
  background-color: var(--gold);
  color: var(--navy);
}

.btn-gold:hover {
  background-color: var(--gold-light);
}

.btn-outline {
  background-color: transparent;
  border-color: #CCD4DE;
  color: var(--slate);
}

.btn-outline:hover {
  background-color: var(--off-white);
  border-color: var(--muted);
}

.btn-danger {
  background-color: var(--red);
  color: white;
}

.btn-danger:hover {
  background-color: #A93226;
}

/* ── LOGIN & SIGNUP PAGES ──────────────────────────────────── */
.login-page {
  display: flex;
  min-height: 100vh;
  background: var(--off-white);
}

.login-left {
  width: 40%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  border-right: 4px solid var(--gold);
  color: white;
}

.login-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(212, 160, 23, 0.15) 1px, transparent 0);
  background-size: 24px 24px;
  opacity: 0.4;
}

.login-right {
  width: 60%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}

.login-form-box {
  width: 100%;
  max-width: 460px;
  background: var(--white);
  border: 1px solid #E0E6EE;
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.login-header {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--navy);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
  letter-spacing: 0.02em;
}

.city-name {
  font-family: var(--font-head);
  font-size: 3.2rem;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.95;
  color: var(--white);
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}

.city-name span {
  display: block;
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--gold);
  text-transform: none;
  letter-spacing: 0;
  margin-top: 8px;
}

.login-divider {
  width: 60px;
  height: 4px;
  background: var(--gold);
  margin: 2rem 0;
}

.tagline {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.6;
  font-weight: 300;
}

.login-footer-links {
  text-align: center;
  margin-top: 1.75rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.login-footer-links a {
  color: var(--sky);
  text-decoration: none;
  font-weight: 600;
}

.login-footer-links a:hover {
  text-decoration: underline;
}

/* ── TABLES ────────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background: var(--white);
}

th {
  background: #F8FAFC;
  padding: 12px 18px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--slate);
  letter-spacing: 0.05em;
  border-bottom: 2px solid #E6EDF5;
}

td {
  padding: 14px 18px;
  font-size: 0.88rem;
  color: var(--slate);
  border-bottom: 1px solid #EFF2F5;
  vertical-align: middle;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background-color: #F8FAFC;
}

/* ── FILE DROP ZONE ────────────────────────────────────────── */
.file-drop {
  border: 2px dashed #CCD4DE;
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
  cursor: pointer;
  transition: all var(--transition);
  background: #F8FAFC;
}

.file-drop:hover {
  border-color: var(--gold);
  background: rgba(212, 160, 23, 0.03);
  color: var(--navy);
}

.file-drop .icon {
  display: block;
  font-size: 1.75rem;
  margin-bottom: 6px;
}

/* ── TICKET CARD (citizen view) ────────────────────────────── */
.ticket-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ticket-item {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid #E0E6EE;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
}

.ticket-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateX(3px);
}

.ticket-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.ticket-icon.water {
  background: #EBF5FB;
}

.ticket-icon.road {
  background: #FEF5E7;
}

.ticket-icon.electric {
  background: #FEF9E7;
}

.ticket-icon.other {
  background: #F2F4F4;
}

.ticket-info {
  flex: 1;
}

.ticket-title {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.ticket-meta {
  font-size: 0.78rem;
  color: var(--muted);
}

.ticket-right {
  text-align: right;
  flex-shrink: 0;
}

/* ── MAP AREA AREA ─────────────────────────────────────────── */
.map-area {
  height: 260px;
  background: #112233;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8);
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 0);
  background-size: 16px 16px;
}

.map-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2), 0 0 12px currentColor;
  cursor: pointer;
  animation: pulseDot 2s infinite alternate;
}

.map-dot.red {
  color: var(--red);
  background: var(--red);
}

.map-dot.orange {
  color: var(--orange);
  background: var(--orange);
}

.map-dot.green {
  color: var(--green);
  background: var(--green);
}

@keyframes pulseDot {
  from {
    transform: scale(1);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2), 0 0 6px currentColor;
  }

  to {
    transform: scale(1.2);
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0), 0 0 16px currentColor;
  }
}

/* ── PRIORITY DOT INDICATORS ───────────────────────────────── */
.priority {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: capitalize;
}

.priority-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.priority.high {
  color: var(--red);
}

.priority.high .priority-dot {
  background: var(--red);
}

.priority.medium {
  color: var(--orange);
}

.priority.medium .priority-dot {
  background: var(--orange);
}

.priority.low {
  color: var(--muted);
}

.priority.low .priority-dot {
  background: var(--muted);
}

/* ── TIMELINE STEPS ────────────────────────────────────────── */
.steps {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  background: var(--white);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid #E0E6EE;
}

.step {
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #EFF2F5;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.step.active .step-circle {
  background: var(--navy);
  color: white;
}

.step.done .step-circle {
  background: var(--green);
  color: white;
}

.step-label {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}

.step.active .step-label {
  color: var(--navy);
}

.step-line {
  flex: 1;
  height: 2px;
  background: #E0E6EE;
}

.step.done .step-line {
  background: var(--green);
}

/* ── MODAL ─────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 40, 0.7);
  backdrop-filter: blur(3px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal {
  background: white;
  border-radius: 10px;
  width: 100%;
  max-width: 900px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.modal.large {
  max-width: 900px;
}

.modal-header {
  background: var(--navy);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.modal-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.2rem;
  cursor: pointer;
  transition: color var(--transition);
}

.modal-close:hover {
  color: white;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid #EFF2F5;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.ticket-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.ticket-image-card {
  background: #F8FAFC;
  padding: 0.85rem;
  border-radius: 10px;
  text-align: center;
}

.ticket-image-card .ticket-image-label {
  margin-bottom: 0.65rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
}

.ticket-image-card img {
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.ticket-image-card img+.ticket-image-label {
  margin-top: 0.5rem;
}

.ticket-image-card p {
  margin: 0;
}


/* ── ALERT / MESSAGE BOXES ─────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.87rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 1rem;
}

.alert-success {
  background: #D4EDDA;
  color: #155724;
  border-left: 4px solid var(--green);
}

.alert-danger {
  background: #F8D7DA;
  color: #721C24;
  border-left: 4px solid var(--red);
}

/* ── TOAST ─────────────────────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: var(--navy);
  color: white;
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  border-left: 4px solid var(--gold);
  box-shadow: var(--shadow);
  animation: slideInToast 0.3s ease;
  min-width: 260px;
}

.toast.success {
  border-left-color: var(--green);
}

.toast.error {
  border-left-color: var(--red);
}

@keyframes slideInToast {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .sidebar {
    display: none;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .login-left {
    display: none;
  }

  .login-right {
    width: 100%;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.page {
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.back-home-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: 2rem;
  padding: 8px 0;
  cursor: pointer;
  position: relative;
  z-index: 10;
}

.back-home-link:hover {
  color: var(--gold-light);
  border-bottom-color: var(--gold-light);
}

/* ── REPORTS PAGE ──────────────────────────────────────────── */
.report-summary-strip {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.report-summary-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid #E0E6EE;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.report-summary-card.open   { border-left: 5px solid var(--gold); }
.report-summary-card.closed { border-left: 5px solid var(--green); }
.report-summary-card.total  { border-left: 5px solid var(--sky); }

.rsc-number {
  font-family: var(--font-head);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}

.rsc-label {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--navy);
  margin-top: 0.25rem;
}

.rsc-sub {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.2rem;
  margin-bottom: 0.75rem;
}

.rsc-pct-bar {
  height: 6px;
  background: #EFF2F5;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 0.35rem;
}

.rsc-pct-bar div {
  height: 100%;
  border-radius: 99px;
  transition: width 0.6s ease;
}

.rsc-pct-label {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
}

.report-charts-row {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

/* Horizontal bar chart */
.report-bar-chart {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.report-bar-row {
  display: grid;
  grid-template-columns: 140px 1fr 90px;
  align-items: center;
  gap: 0.75rem;
}

.report-bar-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--slate);
}

.report-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.report-bar-track {
  height: 28px;
  background: #F4F6F9;
  border-radius: 4px;
  overflow: hidden;
}

.report-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
  min-width: 4px;
}

.report-bar-count {
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 20px;
  white-space: nowrap;
}

/* Donut legend pills */
.report-legend-pills {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 100%;
}

.report-legend-pill {
  display: flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
}

@media (max-width: 900px) {
  .report-summary-strip  { grid-template-columns: 1fr; }
  .report-charts-row     { flex-direction: column; }
  .report-bar-row        { grid-template-columns: 110px 1fr 70px; }
}