*,
*::before,
*::after {
    box-sizing:border-box;
    margin:0;
    padding:0;

 }
:root {
    --blue-dark:#0d2260;
    --blue-mid:#1b3a8c;
    --blue-light:#3b82f6;
    --teal:#00bcd4;
    --sidebar-w:222px;
    --bg:#e4ecf7;
    --surface:#ffffff;
    --surface2:#f3f7fd;
    --border:#dde6f5;
    --text:#0d1b3e;
    --text-mid:#4a5578;
    --text-light:#8a96b8;
    --input-bg:#edf2fb;
    --success:#00c48c;
    --warn:#f59e0b;
    --info:#3b82f6;
    --error:#ef4444;
    --purple:#8b5cf6;
    --shadow:0 2px 16px rgba(27,58,140,0.09);
    --shadow-lg:0 10px 40px rgba(27,58,140,0.14);
}

[data-theme="dark"] {
    --bg:#0b1120;
    --surface:#121c34;
    --surface2:#192540;
    --border:#1f2f50;
    --text:#e4ecf7;
    --text-mid:#8a96b8;
    --text-light:#3d4d70;
    --input-bg:#192540;
    --shadow:0 2px 16px rgba(0,0,0,0.3);
    --shadow-lg:0 10px 40px rgba(0,0,0,0.45);
}

body {
    font-family:'Plus Jakarta Sans',sans-serif;
    background:var(--bg);
    color:var(--text);
    display:flex;height:100vh;
    overflow:hidden;
    transition:background .3s,color .3s;
}

/* Page loader */
#page-loader {
    position:fixed;
    inset:0;
    background:var(--bg);
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:9999;
    flex-direction:column;
    gap:12px;
    transition:opacity .4s;
}

#page-loader.hide {
    opacity:0;
    pointer-events:none;
}

.ld-logo {
    font-size:28px;
    font-weight:900;
    color:var(--blue-dark);
}

.ld-spin {
    width:28px; 
    height:28px; 
    border:3px solid var(--border);
    border-top-color:var(--blue-mid);
    border-radius:50%;
    animation:spin .7s linear infinite;
}

@keyframes spin {
    to {
        transform:rotate(360deg)
    }
}

/* SIDEBAR */
.sidebar {
    width:var(--sidebar-w);
    flex-shrink:0;
    background:linear-gradient(170deg,#08194d 0%,#1b3a8c 55%,#0881b0 100%);
    display:flex;
    flex-direction:column;
    position:relative;
    overflow:hidden;
}

.sidebar::before {
    content:'';
    position:absolute;
    inset:0;
    pointer-events:none;
    background-image:repeating-linear-gradient(45deg,transparent,transparent 24px,rgba(255,255,255,0.022) 24px,rgba(255,255,255,0.022) 48px);
}

.sb-logo { 
    padding:20px 18px 18px;
    display:flex;
    align-items:center;
    gap:12px;
    border-bottom:1px solid rgba(255,255,255,0.08);
    position:relative;
}

.logo-box {
  width: 50px;
  height: 50px;
  border-radius: 13px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.logo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-txt strong {
  display: block;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
}

.logo-txt span {
  font-size: 9.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.sb-nav {
  padding: 14px 10px;
  flex: 1;
  position: relative;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 3px;
  transition: background 0.2s, color 0.2s;
  user-select: none;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.nav-item.active {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.nav-item svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.nav-plus {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.sb-bottom {
  padding: 14px 10px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.logout-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  color: rgb(255, 255, 255);
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.logout-nav:hover {
  color: #ff0000;
}

.logout-nav svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
/* TOPBAR */

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.topbar {
  height: 64px;
  flex-shrink: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 60;
  transition: background 0.3s, border-color 0.3s;
}

.topbar-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bell-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background 0.2s;
}

.bell-btn:hover {
  background: var(--surface2);
}

.bell-btn svg {
  width: 20px;
  height: 20px;
}

.bell-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--error);
  border: 2px solid var(--surface);
}

/* USER DROPDOWN */

.user-area {
  position: relative;
}

.user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px 8px;
  border-radius: 10px;
  transition: background 0.2s;
}

.user-btn:hover {
  background: var(--surface2);
}

.u-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-mid), var(--teal));
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.u-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.u-chev {
  color: var(--text);
  font-size: 11px;
}

.u-dd {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  min-width: 250px;
  z-index: 200;
  display: none;
  overflow: hidden;
  animation: ddIn 0.2s ease;
}

.u-dd.show {
  display: block;
}
@keyframes ddIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dd-strip {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.dd-av {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue-mid), var(--teal));
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dd-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  display: block;
}

.dd-email {
  font-size: 11.5px;
  color: var(--text);
  display: block;
  margin-top: 1px;
}

.dd-sec {
  padding: 7px;
}

.dd-lbl {
  font-size: 10px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 1.3px;
  text-transform: uppercase;
  padding: 5px 8px 3px;
}

.dd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.dd-item:hover {
  background: var(--surface2);
  color: var(--text);
}

.dd-item svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.dd-item.red {
  color: var(--error);
}

.dd-item.red:hover {
  background: #fff0f0;
}
[data-theme="dark"] .dd-item.red:hover {
  background: #3a1010;
}

.dd-div {
  height: 1px;
  background: var(--border);
  margin: 4px 7px;
}

.theme-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 10px;
  border-radius: 9px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
  transition: background 0.15s;
}

.theme-row:hover {
  background: var(--surface2);
}

.theme-row-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tog-sw {
  width: 38px;
  height: 21px;
  border-radius: 11px;
  background: var(--border);
  position: relative;
  transition: background 0.3s;
  flex-shrink: 0;
}

.tog-sw.on {
  background: var(--blue-mid);
}

.tog-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.3s;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.tog-sw.on .tog-knob {
  transform: translateX(17px);
}
/* CONTENT */

.content {
  flex: 1;
  overflow-y: auto;
  padding: 24px 26px;
}

.page {
  display: none;
}

.page.active {
  display: block;
  animation: fadeUp 0.3s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.raise-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #0d2260, #1b3a8c);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 13px 22px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(13, 34, 96, 0.38);
  transition: transform 0.15s, box-shadow 0.15s;
  margin-bottom: 22px;
}

.raise-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(13, 34, 96, 0.42);
}

.dash-split {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.tickets-col {
  flex: 1;
  min-width: 0;
}

.detail-col {
  width: 380px;
  flex-shrink: 0;
  overflow: visible;
}

.card {
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 22px 24px;
  transition: background 0.3s, box-shadow 0.3s;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.card-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
}

.view-all {
  color: var(--blue-light);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.t-table {
  width: 100%;
  border-collapse: collapse;
}

.t-table thead th {
  text-align: left;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color:var(--text);
  padding: 0 12px 12px;
  border-bottom: 1.5px solid var(--border);
}

.t-table tbody tr {
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.t-table tbody tr:last-child {
  border-bottom: none;
}

.t-table tbody tr:hover {
  background: var(--surface2);
}

.t-table tbody tr.sel {
  background: var(--surface2);
}

.t-table td {
  padding: 13px 12px;
  font-size: 13.5px;
  color: var(--text);
  font-weight: 500;
}

.t-table td:first-child {
  font-weight: 700;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 11px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

/* ── Category Badges ── */
.b-tech {
  background: #dbeafe;
  color: #1d4ed8;
}

.b-nontech {
  background: #f3e8ff;
  color: #6d28d9;
}


/* ── Status Badges ── */
.b-pending {
  background: #fef3c7;
  color: #92400e;
}

.b-progress {
  background: #dbeafe;
  color: #1e40af;
}

.b-assigned {
  background: #e0e7ff;
  color: #3730a3;
}

.b-overdue {
  background: #fee2e2;
  color: #b91c1c;
}

.b-resolved,
.b-Resolved {
  background: #d1fae5;
  color: #065f46;
}


/* ── Priority Badges ── */
.b-low {
  background: #f0fdf4;
  color: #166534;
}

.b-medium {
  background: #fefce8;
  color: #854d0e;
}

.b-high {
  background: #fff1f2;
  color: #be123c;
}

/* ← ADD THESE NEW ONES */
.b-assigned {
  background: #e0e7ff;
  color: #3730a3;
}

.b-overdue {
  background: #fee2e2;
  color: #b91c1c;
}

.b-Resolved {
  background: #d1fae5;
  color: #065f46;
}

.b-inprogress {
  background: #dbeafe;
  color: #1e40af;
}

/* Dark Mode Badge Overrides */
[data-theme="dark"] .b-pending    { background: #3d2e0a; color: #fbbf24; }
[data-theme="dark"] .b-progress   { background: #1e2d4a; color: #60a5fa; }
[data-theme="dark"] .b-assigned   { background: #1e1b4b; color: #a5b4fc; }
[data-theme="dark"] .b-overdue    { background: #3a0a0a; color: #fca5a5; }
[data-theme="dark"] .b-resolved,
[data-theme="dark"] .b-Resolved   { background: #0a2e1a; color: #4ade80; }
[data-theme="dark"] .b-Resolved  { background: #052e16; color: #86efac; }
[data-theme="dark"] .b-low        { background: #052e16; color: #4ade80; }
[data-theme="dark"] .b-medium     { background: #3d2e0a; color: #fcd34d; }
[data-theme="dark"] .b-high       { background: #3a0a0a; color: #fda4af; }
[data-theme="dark"] .b-tech       { background: #0c1e3d; color: #60a5fa; }
[data-theme="dark"] .b-nontech    { background: #1e0a3d; color: #c084fc; }

/* DETAIL PANEL */

.detail-panel {
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 16px;
  transition: background 0.3s;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 130px);
  overflow: hidden;
}

.dp-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--text-light);
  padding: 16px 20px 8px;
  flex-shrink: 0;
}

/* ── Detail panel full layout fix ── */
#dp-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

/*  Ticket title strip */
.dp-ticket {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  padding: 12px 20px 14px;
  background: var(--surface2);
  border-bottom: 1.5px solid var(--border);
  line-height: 1.4;
  margin-bottom: 0;
}

/* ── Ticket meta section ── */
.dp-meta {
  flex-shrink: 0;
  padding: 4px 20px 8px;
  border-bottom: 1.5px solid var(--border);
}

.dp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}

.dp-row:last-of-type {
  border-bottom: none;
}

.dp-lbl {
  color: var(--text-mid);
  font-weight: 600;
  font-size: 12px;
  flex-shrink: 0;
}

.dp-val {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  text-align: right;
}

/* ── Chat area improvements ── */
.chat-area {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: var(--surface2);
  scroll-behavior: smooth;
  min-height: 180px;
  max-height: 320px;
}

/* ── Chat closed banner ── */
.chat-closed-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border-top: 2px solid #bbf7d0;
  color: #15803d;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}


/* ── Chat empty state ── */
.chat-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  color: var(--text-light);
  gap: 8px;
}

.chat-empty-state p {
  font-size: 13px;
  text-align: center;
  line-height: 1.6;
  color: var(--text-light);
}

.ce-icon {
  font-size: 36px;
  opacity: 0.6;
}


[data-theme="dark"] .chat-area {
  background: #0f1828;
}
.chat-area::-webkit-scrollbar {
  width: 3px;
}

.chat-area::-webkit-scrollbar-track {
  background: transparent;
}

.chat-area::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.chat-area::-webkit-scrollbar-thumb:hover {
  background: var(--text);
}

/* ── Message row alignment ── */
.c-msg {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  margin-bottom: 4px;
}

@keyframes msgPop {
  from { opacity: 0; transform: translateY(8px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}


/* Student → brand gradient, right tail */
.msg-student .c-txt {
  background: linear-gradient(135deg, #1b3a8c, #2563eb);
  color: #fff;
  border-radius: 18px 18px 4px 18px;
  box-shadow: 0 2px 8px rgba(37,99,235,0.25);
}

.msg-student {
  flex-direction: row-reverse;
}

.msg-student .c-meta {
  flex-direction: row-reverse;
}

.msg-student .c-av {
  background: linear-gradient(135deg, #1b3a8c, #00bcd4);
}

.msg-student .c-bub {
  align-items: flex-end;
}

/* ── File links inside bubbles ──────────────────────────────── */
.file-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .15s;
}

/* ── Admin messages (left side, purple) ── */
.msg-admin {
  flex-direction: row;
}

.msg-student .file-link { background: rgba(255,255,255,.2); color: #fff; }
.msg-admin .file-link,
.msg-employee .file-link { background: var(--surface2); color: var(--blue-mid); border: 1px solid var(--border); }

/* ── Avatar ── */
.c-av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.av-s { background: linear-gradient(135deg, #1b3a8c, #00bcd4); }
.av-a { background: linear-gradient(135deg, #ef4444, #f97316); }
.av-e { background: linear-gradient(135deg, #00c48c, #0ea5e9); }
 

/* ── Bubble container ── */
.c-bub {
  max-width: 68%;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* ── Meta row (name + time) ── */
.c-meta {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 0 4px;
}

/* Employee messages — left aligned */
.msg-employee {
  flex-direction: row;
}

.msg-employee .c-av {
  background: linear-gradient(135deg, #00c48c, #0ea5e9);
}

.msg-admin .c-av {
  background: #7c3aed;
}

.msg-employee .c-bub {
  align-items: flex-start;
}

/* Admin / Employee → white card, left tail */

.msg-employee .c-txt {
  background: #fff;
  color: #0d1b3e;
  border-radius: 18px 18px 18px 4px;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.msg-admin .c-bub {
  align-items: flex-start;
}

/* ── Admin bubble left aligned ── */
.msg-admin .c-txt {
  background: #faf5ff;
  color: #4c1d95;
  border-radius: 18px 18px 18px 4px;
  border: 1.5px solid #ddd6fe;
  box-shadow: 0 2px 8px rgba(124,58,237,0.08);
}

[data-theme="dark"] .msg-admin .c-txt,
[data-theme="dark"] .msg-employee .c-txt {
  background: #192540;
  border-color: #1f2f50;
  color: #e4ecf7;
}

.c-who {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-mid);
}

.c-time {
  font-size: 10px;
  color: var(--text-light);
}

/* ── Message text ── */
.c-txt {
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.5;
  word-break: break-word;
}

.c-dot {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 4px 0;
}

.c-dot span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text);
  animation: dotBounce 1.2s infinite;
  display: inline-block;
}

.c-dot span:nth-child(2) {
  animation-delay: 0.2s;
}

.c-dot span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes dotBounce {
  0%,
  80%,
  100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}

/* ── Chat input row ── */
.chat-inp-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--surface);
  border-top: 1.5px solid var(--border);
  flex-shrink: 0;
}

.chat-inp {
  flex: 1;
  background: var(--input-bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.chat-inp:focus {
  border-color: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.chat-inp::placeholder {
  color: var(--text);
}

.send-btn {
  height: 40px;
  padding: 0 20px;
  background: linear-gradient(135deg, #0d2260, #1b3a8c);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(13,34,96,0.3);
  transition: transform 0.15s, box-shadow 0.15s;
}

.send-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(13,34,96,0.4);
}

.send-btn:active { 
  transform: scale(.97); 
}


/* MY TICKETS page */

.pg-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.pg-head h1 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}

/* OVERLAYS */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.overlay.show {
  display: flex;
  animation: oIn 0.2s ease;
}

@keyframes oIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes mIn {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
/* RAISE DOUBT MODAL */

.rd-modal {
  background: var(--surface);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.26);
  width: 100%;
  max-width: 460px;
  padding: 28px;
  animation: mIn 0.3s cubic-bezier(.22, 1, .36, 1);
}

.rd-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.rd-title-txt {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
}

.x-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  font-size: 20px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.x-btn:hover {
  background: var(--surface2);
}

/* simple back button used in modals */
.back-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  font-size: 18px;
  margin-right: 8px;
  padding: 0;
}

.page-controls {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

/* hide back arrow beside raise buttons until we're in full-chat (full-screen ticket) */
.page-controls .back-btn,
.pg-head .back-btn {
  display: none;
}
body.full-chat .page-controls .back-btn,
body.full-chat .pg-head .back-btn {
  display: inline-flex;
}

/* make back button follow raise-btn appearance when visible */
.back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0d2260, #1b3a8c);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 13px 22px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(13, 34, 96, 0.38);
  transition: transform 0.15s, box-shadow 0.15s;
  margin-right: 8px;
}

.back-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(13, 34, 96, 0.42);
}

.cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}

.cat-card {
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 22px 16px;
  cursor: pointer;
  text-align: center;
  background: var(--surface2);
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.cat-card:hover {
  transform: translateY(-2px);
}

.cat-card.sel-t {
  border-color: #3b82f6;
  background: #eff6ff;
}

.cat-card.sel-n {
  border-color: var(--purple);
  background: #faf5ff;
}

[data-theme="dark"] .cat-card.sel-t {
  background: #0c1e3d;
}

[data-theme="dark"] .cat-card.sel-n {
  background: #1e0a3d;
}

.cat-icon {
  font-size: 30px;
  margin-bottom: 9px;
}

.cat-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.cat-hint {
  font-size: 11.5px;
  color: var(--text);
  margin-top: 3px;
}

.rd-form {
  display: none;
}

.rd-form.show {
  display: block;
  animation: fadeUp 0.25s ease;
}

.mf {
  margin-bottom: 14px;
}

.mf label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: 6px;
}

.mf input,
.mf textarea {
  width: 100%;
  background: var(--input-bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.mf input:focus,
.mf textarea:focus {
  border-color: var(--blue-light);
}

.mf textarea {
  resize: vertical;
  min-height: 90px;
}

.rd-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.btn-back {
  flex: 1;
  padding: 12px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: none;
  color: var(--text-mid);
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-back:hover {
  background: var(--surface2);
}

.btn-submit {
  flex: 2;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #0d2260, #1b3a8c);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(13, 34, 96, 0.34);
  transition: transform 0.15s;
}

.btn-submit:hover {
  transform: translateY(-1px);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
/* PROFILE MODAL */

.vp-modal {
  background: var(--surface);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  width: 100%;
  max-width: 400px;
  overflow: hidden;
  animation: mIn 0.3s cubic-bezier(.22, 1, .36, 1);
}

.vp-hero {
  background: linear-gradient(130deg, #08194d 0%, #1b3a8c 55%, #0881b0 100%);
  padding: 32px 24px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}

.vp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 18px,
    rgba(255, 255, 255, 0.03) 18px,
    rgba(255, 255, 255, 0.03) 36px
  );
}

.vp-x {
  position: absolute;
  top: 13px;
  right: 14px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 15px;
  width: 29px;
  height: 29px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.vp-x:hover {
  background: rgba(255, 255, 255, 0.28);
}

.vp-av {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f97316, #3b82f6);
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid rgba(255, 255, 255, 0.42);
  z-index: 1;
}

.vp-name {
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  z-index: 1;
}

.vp-email {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  z-index: 1;
}

.vp-body {
  padding: 20px 22px 24px;
}

.vp-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.vp-row:last-child {
  border-bottom: none;
}

.vp-ico {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 17px;
}

.vp-lbl {
  font-size: 10.5px;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 2px;
}

.vp-val {
  font-size: 13.5px;
  color: var(--text);
  font-weight: 700;
}
/* description link */
.desc-link{color:var(--blue-mid);cursor:pointer;text-decoration:underline;}

/* description MODAL */
.desc-modal{background:var(--surface);border-radius:12px;width:90%;max-width:500px;box-shadow:var(--shadow-lg);position:relative;animation:descIn .32s ease;} 
.dm-head{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid var(--border);} 
.dm-title{font-weight:600;font-size:16px;color:var(--text);} 
.dm-body{padding:16px;font-size:16px;color:var(--text);}

@keyframes descIn {
  from {opacity:0;transform:scale(0.96);}
  to {opacity:1;transform:scale(1);}
}

/* ACCOUNT SETTINGS MODAL */

.as-modal {
  background: var(--surface);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  width: 100%;
  max-width: 470px;
  max-height: 88vh;
  overflow-y: auto;
  animation: mIn 0.3s cubic-bezier(.22, 1, .36, 1);
}

.as-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 3;
}

.as-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
}

.as-body {
  padding: 18px 22px 26px;
}

.as-grp {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--text);
  margin: 18px 0 10px;
}

.as-grp:first-child {
  margin-top: 0;
}

.as-item {
  background: var(--surface2);
  border-radius: 12px;
  margin-bottom: 8px;
  overflow: hidden;
}

.as-ihead {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  cursor: pointer;
}

.as-ihead:hover {
  background: var(--border);
}

.as-ico {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

/* Icon Colors */
.ico-b { background: #dbeafe; }
.ico-g { background: #d1fae5; }
.ico-p { background: #f3e8ff; }
.ico-o { background: #fff7ed; }
.ico-r { background: #fee2e2; }

[data-theme="dark"] .ico-b { background: #0c1e3d; }
[data-theme="dark"] .ico-g { background: #0a2e1a; }
[data-theme="dark"] .ico-p { background: #1e0a3d; }
[data-theme="dark"] .ico-o { background: #2d1800; }
[data-theme="dark"] .ico-r { background: #3a0a0a; }

.as-iinfo {
  flex: 1;
}

.as-ititle {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.as-idesc {
  font-size: 11.5px;
  color: var(--text);
  margin-top: 2px;
}

.as-arr {
  color: var(--text);
  font-size: 16px;
  transition: transform 0.25s;
}

.as-item.open .as-arr {
  transform: rotate(90deg);
}

.as-form {
  display: none;
  padding: 0 15px 16px;
  border-top: 1px solid var(--border);
}

.as-form.open {
  display: block;
  animation: fadeUp 0.22s ease;
  padding-top: 14px;
}

.af {
  margin-bottom: 11px;
}

.af label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: 5px;
}

.af input {
  width: 100%;
  background: var(--input-bg);
  border: 1.5px solid var(--border);
  border-radius: 9px;
  padding: 10px 13px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.af input:focus {
  border-color: var(--blue-light);
}

.af-btn {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 9px;
  background: linear-gradient(135deg, #0d2260, #1b3a8c);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  margin-top: 4px;
  transition: transform 0.15s;
}

.af-btn:hover {
  transform: translateY(-1px);
}

.ep-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.ep-row:last-child {
  border-bottom: none;
}

.ep-lbl {
  font-size: 13px;
  color: var(--text-mid);
  font-weight: 500;
}

.ep-tog {
  width: 37px;
  height: 21px;
  border-radius: 11px;
  background: var(--border);
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.3s;
}

.ep-tog.on {
  background: var(--blue-mid);
}

.ep-tog::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.3s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.ep-tog.on::after {
  transform: translateX(16px);
}
/* SPIN for buttons */

.spin {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* TOASTS */

#toasts {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 90vw;
  pointer-events: none;
}

.toast {
  background: var(--surface);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid #ccc;
  display: flex;
  gap: 9px;
  align-items: flex-start;
  pointer-events: all;
  animation: tIn 0.3s ease;
}

@keyframes tIn {
  from {
    opacity: 0;
    transform: translateX(32px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes tOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: translateX(32px);
  }
}

.toast.out {
  animation: tOut 0.25s ease both;
}

.toast.success {
  border-left-color: var(--success);
}

.toast.error {
  border-left-color: var(--error);
}

.toast.info {
  border-left-color: var(--info);
}

.toast.warn {
  border-left-color: var(--warn);
}

.t-ico {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.t-body {
  flex: 1;
}

.t-ttl {
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
}

.t-msg {
  font-size: 12px;
  color: var(--text-mid);
  margin-top: 2px;
}

/* Scrollbar */

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}


/* file upload icon*/
.upload-btn{
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--surface2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
  transition: background .15s, border-color .15s, transform .12s;
}

.upload-btn:hover{
  background: var(--border);
  border-color: var(--blue-light);
  transform: scale(1.07);
}


/* Responsive */
@media (max-width: 900px) {
  .dash-split {
    flex-direction: column;
  }
  .detail-col {
    width: 100%;
  }
  .detail-panel {
    max-height: calc(100vh - 200px);
  }
}

/* full-screen chat mode */
.full-chat .tickets-col { display: none !important; }
.full-chat .detail-col { width: 100% !important; }
.full-chat .sidebar { display: none !important; }
.full-chat .topbar { display: none !important; }


@media (max-width: 768px) {
  .sidebar {
    width: 200px;
  }
  .detail-panel {
    padding: 16px;
    max-height: 60vh;
  }
  .chat-inp-row {
    padding: 10px 12px;
    gap: 6px;
  }
  .chat-inp {
  flex: 1;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  }
  .send-btn {
    padding: 8px 14px;
    font-size: 12px;
    min-width: 50px;
  }
  .upload-btn {
    height: 32px;
    width: 32px;
    font-size: 14px;
  }
}

@media (max-width: 600px) {
  .main {
    margin-left: 0;
  }
  .sidebar {
    position: fixed;
    left: -222px;
    width: 222px;
    height: 100vh;
    z-index: 300;
    transition: left 0.3s;
  }
  .sidebar.open {
    left: 0;
  }
  .topbar {
    padding: 0 16px;
  }
  .detail-panel {
    max-height: 50vh;
    padding: 14px;
  }
  .dp-ticket {
    font-size: 14px;
  }
  .dp-row {
    padding: 6px 0;
    font-size: 12px;
  }
 
  .c-msg {
    gap: 6px;
  }
  .c-av {
    width: 24px;
    height: 24px;
    font-size: 9px;
  }
  .c-who {
    font-size: 11px;
  }
  .c-time {
    font-size: 9px;
  }
  .c-txt {
    font-size: 11px;
  }
  .chat-inp-row {
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px 10px;
  }
  .upload-btn {
    height: 30px;
    width: 30px;
    font-size: 12px;
  }
  .chat-inp {
    flex: 1 1 100%;
    padding: 8px 10px;
    font-size: 12px;
    min-width: 200px;
  }
  .send-btn {
    flex: 0 0 auto;
    padding: 8px 12px;
    font-size: 11px;
    min-width: 45px;
  }
}

/* My Tickets Responsive */
@media (max-width: 900px) {
  .card {
    padding: 18px 20px;
  }
  .t-table thead th {
    font-size: 10px;
    padding: 0 8px 10px;
  }
  .t-table td {
    padding: 10px 8px;
    font-size: 12px;
  }
  /* Hide Priority and Due Date on tablets */
  .t-table thead th:nth-child(4),
  .t-table td:nth-child(4),
  .t-table thead th:nth-child(7),
  .t-table td:nth-child(7) {
    display: none;
  }
}

@media (max-width: 768px) {
  .pg-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .pg-head h1 {
    font-size: 18px;
  }
  .pg-head .raise-btn {
    align-self: flex-start;
    font-size: 12px;
    padding: 10px 16px;
  }
  .card {
    padding: 16px;
    border-radius: 12px;
  }
  .card-head {
    margin-bottom: 14px;
    flex-wrap: wrap;
  }
  .card-title {
    font-size: 15px;
  }
  .view-all {
    font-size: 12px;
  }
  /* Make table scrollable */
  .t-table {
    display: block;
    overflow-x: auto;
  }
  .t-table thead,
  .t-table tbody,
  .t-table tr {
    display: table;
    width: 100%;
  }
  .t-table thead th {
    font-size: 9px;
    padding: 0 6px 8px;
    letter-spacing: 0.8px;
  }
  .t-table td {
    padding: 8px 6px;
    font-size: 11px;
  }
  .t-table td:first-child {
    font-weight: 600;
  }
  /* Hide Raised On and Due Date columns */
  .t-table thead th:nth-child(5),
  .t-table td:nth-child(5),
  .t-table thead th:nth-child(7),
  .t-table td:nth-child(7) {
    display: none;
  }
}

@media (max-width: 600px) {
  .pg-head {
    flex-direction: column;
    align-items: stretch;
  }
  .pg-head h1 {
    font-size: 16px;
    margin-bottom: 8px;
  }
  .pg-head .raise-btn {
    width: 100%;
    font-size: 11px;
    padding: 10px 12px;
  }
  .card {
    padding: 12px;
    border-radius: 10px;
  }
  .card-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
  }
  .card-title {
    font-size: 14px;
  }
  /* Convert table to card-based layout for mobile */
  .t-table {
    display: block;
    border: none;
  }
  .t-table thead {
    display: none;
  }
  .t-table tbody {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .t-table tr {
    display: grid;
    gap: 8px;
    padding: 12px;
    background: var(--surface2);
    border-radius: 8px;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
  }
  .t-table tr:hover {
    box-shadow: var(--shadow);
    background: var(--surface);
  }
  .t-table tr.sel {
    box-shadow: var(--shadow);
    background: var(--surface);
  }
  .t-table td {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px;
    align-items: center;
    padding: 0;
    font-size: 12px;
    border: none;
  }
  .t-table td::before {
    content: attr(data-label);
    color: var(--text);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
  }
  /* Style for each column */
  .t-table td:nth-child(1)::before {
    content: 'Ticket ID';
  }
  .t-table td:nth-child(2)::before {
    content: 'Title';
  }
  .t-table td:nth-child(3)::before {
    content: 'Category';
  }
  .t-table td:nth-child(4)::before {
    content: 'Priority';
  }
  .t-table td:nth-child(5)::before {
    content: 'Raised On';
  }
  .t-table td:nth-child(6)::before {
    content: 'Status';
  }
  .t-table td:nth-child(7)::before {
    content: 'Due Date';
  }
}


.file-card{
  display:flex;
  align-items:center;
  gap:12px;
  background:#1f2937;
  color:#fff;
  border-radius:14px;
  padding:10px 14px;
  width:260px;
  margin-bottom:10px;
}

.file-icon{
  font-size:20px;
}

.file-info{
  flex:1;
}

.file-name{
  font-size:13px;
  font-weight:600;
}

.file-size{
  font-size:11px;
  opacity:.7;
}

.file-status{
  font-size:11px;
  color:#9ca3af;
}


/*========= in chat employee profile 
===================*/
.c-who-clickable {
  cursor: pointer;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
  transition: color 0.15s;
}

.c-who-clickable:hover {
  color: #1b3a8c;
}



/* ── Star Rating ── */
.star-btn {
  font-size: 36px;
  color: #d1d5db;
  cursor: pointer;
  transition: color 0.15s, transform 0.15s;
  user-select: none;
  line-height: 1;
}

.star-btn:hover,
.star-btn.active {
  color: #f59e0b;
  transform: scale(1.15);
}

.star-btn.active {
  text-shadow: 0 2px 8px rgba(245,158,11,0.4);
}

/* ===========================
   RESPONSIVE FIXES
=========================== */

@media (max-width:1200px){

  .dash-split{
      flex-direction:column;
  }

  .detail-col{
      width:100%;
  }

}

/* TABLET */
@media (max-width:992px){

  .sidebar{
      width:78px;
  }

  .logo-txt,
  .nav-item span,
  .logout-nav span{
      display:none;
  }

  .main{
      width:calc(100% - 78px);
  }

  .topbar{
      padding:0 16px;
  }

  .content{
      padding:18px;
  }

  .card{
      padding:16px;
  }

  .jobs-grid{
      grid-template-columns:1fr;
  }

}

/* MOBILE */
@media (max-width:768px){

  body{
      flex-direction:column;
      overflow:auto;
      height:auto;
  }

  .sidebar{
      width:100%;
      height:auto;
      flex-direction:row;
      overflow-x:auto;
  }

  .sb-logo{
      display:none;
  }

  .sb-nav{
      display:flex;
      gap:8px;
      padding:10px;
      overflow-x:auto;
  }

  .nav-item{
      white-space:nowrap;
      margin-bottom:0;
  }

  .main{
      width:100%;
  }

  .topbar{
      flex-wrap:wrap;
      height:auto;
      padding:14px;
      gap:10px;
  }

  .topbar-title{
      font-size:18px;
  }

  .content{
      padding:12px;
  }

  .dash-split{
      flex-direction:column;
  }

  .tickets-col,
  .detail-col{
      width:100%;
  }

  .t-table{
      display:block;
      overflow-x:auto;
      white-space:nowrap;
  }

  .jobs-header{
      flex-direction:column;
      align-items:flex-start;
      gap:10px;
  }

  .jobs-controls{
      flex-direction:column;
      align-items:stretch;
  }

  .job-modal{
      width:95%;
      padding:20px;
  }

}

/* SMALL MOBILE */
@media (max-width:480px){

  .card{
      padding:12px;
      border-radius:12px;
  }

  .u-name{
      display:none;
  }

  .topbar-title{
      font-size:16px;
  }

  .job-card{
      padding:16px;
  }

  .rd-modal,
  .vp-modal,
  .job-modal{
      width:96%;
      max-width:none;
      padding:18px;
  }

}

/* ========= MOBILE SIDEBAR FIX ========= */

.mobile-menu-btn{
display:none;
}

@media(max-width:768px){

.mobile-menu-btn{

display:flex;

align-items:center;

justify-content:center;

width:42px;
height:42px;

background:#0d2260;

color:#fff;

border:none;

border-radius:10px;

font-size:24px;

cursor:pointer;
}

/* SIDEBAR */

.sidebar{

position:fixed;

top:0;
left:-280px;

width:260px;

height:100vh;

display:flex;

flex-direction:column;

overflow:hidden;

z-index:9999;

transition:.3s ease;
}

/* OPEN */

.sidebar.mobile-open{
left:0;
}

/* NAV AREA */

.sb-nav{

flex:1;

display:flex;

flex-direction:column;

overflow-y:auto;

padding:18px 12px;

gap:8px;
}

/* SHOW ALL MENU ITEMS */

.nav-item{

display:flex;

align-items:center;

padding:12px 16px;

min-height:50px;

white-space:nowrap;
}

/* KEEP LOGOUT BOTTOM */

.logout-nav{

margin-top:auto;

padding:14px;
}

/* MAIN AREA */

.main{
width:100%;
}

}

.mobile-sidebar-header{
display:none;
}

@media(max-width:768px){

.mobile-sidebar-header{

display:flex;

justify-content:flex-end;

padding:14px;
}

.sidebar-back-btn{

background:#ffffff20;

color:white;

border:none;

padding:10px 16px;

border-radius:10px;

font-size:16px;

cursor:pointer;


font-weight:600;
}

.sidebar-back-btn:hover{

background:#ffffff35;
}

}

.typing-indicator{

height:24px;

font-size:13px;

color:#6b7280;

font-style:italic;

padding:4px 10px;

transition:.2s;
}

.last-seen{

font-size:12px;

color:#6b7280;

margin-top:4px;

font-style:italic;
}