/* ═══════════════════════════════════════════════════════════
   VEBDESK — Classy IT Ticket Management Style
   Theme Inspired by vebbox.com (dodger blue, classy slate gray/dark navy accents)
═══════════════════════════════════════════════════════════ */

/* ── Reset & Variables ──────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #3498db;      /* Vebbox Blue */
  --primary-dark: #2980b9;
  --primary-light: #ebf5fb;
  --dark-navy: #1b2a47;    /* Slate Dark Navy Header */
  --bg-light: #f8f9fc;
  --bg-white: #ffffff;
  --text-dark: #2c3e50;
  --text-muted: #6f7c8d;
  --text-light: #a5b1c2;
  --border-color: #eaedf2;
  
  /* Statuses */
  --open: #e67e22;
  --open-bg: rgba(230,126,34,0.1);
  --progress: #f1c40f;
  --progress-bg: rgba(241,196,15,0.12);
  --resolved: #2ecc71;
  --resolved-bg: rgba(46,204,113,0.1);

  /* Priorities */
  --p-urgent: #e74c3c;
  --p-high: #e67e22;
  --p-medium: #3498db;
  --p-low: #95a5a6;

  /* Font settings */
  --font-title: 'Raleway', 'Poppins', sans-serif;
  --font-body: 'Poppins', sans-serif;
  
  /* Animation */
  --ease: cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition: all 0.3s var(--ease);
}

/* Pulse animation for HOD Approval Pending card */
@keyframes pendingPulse {
  0%   { box-shadow: 0 0 0 0 rgba(211, 84, 0, 0.30); border-color: rgba(211, 84, 0, 0.55); }
  50%  { box-shadow: 0 0 0 7px rgba(211, 84, 0, 0.00); border-color: rgba(211, 84, 0, 0.90); }
  100% { box-shadow: 0 0 0 0 rgba(211, 84, 0, 0.00); border-color: rgba(211, 84, 0, 0.55); }
}

body {
  background-color: var(--bg-light);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Navbar ─────────────────────────────────────────────── */
.navbar {
  background-color: var(--bg-white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
  max-width: 1400px;
  width: 96%;
  margin: 0 auto;
  padding: 0 15px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo-bold {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 20px;
  color: var(--primary);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.logo-light {
  font-family: var(--font-title);
  font-weight: 300;
  font-size: 20px;
  color: var(--dark-navy);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.logo-badge {
  font-size: 10px;
  text-transform: uppercase;
  background-color: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  margin-left: 5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}

.nav-item {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  font-family: var(--font-title);
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

.nav-item:hover, .nav-item.active {
  color: var(--primary);
}

.nav-item:hover::after, .nav-item.active::after {
  width: 100%;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 10px 24px;
  font-weight: 600;
  font-family: var(--font-title);
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
  transition: var(--transition);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
  transform: translateY(-1px);
}

/* ── Hero Section ────────────────────────────────────────── */
.hero-section {
  background: linear-gradient(135deg, var(--dark-navy) 0%, #111d33 100%);
  color: #fff;
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle, rgba(52,152,219,0.1) 0%, transparent 80%);
  pointer-events: none;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-content h1 {
  font-family: var(--font-title);
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-content p {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 35px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.hero-btn-primary {
  background-color: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(52, 152, 219, 0.4);
}

.hero-btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

.hero-btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  padding: 12px 32px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.hero-btn-outline:hover {
  border-color: #fff;
  background-color: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

/* ── Content Core ────────────────────────────────────────── */
.main-container {
  margin-top: 40px;
  margin-bottom: 60px;
  flex: 1;
}

.section-title {
  font-family: var(--font-title);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-dark);
}

.section-subtitle {
  color: var(--text-muted);
  margin-bottom: 30px;
  font-size: 14px;
}

.tab-content.hidden {
  display: none !important;
}

/* ── Dashboard Cards ─────────────────────────────────────── */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.metric-card {
  background-color: var(--bg-white);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 4px 30px rgba(127, 137, 161, 0.08);
  border: 1px solid var(--border-color);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.metric-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(52, 152, 219, 0.12);
  border-color: rgba(52, 152, 219, 0.4);
}

.metric-card.active-metric-card {
  border-color: var(--primary) !important;
  box-shadow: 0 8px 25px rgba(52, 152, 219, 0.22) !important;
  background-color: rgba(52, 152, 219, 0.05) !important;
  transform: translateY(-3px);
}

.metric-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.metric-blue { background-color: rgba(52, 152, 219, 0.12); color: var(--primary); }
.metric-yellow { background-color: rgba(241, 196, 15, 0.12); color: #f1c40f; }
.metric-purple { background-color: rgba(155, 89, 182, 0.12); color: #9b59b6; }
.metric-green { background-color: rgba(46, 204, 113, 0.12); color: var(--resolved); }

.metric-info {
  display: flex;
  flex-direction: column;
}

.metric-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-dark);
}

.metric-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
}

/* ── Panel Layouts ───────────────────────────────────────── */
.dashboard-details {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
}

@media (max-width: 900px) {
  .dashboard-details {
    grid-template-columns: 1fr;
  }
}

.panel {
  background-color: var(--bg-white);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 30px rgba(127, 137, 161, 0.08);
  border: 1px solid var(--border-color);
}

.panel h3 {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

/* Priority list */
.priority-item {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  background-color: transparent;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  position: relative;
}

.priority-item:hover {
  background-color: rgba(52, 152, 219, 0.05);
  border-color: rgba(52, 152, 219, 0.25);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.priority-item:active {
  transform: translateX(2px) scale(0.99);
}

.priority-item.active-priority {
  transform: translateX(4px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.priority-item.active-priority[data-priority="Urgent"] {
  background-color: rgba(231, 76, 60, 0.08);
  border-color: var(--p-urgent);
  box-shadow: 0 4px 14px rgba(231, 76, 60, 0.2);
}

.priority-item.active-priority[data-priority="High"] {
  background-color: rgba(230, 126, 34, 0.08);
  border-color: var(--p-high);
  box-shadow: 0 4px 14px rgba(230, 126, 34, 0.2);
}

.priority-item.active-priority[data-priority="Medium"] {
  background-color: rgba(52, 152, 219, 0.08);
  border-color: var(--p-medium);
  box-shadow: 0 4px 14px rgba(52, 152, 219, 0.2);
}

.priority-item.active-priority[data-priority="Low"] {
  background-color: rgba(149, 165, 166, 0.12);
  border-color: var(--p-low);
  box-shadow: 0 4px 14px rgba(149, 165, 166, 0.2);
}

.priority-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 7px;
}

.priority-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.priority-dot {
  font-size: 11px;
  line-height: 1;
}

.dot-urgent { color: var(--p-urgent); }
.dot-high { color: var(--p-high); }
.dot-medium { color: var(--p-medium); }
.dot-low { color: var(--p-low); }

.priority-count-badge {
  font-weight: 700;
  font-size: 13px;
  color: var(--dark-navy);
  padding: 1px 8px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.04);
  transition: all 0.2s;
}

.priority-item.active-priority[data-priority="Urgent"] .priority-count-badge {
  background: var(--p-urgent);
  color: #ffffff;
}

.priority-item.active-priority[data-priority="High"] .priority-count-badge {
  background: var(--p-high);
  color: #ffffff;
}

.priority-item.active-priority[data-priority="Medium"] .priority-count-badge {
  background: var(--p-medium);
  color: #ffffff;
}

.priority-item.active-priority[data-priority="Low"] .priority-count-badge {
  background: var(--p-low);
  color: #ffffff;
}

.progress-track {
  height: 6px;
  background-color: #f1f3f6;
  border-radius: 50px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  border-radius: 50px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.bar-urgent { background-color: var(--p-urgent); }
.bar-high { background-color: var(--p-high); }
.bar-medium { background-color: var(--p-medium); }
.bar-low { background-color: var(--p-low); }

/* Dashboard IT Support Engineer Select */
.dashboard-engineer-select {
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--dark-navy);
  background-color: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  padding: 6px 30px 6px 12px;
  cursor: pointer;
  outline: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  appearance: none;
  -webkit-appearance: none;
  min-width: 210px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.dashboard-engineer-select:hover {
  border-color: var(--primary);
  box-shadow: 0 3px 10px rgba(52, 152, 219, 0.15);
}

.dashboard-engineer-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

/* Activity list */
.recent-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.recent-item {
  padding: 15px;
  border-radius: 8px;
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.recent-item:hover {
  background-color: rgba(52, 152, 219, 0.08);
  border-color: rgba(52, 152, 219, 0.4);
  transform: translateX(4px);
}

.recent-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.recent-tkt-id {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  font-family: monospace;
}

.recent-title {
  font-weight: 600;
  font-size: 13px;
}

.recent-time {
  font-size: 11px;
  color: var(--text-muted);
}

.badge-priority {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  color: #fff;
  text-transform: uppercase;
}

.badge-urgent { background-color: var(--p-urgent); }
.badge-high { background-color: var(--p-high); }
.badge-medium { background-color: var(--p-medium); }
.badge-low { background-color: var(--p-low); }

/* ── Forms ───────────────────────────────────────────────── */
.form-panel {
  max-width: 800px;
  margin: 0 auto;
}

.ticket-form {
  margin-top: 25px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dark);
}

.form-group input, .form-group select, .form-group textarea {
  font-family: var(--font-body);
  font-size: 13px;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-light);
  outline: none;
  transition: var(--transition);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--primary);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.btn-secondary {
  background-color: var(--bg-light);
  color: var(--text-dark);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 12px 28px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  background-color: var(--border-color);
}

.btn-primary-large {
  background-color: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 12px 36px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
  transition: var(--transition);
}

.btn-primary-large:hover {
  background-color: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

/* ── Filter Bar & List ────────────────────────────────────── */
.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}

@media (max-width: 768px) {
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
}

.search-input-wrapper {
  position: relative;
  flex: 1;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.search-input-wrapper input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border-radius: 50px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-white);
  outline: none;
  transition: var(--transition);
  font-family: var(--font-body);
}

.search-input-wrapper input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
}

.filter-dropdowns {
  display: flex;
  gap: 10px;
}

.filter-dropdowns select {
  padding: 10px 20px;
  border-radius: 50px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-white);
  outline: none;
  font-family: var(--font-body);
  transition: var(--transition);
  cursor: pointer;
}

.filter-dropdowns select:focus {
  border-color: var(--primary);
}

/* Ticket List Table Style */
.ticket-list-wrapper {
  background-color: var(--bg-white);
  border-radius: 12px;
  box-shadow: 0 4px 30px rgba(127, 137, 161, 0.08);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.table-header {
  display: grid;
  grid-template-columns: 100px 1fr 140px 100px 120px 150px;
  background-color: var(--dark-navy);
  color: #fff;
  font-weight: 600;
  padding: 16px 24px;
  font-family: var(--font-title);
  font-size: 13px;
  letter-spacing: 0.5px;
}

.table-row {
  display: grid;
  grid-template-columns: 100px 1fr 140px 100px 120px 150px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-color);
  align-items: center;
  transition: var(--transition);
  cursor: pointer;
}

.table-row:hover {
  background-color: var(--primary-light);
}

.table-row:last-child {
  border-bottom: none;
}

.tkt-id {
  font-family: monospace;
  font-weight: 700;
  color: var(--primary);
}

.tkt-info {
  display: flex;
  flex-direction: column;
}

.tkt-title {
  font-weight: 600;
  color: var(--text-dark);
}

.tkt-client {
  font-size: 12px;
  color: var(--text-muted);
}

.badge-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
  text-transform: capitalize;
}

.status-open { color: var(--open); background-color: var(--open-bg); }
.status-progress { color: #d4ac0d; background-color: var(--progress-bg); }
.status-resolved { color: var(--resolved); background-color: var(--resolved-bg); }
.status-pendingapproval { color: #d35400; background-color: rgba(211, 84, 0, 0.1); }
.status-rejected { color: #c0392b; background-color: rgba(192, 57, 43, 0.1); }

/* Response/Layout updates */
@media (max-width: 900px) {
  .table-header { display: none; }
  .table-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 20px;
  }
}

/* ── Alert Bar ───────────────────────────────────────────── */
.alert-container {
  margin-top: 30px;
}

.alert-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: rgba(231, 76, 60, 0.08);
  border: 1px solid rgba(231, 76, 60, 0.2);
  color: #c0392b;
  padding: 16px 20px;
  border-radius: 8px;
}

/* ── Slide-Out Drawer ─────────────────────────────────────── */
.drawer-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  transition: opacity 0.3s;
}

.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 100%;
  max-width: 600px;
  background-color: var(--bg-white);
  box-shadow: -10px 0 40px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 2100;
}

.drawer-overlay:not(.hidden) .drawer, 
.drawer-overlay.active-state .drawer {
  transform: translateX(0);
}

.drawer-header {
  padding: 24px 30px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background-color: var(--dark-navy);
  color: #fff;
}

.drawer-tkt-id {
  font-family: monospace;
  font-weight: 700;
  font-size: 14px;
  color: var(--primary);
}

.drawer-header h2 {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 600;
  margin-top: 5px;
}

.drawer-close-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  transition: var(--transition);
}

.drawer-close-btn:hover {
  color: #fff;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 30px;
}

.drawer-panel {
  margin-bottom: 30px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--border-color);
}

.drawer-panel:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.drawer-panel h3 {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.metadata-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 25px;
}

.meta-lbl {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  display: block;
}

.meta-val {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dark);
}

.drawer-controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 500px) {
  .drawer-controls {
    grid-template-columns: 1fr;
  }
}

.drawer-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  background-color: var(--bg-light);
  padding: 16px;
  border-radius: 8px;
  border-left: 3px solid var(--primary);
  white-space: pre-wrap;
}

/* Chat logs & Conversation thread in drawer */
.audit-history {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
}

.audit-history::-webkit-scrollbar {
  width: 6px;
}
.audit-history::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 4px;
}

.audit-log-item {
  padding: 12px 14px;
  border-radius: 8px;
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  font-size: 12.5px;
  transition: all 0.2s ease;
}

.audit-log-item.chat-admin {
  background: rgba(41, 128, 185, 0.06);
  border: 1px solid rgba(41, 128, 185, 0.25);
  border-left: 4px solid #2980b9;
}

.audit-log-item.chat-requester {
  background: rgba(39, 174, 96, 0.06);
  border: 1px solid rgba(39, 174, 96, 0.25);
  border-left: 4px solid #27ae60;
}

.audit-log-item.chat-system {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  opacity: 0.9;
}

.audit-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
  flex-wrap: wrap;
  gap: 6px;
}

.audit-sender-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.audit-sender {
  color: var(--dark-navy);
  font-weight: 700;
  font-size: 12.5px;
}

.audit-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.audit-badge.badge-admin {
  background: #2980b9;
  color: #fff;
}

.audit-badge.badge-requester {
  background: #27ae60;
  color: #fff;
}

.audit-badge.badge-system {
  background: #64748b;
  color: #fff;
}

.audit-time {
  font-size: 11px;
  color: var(--text-light);
  font-weight: normal;
}

.audit-msg {
  color: #2c3e50;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.drawer-reply-form {
  background-color: var(--bg-light);
  padding: 18px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  background-color: var(--dark-navy);
  color: #fff;
  padding: 40px 0;
  margin-top: auto;
  border-top: 4px solid var(--primary);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-brand p {
  font-size: 12px;
  color: var(--text-light);
}

.footer-info {
  font-size: 12px;
  color: var(--text-light);
}

/* ── Toast notifications ─────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
}

.toast {
  background-color: var(--dark-navy);
  color: #fff;
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 280px;
  animation: slideInRight 0.3s var(--ease);
}

.toast.success { border-left-color: var(--resolved); }
.toast.error { border-left-color: var(--p-urgent); }

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Custom Scrollbar for Drawer/Lists */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
  background: var(--text-light);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Global Utilities */
.hidden {
  display: none !important;
}

/* ── Login Overlay Screen ────────────────────────────────── */
.login-overlay-screen {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at center, #1b2a47 0%, #0c1424 100%);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s var(--ease);
}

.login-overlay-screen.hidden {
  opacity: 0;
  pointer-events: none;
  display: none !important;
}

.login-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 40px;
  border-radius: 16px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.login-header {
  margin-bottom: 30px;
}

/* ── Timeline Progress Tracker ────────────────────────────── */
.timeline-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  padding-left: 10px;
  margin-top: 15px;
}

.timeline-step {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  position: relative;
}

.timeline-step::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 30px;
  bottom: -22px;
  width: 2px;
  background-color: var(--border-color);
  z-index: 1;
}

.timeline-step:last-child::before {
  display: none;
}

.step-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-light);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: bold;
  z-index: 2;
  flex-shrink: 0;
  transition: var(--transition);
}

.step-icon.success {
  background: var(--resolved-bg);
  border-color: var(--resolved);
  color: var(--resolved);
}

.step-icon.pending {
  background: rgba(211, 84, 0, 0.1);
  border-color: #d35400;
  color: #d35400;
}

.step-icon.skipped {
  background: var(--bg-light);
  border-color: var(--text-muted);
  color: var(--text-muted);
}

.step-icon.error {
  background: rgba(192, 57, 43, 0.1);
  border-color: #c0392b;
  color: #c0392b;
}

.step-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.step-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}

.step-desc {
  font-size: 11px;
  color: var(--text-muted);
}

/* ── Ticket Notes Popping Modal ────────────────────────────── */
.note-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.note-modal-overlay.hidden {
  display: none !important;
}

.note-modal-card {
  background: var(--bg-white);
  border-radius: 12px;
  width: 100%;
  max-width: 560px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  animation: modalPop 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes modalPop {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.note-modal-header {
  background-color: var(--dark-navy);
  color: #fff;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.note-modal-header h3 {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.note-modal-body {
  padding: 24px;
}

/* ── Universal Modal Framework ────────────────────────────── */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
}

.modal.hidden {
  display: none !important;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal-card {
  position: relative;
  width: 100%;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  z-index: 10;
  animation: modalScaleIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

@keyframes modalScaleIn {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-close {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  border-radius: 4px;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--text-dark);
  background: rgba(0, 0, 0, 0.05);
}

.btn-export-report {
  background: #10b981;
  color: #ffffff;
  border: 1px solid #10b981;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
  transition: all 0.2s ease;
}

.btn-export-report:hover {
  background-color: #059669 !important;
  border-color: #059669 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.35) !important;
}

/* ── IT Support Engineer Workload Card Queue Sub-filters ── */
.supporter-sub-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  border: 1px solid transparent;
  font-size: 11px;
  font-weight: 600;
}

.supporter-sub-pill.done-pill {
  color: #16a34a;
  background: rgba(34, 197, 94, 0.08);
}

.supporter-sub-pill.done-pill:hover {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(34, 197, 94, 0.2);
}

.supporter-sub-pill.done-pill.active-done {
  background: #16a34a !important;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.4);
  border-color: #16a34a !important;
}

.supporter-sub-pill.active-pill {
  color: #ea580c;
  background: rgba(234, 88, 12, 0.08);
}

.supporter-sub-pill.active-pill:hover {
  background: rgba(234, 88, 12, 0.2);
  border-color: rgba(234, 88, 12, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.2);
}

.supporter-sub-pill.active-pill.active-queue {
  background: #ea580c !important;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.4);
  border-color: #ea580c !important;
}

.supporter-filter-tab {
  border: none;
  background: transparent;
  color: var(--text-dark);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.supporter-filter-tab:hover {
  background: rgba(0, 0, 0, 0.07);
}

.supporter-filter-tab.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 5px rgba(52, 152, 219, 0.35);
}

.supporter-filter-tab.active-done {
  background: #16a34a;
  color: #ffffff;
  box-shadow: 0 2px 5px rgba(22, 163, 74, 0.35);
}

.supporter-filter-tab.active-queue {
  background: #ea580c;
  color: #ffffff;
  box-shadow: 0 2px 5px rgba(234, 88, 12, 0.35);
}




