/* Terminal Theme Styling */
:root {
  --terminal-bg: #1a1b26;
  --terminal-text: #c0caf5;
  --terminal-border: #414868;
  --terminal-highlight: #bb9af7;
  --terminal-accent: #f7768e;
  --terminal-success: #9ece6a;
  --terminal-warning: #e0af68;
  --terminal-error: #f7768e;
  --terminal-link: #7aa2f7;
  --terminal-header: #414868;
  --terminal-font: 'Courier New', monospace;

  /* Modern theme additions */
  --card-bg: rgba(65, 72, 104, 0.2);
  --card-border: #414868;
  --card-shadow: rgba(0, 0, 0, 0.2);
  --card-header-bg: rgba(65, 72, 104, 0.4);
  --card-radius: 8px;
}

body {
  background: radial-gradient(circle at top left, rgba(187, 154, 247, 0.25), transparent 55%),
              radial-gradient(circle at top right, rgba(122, 162, 247, 0.25), transparent 50%),
              linear-gradient(135deg, #0f111a, #1a1b26 45%, #141523);
  color: var(--terminal-text);
  font-family: var(--terminal-font);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  font-size: 16px;
}

.hidden {
  display: none !important;
}

/* ASCII Art Header */
.ascii-header {
  font-family: monospace;
  white-space: pre;
  line-height: 1.2;
  color: var(--terminal-highlight);
  text-align: center;
  margin: 20px 0;
  font-size: 14px;
}

/* Terminal Container */
.terminal-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  border: 1px solid var(--terminal-border);
  border-radius: 5px;
  background-color: var(--terminal-bg);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Modern Header */
.modern-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--terminal-border);
}

.header-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--terminal-highlight);
}

.header-user {
  color: var(--terminal-accent);
  font-size: 16px;
}

/* Modern Navigation */
.modern-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding: 10px 15px;
  background-color: var(--card-bg);
  border-radius: var(--card-radius);
  box-shadow: 0 2px 8px var(--card-shadow);
}

.nav-links, .nav-auth {
  display: flex;
  gap: 10px;
  align-items: center;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  color: var(--terminal-text);
  text-decoration: none;
  border-radius: 6px;
  font-size: 15px;
  transition: all 0.2s ease;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-item:hover {
  color: var(--terminal-highlight);
  background-color: rgba(65, 72, 104, 0.5);
  text-decoration: none;
}

.nav-icon {
  font-size: 16px;
}

.notification-icon-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-item .notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: #f7768e;
  color: #1a1b26;
  border-radius: 999px;
  width: 10px;
  height: 10px;
  font-size: 10px;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px rgba(26, 27, 38, 0.1);
}

.nav-item.has-unread {
  background-color: rgba(247, 118, 142, 0.12);
  border: 1px solid rgba(247, 118, 142, 0.4);
}

.notifications-menu {
  position: relative;
}

.notifications-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 320px;
  background: rgba(15, 16, 24, 0.95);
  border: 1px solid rgba(247, 118, 142, 0.4);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 220;
}

.notifications-dropdown.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.notifications-dropdown-header,
.notifications-dropdown-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--terminal-accent);
  margin-bottom: 8px;
}

.notifications-dropdown-footer {
  margin-top: 10px;
  border-top: 1px solid rgba(247, 118, 142, 0.2);
  padding-top: 8px;
}

.notification-dropdown-link {
  color: #f7768e;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.notification-dropdown-link:hover {
  text-decoration: underline;
}

.notifications-dropdown-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.notification-preview-item {
  display: block;
  padding: 10px;
  border-radius: 10px;
  text-decoration: none;
  background: rgba(26, 27, 38, 0.9);
  border: 1px solid transparent;
  color: var(--terminal-text);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.notification-preview-item.is-unread {
  border-color: rgba(247, 118, 142, 0.7);
  background: rgba(56, 19, 35, 0.5);
}

.notification-preview-item:hover {
  border-color: rgba(247, 118, 142, 0.8);
  background: rgba(56, 19, 35, 0.6);
}

.notification-preview-message {
  font-size: 14px;
  margin-bottom: 6px;
}

.notification-preview-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--terminal-accent);
}

.notification-preview-type {
  color: var(--terminal-highlight);
}

/* Keep the old terminal nav styles for backward compatibility */
.terminal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--terminal-border);
  margin-bottom: 10px;
}

.terminal-title {
  font-size: 18px;
  font-weight: bold;
  color: var(--terminal-highlight);
}

.terminal-user {
  color: var(--terminal-accent);
}

.terminal-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
  padding: 5px 10px;
  background-color: var(--terminal-bg);
  border: 1px solid var(--terminal-border);
  border-radius: 3px;
}

.terminal-nav-item {
  display: inline-block;
  padding: 3px 8px;
  color: var(--terminal-text);
  text-decoration: none;
  border: 1px solid var(--terminal-border);
  border-radius: 3px;
  font-size: 14px;
  transition: all 0.2s ease;
}

.terminal-nav-item:before {
  content: "> ";
  color: var(--terminal-highlight);
}

.terminal-nav-item:hover {
  color: var(--terminal-highlight);
  background-color: rgba(65, 72, 104, 0.3);
  border-color: var(--terminal-highlight);
}

.nav-btn-wrapper {
  display: inline-block;
}

.nav-btn-wrapper form {
  margin: 0;
  padding: 0;
}

.nav-btn-wrapper .terminal-nav-item {
  border: 1px solid var(--terminal-border);
  background: none;
  cursor: pointer;
}

.nav-item-wrapper {
  position: relative;
  display: inline-block;
}

.my-tickets-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 260px;
  background: rgba(15, 16, 24, 0.85);
  border: 1px solid rgba(122, 162, 247, 0.2);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  padding: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 200;
}

.my-tickets-dropdown.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.notifications-page {
  background: rgba(26, 27, 38, 0.7);
  border: 1px solid rgba(65, 72, 104, 0.6);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.notifications-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.notifications-header h1 {
  margin: 0;
  font-size: 22px;
  color: var(--terminal-highlight);
}

.notifications-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--terminal-accent);
}

.notifications-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notification-card {
  border: 1px solid rgba(65, 72, 104, 0.6);
  border-radius: 10px;
  padding: 15px;
  background: rgba(15, 16, 24, 0.85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.notification-unread {
  border-color: rgba(247, 118, 142, 0.7);
  background: rgba(56, 19, 35, 0.4);
}

.notification-card-header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--terminal-accent);
  margin-bottom: 8px;
  letter-spacing: 0.08em;
}

.notification-type {
  text-transform: uppercase;
}

.notification-message {
  font-size: 15px;
  color: var(--terminal-text);
  margin-bottom: 12px;
}

.notification-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.notification-empty-state {
  text-align: center;
  padding: 30px;
  border: 1px dashed rgba(65, 72, 104, 0.6);
  border-radius: 10px;
  color: var(--terminal-accent);
}

.my-ticket-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--terminal-text);
  border: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.my-ticket-link:hover {
  border-color: rgba(122, 162, 247, 0.4);
  background: rgba(122, 162, 247, 0.08);
  text-decoration: none;
}

.my-ticket-priority {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--terminal-highlight);
}

.my-ticket-title {
  font-size: 13px;
  font-weight: 500;
}

.my-ticket-descriptors {
  display: flex;
  gap: 8px;
  font-size: 11px;
  color: var(--terminal-border);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.descriptor {
  display: inline-flex;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.descriptor-points {
  border-style: dashed;
}

.my-ticket-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.label-pill.small {
  padding: 2px 8px;
  font-size: 11px;
}

.my-tickets-placeholder {
  font-size: 12px;
  color: var(--terminal-border);
}

/* Terminal Content */
.terminal-content {
  padding: 10px 0;
}

/* Modern Table */
.modern-table-container {
  width: 100%;
  overflow-x: auto;
  margin: 10px 0;
  border-radius: var(--card-radius);
  box-shadow: 0 2px 8px var(--card-shadow);
  background-color: var(--card-bg);}

.modern-table {
  width: 100%;
  border-collapse: collapse;
}

.modern-table th {
  text-align: left;
  padding: 8px 10px;
  background-color: rgba(65, 72, 104, 0.3);
  color: var(--terminal-highlight);
  font-weight: normal;
  border-bottom: 1px solid var(--terminal-border);
}

.modern-table th:first-child {
  border-top-left-radius: var(--card-radius);
}

.modern-table th:last-child {
  border-top-right-radius: var(--card-radius);
}

.modern-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(65, 72, 104, 0.4);
}

.modern-table tr:last-child td {
  border-bottom: none;
}

.modern-table tr:hover td {
  background-color: rgba(65, 72, 104, 0.3);
}

/* Keep old table styles for backward compatibility */
.terminal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.terminal-table th {
  text-align: left;
  padding: 8px;
  border-bottom: 1px solid var(--terminal-border);
  color: var(--terminal-highlight);
}

.terminal-table td {
  padding: 8px;
  border-bottom: 1px dashed var(--terminal-border);
}

/* Terminal Forms */
.terminal-form {
  margin: 20px 0;
}

.profile-picture-editor {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 15px;
  align-items: start;
  margin-bottom: 25px;
}

.profile-picture-preview {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  border: 1px dashed var(--terminal-border);
  background-color: rgba(26, 27, 38, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.profile-picture-preview__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(122, 162, 247, 0.4);
}

.profile-picture-fields {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.profile-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin: 30px 0;
}

.profile-settings-section {
  padding: 20px;
  border: 1px dashed var(--terminal-border);
  border-radius: var(--card-radius);
  background-color: rgba(26, 27, 38, 0.65);
}

.profile-settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.profile-settings-header h3 {
  margin: 0;
  color: var(--terminal-highlight);
}

.profile-settings-header p {
  margin: 4px 0 0;
  color: var(--terminal-text);
  font-size: 13px;
}

.profile-section-command {
  font-family: var(--terminal-font);
  font-size: 13px;
  color: var(--terminal-accent);
  padding: 4px 8px;
  border: 1px solid rgba(187, 154, 247, 0.3);
  border-radius: 4px;
  background-color: rgba(65, 72, 104, 0.25);
}

/* Terminal Input */
.terminal-input {
  background-color: var(--terminal-bg);
  border: none;
  border-bottom: 1px dashed var(--terminal-border);
  color: var(--terminal-text);
  font-family: var(--terminal-font);
  font-size: 16px;
  padding: 5px;
  width: 80%;
  outline: none;
}

.terminal-input:focus {
  border-bottom: 1px solid var(--terminal-highlight);
}

/* Terminal Output */
.terminal-output {
  margin: 10px 0;
  max-height: 300px;
  overflow-y: auto;
}

.terminal-response {
  color: var(--terminal-text);
  font-family: var(--terminal-font);
  margin-left: 20px;
  padding: 5px 0;
}

/* Vim Command Bar */
.vim-command-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--terminal-bg);
  border-top: 1px solid var(--terminal-border);
  padding: 5px 10px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.vim-input-container {
  display: flex;
  align-items: center;
}

.vim-prompt {
  color: var(--terminal-highlight);
  margin-right: 10px;
  font-family: var(--terminal-font);
  font-weight: bold;
}

.vim-input {
  background-color: var(--terminal-bg);
  border: none;
  color: var(--terminal-text);
  font-family: var(--terminal-font);
  font-size: 16px;
  padding: 5px;
  flex-grow: 1;
  outline: none;
}

.vim-output {
  max-height: 150px;
  overflow-y: auto;
  margin-bottom: 5px;
  font-family: var(--terminal-font);
  color: var(--terminal-text);
  font-size: 14px;
}

/* Add padding to body to prevent content from being hidden behind the vim command bar */
body {
  padding-bottom: 40px;
}

.terminal-form-group {
  margin-bottom: 15px;
}

.terminal-form-row {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.terminal-form-row .terminal-form-group {
  flex: 1;
  min-width: 0;
}

.terminal-form-group label {
  display: block;
  margin-bottom: 5px;
  color: var(--terminal-highlight);
}

.terminal-form-group input[type="text"],
.terminal-form-group input[type="email"],
.terminal-form-group input[type="password"],
.terminal-form-group textarea,
.terminal-form-group select.terminal-select {
  width: 100%;
  padding: 8px;
  background-color: var(--terminal-bg);
  border: 1px solid var(--terminal-border);
  color: var(--terminal-text);
  font-family: var(--terminal-font);
}

.terminal-form-group input[type="text"]:focus,
.terminal-form-group input[type="email"]:focus,
.terminal-form-group input[type="password"]:focus,
.terminal-form-group textarea:focus,
.terminal-form-group select.terminal-select:focus {
  outline: none;
  border-color: var(--terminal-highlight);
}

.terminal-form-group select.terminal-select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c0caf5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 16px;
  padding-right: 30px;
}

/* Terminal Buttons */
.terminal-btn {
  display: inline-block;
  padding: 2px 6px;
  background-color: var(--terminal-bg);
  border: 1px solid var(--terminal-border);
  color: var(--terminal-text);
  text-decoration: none;
  cursor: pointer;
  font-family: var(--terminal-font);
  font-size: 14px;
  border-radius: 3px;
  transition: all 0.2s ease;
}

.terminal-btn:hover {
  background-color: rgba(65, 72, 104, 0.3);
  color: var(--terminal-highlight);
  border-color: var(--terminal-highlight);
}

.terminal-btn-primary {
  border-color: var(--terminal-highlight);
  color: var(--terminal-highlight);
}

.terminal-btn-danger {
  border-color: var(--terminal-error);
  color: var(--terminal-error);
}

.terminal-btn-success {
  border-color: var(--terminal-success);
  color: var(--terminal-success);
}

/* Modern Alerts */
.modern-alert {
  display: flex;
  align-items: center;
  padding: 15px;
  margin: 20px 0;
  border-radius: var(--card-radius);
  box-shadow: 0 2px 8px var(--card-shadow);
}

.modern-alert.success {
  background-color: rgba(158, 206, 106, 0.1);
  border-left: 4px solid var(--terminal-success);
}

.modern-alert.error {
  background-color: rgba(247, 118, 142, 0.1);
  border-left: 4px solid var(--terminal-error);
}

.modern-alert.warning {
  background-color: rgba(224, 175, 104, 0.1);
  border-left: 4px solid var(--terminal-warning);
}

.alert-icon {
  font-size: 20px;
  margin-right: 15px;
}

.success .alert-icon {
  color: var(--terminal-success);
}

.error .alert-icon {
  color: var(--terminal-error);
}

.warning .alert-icon {
  color: var(--terminal-warning);
}

.alert-message {
  flex: 1;
}

/* Modern Footer */
.modern-footer {
  margin-top: 40px;
  padding: 20px 0;
  border-top: 1px solid var(--terminal-border);
  text-align: center;
  font-size: 14px;
  color: var(--terminal-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-credit {
  font-size: 13px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-link {
  color: var(--terminal-link);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--terminal-highlight);
  text-decoration: underline;
}

/* Keep old alert styles for backward compatibility */
.terminal-alert {
  padding: 10px;
  margin: 15px 0;
  border: 1px dashed var(--terminal-border);
}

.terminal-alert-success {
  border-color: var(--terminal-success);
  color: var(--terminal-success);
}

.terminal-alert-error {
  border-color: var(--terminal-error);
  color: var(--terminal-error);
}

.terminal-alert-warning {
  border-color: var(--terminal-warning);
  color: var(--terminal-warning);
}

/* Keep old footer styles for backward compatibility */
.terminal-footer {
  margin-top: 30px;
  padding-top: 15px;
  border-top: 1px dashed var(--terminal-border);
  text-align: center;
  font-size: 14px;
  color: var(--terminal-border);
}

/* Terminal Labels */
.terminal-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(122, 162, 247, 0.4);
  background: rgba(26, 27, 38, 0.85);
  font-size: 13px;
}

/* Ticket Status */
.ticket-status {
  display: inline-block;
  padding: 3px 8px;
  margin: 2px;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--terminal-bg);
  font-weight: bold;
  text-transform: uppercase;
}

/* Ticket Meta */
.ticket-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Ticket Assignee */
.ticket-assignee {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 4px;
  background-color: var(--terminal-highlight);
  color: var(--terminal-bg);
  font-size: 0.9em;
  font-weight: bold;
}

.ticket-assignee-small {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  border-radius: 3px;
  background-color: var(--terminal-highlight);
  color: var(--terminal-bg);
  font-size: 0.8em;
  white-space: nowrap;
}

.ticket-unassigned {
  background-color: var(--terminal-border);
  color: var(--terminal-text);
  opacity: 0.8;
}

.status-none {
  background-color: #414868;
  color: var(--terminal-text);
}

.status-future {
  background-color: #7aa2f7;
}

.status-todo {
  background-color: #e0af68;
}

.status-in-progress {
  background-color: #bb9af7;
}

.status-testing {
  background-color: #7dcfff;
}

.status-qa {
  background-color: #9ece6a;
}

.status-completed {
  background-color: #1a1b26;
  color: var(--terminal-text);
  border: 1px solid var(--terminal-border);
}

/* Ticket Priority */
.ticket-priority {
  display: inline-block;
  padding: 3px 8px;
  margin: 2px;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--terminal-bg);
  font-weight: bold;
  text-transform: uppercase;
}

.priority-lowest {
  background-color: #414868;
  color: var(--terminal-text);
}

.priority-low {
  background-color: #7aa2f7;
}

.priority-medium {
  background-color: #e0af68;
}

.priority-high {
  background-color: #ff9e64;
}

.priority-highest {
  background-color: #f7768e;
}

.priority-blocker {
  background-color: #db4b4b;
}

/* Ticket Points */
.ticket-points {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--terminal-border);
  color: var(--terminal-text);
  font-size: 0.8em;
  font-weight: bold;
}

/* Terminal Links */
a {
  color: var(--terminal-link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Terminal Command Line */
.terminal-command {
  display: flex;
  align-items: center;
  margin: 10px 0;
}

.terminal-prompt {
  color: var(--terminal-highlight);
  margin-right: 10px;
}

/* ASCII Box Drawing */
.ascii-box {
  border: 1px solid var(--terminal-border);
  padding: 10px;
  margin: 10px 0;
  position: relative;
}

.ascii-box:before {
  content: "+";
  position: absolute;
  top: -1px;
  left: -1px;
  color: var(--terminal-highlight);
}

.ascii-box:after {
  content: "+";
  position: absolute;
  top: -1px;
  right: -1px;
  color: var(--terminal-highlight);
}

.ascii-box-footer:before {
  content: "+";
  position: absolute;
  bottom: -1px;
  left: -1px;
  color: var(--terminal-highlight);
}

.ascii-box-footer:after {
  content: "+";
  position: absolute;
  bottom: -1px;
  right: -1px;
  color: var(--terminal-highlight);
}

/* Modern Ticket Card Styling */
.modern-ticket-card {
  background: linear-gradient(135deg, rgba(26, 27, 38, 0.95), rgba(26, 27, 38, 0.85));
  border-radius: 12px;
  border: 1px solid rgba(122, 162, 247, 0.15);
  margin: 16px 0;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  backdrop-filter: blur(6px);
}

.modern-ticket-card:hover {
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.55);
  transform: translateY(-4px);
  border-color: rgba(122, 162, 247, 0.35);
}

.ticket-header {
background-color: rgba(65, 72, 104, 0.3);
  padding: 12px 16px;
  border-bottom: 1px solid var(--terminal-border);  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ticket-id {
  font-weight: bold;
  color: var(--terminal-highlight);
  font-size: 18px;
}

.ticket-content {
  padding: 18px;
}

.ticket-section {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(122, 162, 247, 0.2);
}

.ticket-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.ticket-title {
  color: var(--terminal-text);
  font-size: 22px;
  margin: 0 0 8px 0;
  font-weight: normal;
}

.section-title {
  color: var(--terminal-highlight);
  font-size: 16px;
  margin: 0 0 8px 0;
  font-weight: normal;
}

.ticket-description {
  color: var(--terminal-text);
  line-height: 1.6;
}

.ticket-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.no-labels, .no-updates {
  color: var(--terminal-border);
  font-style: italic;
}

.latest-update {
  margin-top: 4px;
  color: var(--terminal-text);
  font-size: 14px;
}

/* Ticket Actions */
.ticket-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.ticket-feed {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ticket-feed-item {
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(122, 162, 247, 0.2);
  background: rgba(15, 16, 24, 0.75);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
}

.ticket-feed-descriptors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  color: var(--terminal-border);
}

.ticket-feed-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.ticket-feed-title {
  margin: 0;
  font-size: 18px;
  color: var(--terminal-text);
}

.ticket-feed-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.ticket-feed-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

/* Update Items */
.terminal-updates {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.update-item {
  padding: 12px;
  border: 1px solid var(--terminal-border);
  border-radius: 6px;
  background-color: rgba(65, 72, 104, 0.1);
}

.update-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--terminal-border);
}

.update-user {
  color: var(--terminal-highlight);
  font-weight: bold;
}

.update-time {
  color: var(--terminal-border);
  font-size: 14px;
}

.update-content {
  color: var(--terminal-text);
  line-height: 1.5;
}

/* Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 20px;
  color: var(--terminal-border);
}

.empty-state p {
  margin-bottom: 20px;
  color: var(--terminal-text);
  font-size: 16px;
}

/* Help Page Styling */
.help-content {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.help-section {
  margin-bottom: 10px;
}

.help-section h2 {
  color: var(--terminal-highlight);
  font-size: 20px;
  margin-bottom: 10px;
  font-weight: normal;
  border-bottom: 1px dashed var(--terminal-border);
  padding-bottom: 5px;
}

.help-section p {
  margin-bottom: 10px;
  line-height: 1.6;
}

.help-section ul {
  list-style-type: none;
  padding-left: 20px;
}

.help-section li {
  position: relative;
  padding-left: 15px;
  margin-bottom: 5px;
  line-height: 1.6;
}

.help-section li:before {
  content: ">";
  position: absolute;
  left: 0;
  color: var(--terminal-highlight);
}

.command-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.command-item {
  padding: 10px;
  border: 1px solid var(--terminal-border);
  border-radius: 6px;
  background-color: rgba(65, 72, 104, 0.2);
}

.command-name {
  color: var(--terminal-highlight);
  font-weight: bold;
  margin-bottom: 5px;
  font-family: monospace;
}

.command-desc {
  color: var(--terminal-text);
  font-size: 14px;
}

/* Status Grid in Help Page */
.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px;
  margin: 15px 0;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 4px;
  background-color: rgba(65, 72, 104, 0.2);
}

.status-desc {
  color: var(--terminal-text);
  font-size: 14px;
}

/* Filter Form Styles */
.filter-form {
  margin: 0;
}

.filter-form-row {
  display: flex;
  align-items: flex-end;
  gap: 15px;
  flex-wrap: wrap;
}

.filter-form-row .terminal-form-group {
  flex: 1;
  min-width: 200px;
  margin-bottom: 10px;
}

.filter-form-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.active-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  margin-bottom: 15px;
  padding-top: 10px;
  border-top: 1px dashed var(--terminal-border);
}

.active-filter-label {
  color: var(--terminal-highlight);
  font-weight: bold;
}

.active-filter-tag {
  display: flex;
  gap: 5px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid var(--terminal-border);
  border-radius: 4px;
  background: rgba(65, 72, 104, 0.2);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.filter-chip .chip-label {
  color: var(--terminal-border);
}

.filter-chip .chip-value {
  text-transform: none;
  letter-spacing: normal;
}

/* User Mention Styling */
.user-mention {
  color: var(--terminal-accent);
  background-color: rgba(247, 118, 142, 0.15);
  padding: 2px 4px;
  border-radius: 3px;
  font-weight: bold;
  border: 1px solid rgba(247, 118, 142, 0.3);
  text-decoration: none;
  transition: all 0.2s ease;
}

.user-mention:hover {
  background-color: rgba(247, 118, 142, 0.25);
  border-color: var(--terminal-accent);
  text-decoration: none;
}

/* Mention Autocomplete Dropdown */
.mention-autocomplete {
  position: absolute;
  background-color: var(--terminal-bg);
  border: 2px solid var(--terminal-accent);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  max-height: 200px;
  overflow-y: auto;
  z-index: 9999;
  min-width: 200px;
  display: block;
}

.mention-autocomplete-item {
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid rgba(65, 72, 104, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.2s ease;
}

.mention-autocomplete-item:last-child {
  border-bottom: none;
}

.mention-autocomplete-item:hover,
.mention-autocomplete-item.selected {
  background-color: rgba(65, 72, 104, 0.4);
}

.mention-autocomplete-item .user-icon {
  color: var(--terminal-highlight);
  font-size: 14px;
}

.mention-autocomplete-item .user-name {
  color: var(--terminal-text);
  font-weight: bold;
}

.mention-autocomplete-item .user-username {
  color: var(--terminal-border);
  font-size: 12px;
}

/* Mention Input Container */
.mention-input-container {
  position: relative;
}
.pill-checkbox-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-checkbox {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(122, 162, 247, 0.4);
  background: rgba(26, 27, 38, 0.85);
  cursor: pointer;
  font-size: 13px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.pill-checkbox::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--label-pill-color, var(--terminal-highlight));
  box-shadow: 0 0 6px var(--label-pill-color, var(--terminal-highlight));
}

.pill-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
  margin: 0;
}

.pill-checkbox.is-selected {
  background: rgba(122, 162, 247, 0.18);
  border-color: var(--terminal-highlight);
  color: var(--terminal-highlight);
}

.pill-checkbox-text {
  pointer-events: none;
  color: inherit;
}

.pill-checkbox-icon {
  display: none;
  color: var(--terminal-highlight);
  font-size: 12px;
  pointer-events: none;
}

.pill-checkbox-icon.visible {
  display: inline-flex;
}

.pill-checkbox:hover {
  border-color: rgba(122, 162, 247, 0.8);
}

.label-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  margin: 2px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(26, 27, 38, 0.75);
  font-size: 12px;
  line-height: 1;
  color: var(--terminal-text);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.label-pill::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--label-pill-color, var(--terminal-highlight));
  box-shadow: 0 0 6px var(--label-pill-color, var(--terminal-highlight));
}

.label-pill:hover {
  border-color: var(--label-pill-color, var(--terminal-highlight));
  background: rgba(26, 27, 38, 0.9);
}

.pill-checkbox:hover {
  border-color: rgba(122, 162, 247, 0.8);
}
