/* Marine Center Nord – Ticketing System */

:root {
  --mcn-blue: #003f7f;
  --mcn-accent: #0096c7;
}

body {
  background-color: #f4f6f9;
  font-size: 0.95rem;
}

/* ── Sidebar Layout ── */
.wrapper {
  display: flex;
  min-height: calc(100vh - 56px);
}

.sidebar {
  width: 240px;
  min-width: 240px;
  background: #1e2a3a;
  color: #c9d1d9;
  padding: 1.25rem 0;
  flex-shrink: 0;
}

.sidebar .nav-link {
  color: #c9d1d9;
  padding: 0.5rem 1.25rem;
  border-radius: 0;
  transition: background 0.15s;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.sidebar .nav-section {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6e7f94;
  padding: 1rem 1.25rem 0.25rem;
}

.main-content {
  flex: 1;
  padding: 1.5rem;
  overflow-x: auto;
}

/* ── Login page ── */
body.login-page {
  background: linear-gradient(135deg, var(--mcn-blue) 0%, var(--mcn-accent) 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card {
  max-width: 420px;
  width: 100%;
}

/* ── Status / Priority badges ── */
.badge.priority-urgent { background-color: #dc3545 !important; }
.badge.priority-high   { background-color: #fd7e14 !important; }
.badge.priority-medium { background-color: #6c757d !important; }
.badge.priority-low    { background-color: #0dcaf0 !important; color: #000 !important; }

/* ── Stat cards ── */
.stat-card {
  border: none;
  border-radius: .75rem;
  transition: transform .15s;
}
.stat-card:hover { transform: translateY(-2px); }

/* ── Ticket table ── */
.table-tickets th { white-space: nowrap; }
.table-tickets td { vertical-align: middle; }

/* ── Comments ── */
.comment-block {
  background: #fff;
  border-left: 3px solid var(--mcn-accent);
  padding: 0.75rem 1rem;
  border-radius: 0 .4rem .4rem 0;
  margin-bottom: 0.75rem;
}

/* ── Utilities ── */
.text-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
