@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&family=JetBrains+Mono:wght@500;600&display=swap');
* { box-sizing: border-box; }
body {
  margin: 0;
  background: #10141B;
  color: #E8EAED;
  font-family: 'Cairo', 'Segoe UI', sans-serif;
  min-height: 100vh;
}
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }
::selection { background: #2DD4BF55; }

.topbar {
  border-bottom: 1px solid #1E242E;
  position: sticky; top: 0;
  background: #10141BEE;
  backdrop-filter: blur(8px);
  z-index: 10;
}
.topbar-inner { max-width: 920px; margin: 0 auto; padding: 16px 24px 0; }
.topbar-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 6px; height: 22px; background: linear-gradient(#2DD4BF,#F59E0B); border-radius: 3px; }
.switch-btn { background: none; border: none; color: #8B93A1; font-size: 13px; }
.tabs { display: flex; gap: 4px; }
.tab-btn {
  padding: 10px 4px; margin-left: 20px; background: none; border: none;
  border-bottom: 2px solid transparent; color: #8B93A1; font-weight: 600; font-size: 14px;
}
.tab-btn.active { color: #E8EAED; font-weight: 700; border-bottom-color: #2DD4BF; }

.content { padding: 20px 24px 60px; max-width: 920px; margin: 0 auto; }
h2.section-title { font-size: 18px; font-weight: 800; margin: 4px 0 16px; }

.card { background: #161B24; border: 1px solid #262D38; border-radius: 14px; padding: 20px; }
.field-label { font-size: 13px; color: #8B93A1; display: block; margin-bottom: 6px; }
.text-input, textarea, select {
  width: 100%; padding: 11px 14px; border-radius: 10px; border: 1px solid #262D38;
  background: #0F1319; color: #E8EAED; font-size: 14px; outline: none;
}
textarea { resize: vertical; }
.btn-primary {
  padding: 13px 0; width: 100%; border-radius: 10px; border: none;
  background: #2DD4BF; color: #0F1319; font-weight: 800; font-size: 15px;
}
.btn-primary:disabled, .btn-primary.disabled { background: #262D38; color: #8B93A1; }
.btn-secondary {
  padding: 11px 18px; border-radius: 10px; border: 1px solid #262D38; background: none;
  color: #8B93A1; font-weight: 700; font-size: 14px;
}
.link-btn { background: none; border: none; color: #2DD4BF; font-size: 12px; padding: 0; }

.group-picker { position: relative; }
.group-dropdown {
  position: absolute; top: 108%; right: 0; left: 0; background: #161B24;
  border: 1px solid #262D38; border-radius: 10px; max-height: 220px; overflow-y: auto;
  z-index: 20; box-shadow: 0 10px 30px #00000060;
}
.group-option { padding: 10px 14px; cursor: pointer; font-size: 14px; border-bottom: 1px solid #1E242E;
  display: flex; justify-content: space-between; }
.group-option:hover { background: #1B222C; }

.ticket-row {
  background: #161B24; border: 1px solid #262D38; border-radius: 12px; padding: 14px 16px;
  cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin-bottom: 10px;
}
.ticket-row .title { font-weight: 700; font-size: 14px; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket-row .preview { color: #8B93A1; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 320px; }
.ticket-row .emp { color: #5A6373; font-size: 11px; margin-top: 3px; }
.ticket-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }

.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
.badge-dot { width: 6px; height: 6px; border-radius: 999px; }
.timer { font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 600; }

.login-screen { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; padding: 24px; }
.login-grid { display: grid; grid-template-columns: repeat(2, 140px); gap: 12px; }
.emp-btn { padding: 16px 12px; border-radius: 12px; border: 1px solid #262D38; background: #161B24;
  color: #E8EAED; font-size: 15px; font-weight: 700; }
.emp-btn:hover { border-color: #2DD4BF; }

.modal-backdrop { position: fixed; inset: 0; background: #00000090; display: flex; align-items: flex-end; z-index: 50; }
.modal-sheet {
  background: #12161D; border-top: 1px solid #262D38; border-radius: 18px 18px 0 0;
  width: 100%; max-width: 920px; margin: 0 auto; max-height: 88vh; overflow-y: auto; padding: 20px 22px 32px;
}
.modal-close { background: none; border: none; color: #8B93A1; font-size: 22px; line-height: 1; }
.section-block { margin-bottom: 18px; }
.section-block .label { font-size: 12px; color: #8B93A1; font-weight: 700; margin-bottom: 8px; }

.toast {
  position: fixed; bottom: 20px; right: 50%; transform: translateX(50%);
  background: #F59E0B; color: #10141B; padding: 12px 20px; border-radius: 10px;
  font-weight: 700; font-size: 13px; box-shadow: 0 10px 30px #00000060; z-index: 100;
}

.pill { padding: 9px 16px; border-radius: 999px; border: 1px solid #262D38; background: #0F1319;
  color: #8B93A1; font-weight: 700; font-size: 13px; }
.pill.active { border-color: #2DD4BF; background: #2DD4BF1A; color: #2DD4BF; }

.note-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px;
  background: #0F1319; border-radius: 10px; border: 1px solid #1E242E; margin-bottom: 8px; }
.empty-state { color: #8B93A1; font-size: 14px; padding: 30px; text-align: center; }

