/* Design System & Custom Properties */
:root {
  color-scheme: dark;
  /* Slate/Zinc Premium Dark Theme - Enterprise & Eye-Friendly */
  --bg-app: #0B0F19;                     /* Deep dark slate backdrop */
  --bg-surface: #1E293B;                 /* Premium slate gray surface for containers */
  --bg-card: #0F172A;                    /* Deep dark slate for cards (provides nice layer depth) */
  --bg-input: #0B0F19;                   /* Input field backgrounds */
  --bg-surface-hover: rgba(255, 255, 255, 0.04);
  
  --primary: #6366F1;                    /* Modern Indigo */
  --primary-glow: rgba(99, 102, 241, 0.15);
  --primary-hover: #818CF8;
  --text-main: #F8FAFC;                  /* Crisp soft white for headings/body */
  --text-muted: #94A3B8;                 /* Muted slate gray for secondary labels */
  --text-light: #64748B;                 /* Dimmed text color for logs/subtext */
  --border: #334155;                     /* Sleek, thin border color */
  --border-focus: #6366F1;

  /* Column Accents - Soft Muted Palette for Dark Mode */
  --status-new: #38BDF8;                 /* Sky Blue */
  --status-new-bg: rgba(56, 189, 248, 0.1);
  --status-in-progress: #C084FC;         /* Violet/Lavender */
  --status-in-progress-bg: rgba(192, 132, 252, 0.1);
  --status-have-a-question: #FBBF24;     /* Amber */
  --status-have-a-question-bg: rgba(251, 191, 36, 0.1);
  --status-done: #34D399;                /* Emerald Green */
  --status-done-bg: rgba(52, 211, 153, 0.1);

  /* Priorities - Eye-Friendly Colors */
  --priority-high: #F87171;
  --priority-high-bg: rgba(248, 113, 113, 0.1);
  --priority-medium: #FBBF24;
  --priority-medium-bg: rgba(251, 191, 36, 0.1);
  --priority-low: #60A5FA;
  --priority-low-bg: rgba(96, 165, 250, 0.1);

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.25), 0 2px 4px -1px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

/* Reset & Basics */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-app);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(124, 58, 237, 0.04) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
  height: 100vh;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-app);
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Common UI Elements */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-primary:active {
  background: var(--primary);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-main);
}

.btn-outline:hover {
  background: var(--bg-surface-hover);
  border-color: var(--text-muted);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #F87171;
}

.btn-danger:hover {
  background: #EF4444;
  color: #ffffff;
  border-color: #EF4444;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
}

/* Auth Pages (Clean Dark BG with Surface Card) */
.auth-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: radial-gradient(circle at center, #1E293B 0%, #0B0F19 100%);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 3rem 2.5rem;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-main);
  box-shadow: var(--shadow-lg);
}

.auth-header {
  text-align: center;
  margin-bottom: 2.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo {
  font-size: 2.25rem;
  font-weight: 800;
  font-family: 'Share Tech Mono', 'Consolas', 'Courier New', monospace;
  letter-spacing: 0.05em;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.brand-accent {
  color: var(--primary);
}

.auth-header p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 0.875rem;
  transition: var(--transition);
}

select {
  color-scheme: dark;
}

select option {
  background-color: #1E293B; /* Hex fallback for var(--bg-surface) */
  color: #F8FAFC; /* Hex fallback for var(--text-main) */
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: var(--text-light);
}

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

.toast {
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow-lg);
  color: var(--text-main);
  font-size: 0.875rem;
  animation: slideIn 0.3s ease forwards;
}

.toast.success { border-left-color: var(--status-done); }
.toast.error { border-left-color: var(--priority-high); }

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

/* Header / Navbar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 2rem;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  color: var(--text-main);
}

.navbar .nav-brand {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: 'Share Tech Mono', 'Consolas', 'Courier New', monospace;
  letter-spacing: 0.05em;
  color: var(--text-main);
}


.nav-center {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.view-toggle {
  display: flex;
  background: var(--bg-app);
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--text-muted);
  font-family: var(--font-family);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.toggle-btn:hover {
  color: var(--text-main);
}

.toggle-btn.active {
  background: var(--bg-surface);
  color: var(--text-main);
  box-shadow: var(--shadow);
}

.nav-link {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--text-main);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, #818CF8 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}

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

.user-info span:first-child {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
}

.role-badge {
  font-size: 0.6875rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 800;
  display: inline-flex;
}

.role-badge.admin {
  background: rgba(167, 139, 250, 0.15);
  color: #C084FC;
}

.role-badge.developer {
  background: rgba(52, 211, 153, 0.15);
  color: #34D399;
}

.role-badge.tester {
  background: rgba(56, 189, 248, 0.15);
  color: #38BDF8;
}

/* Toolbar */
.main-content {
  padding: 2rem;
  max-width: 1600px;
  margin: 0 auto;
  min-height: calc(100vh - 70px);
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
}

.search-box {
  position: relative;
  flex-grow: 1;
  max-width: 480px;
}

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

.search-box input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.875rem;
  transition: var(--transition);
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.filter-group {
  display: flex;
  gap: 0.75rem;
}

.filter-group select {
  padding: 0.75rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.875rem;
  cursor: pointer;
  outline: none;
  transition: var(--transition);
}

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

/* Kanban Board Columns */
.board-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.board-column {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1.5rem 1.25rem;
  min-height: 75vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid transparent;
}

.column-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

.column-count {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.board-column[data-status="new"] .column-count { background: var(--status-new-bg); color: var(--status-new); border-color: rgba(56, 189, 248, 0.2); }
.board-column[data-status="in-progress"] .column-count { background: var(--status-in-progress-bg); color: var(--status-in-progress); border-color: rgba(192, 132, 252, 0.2); }
.board-column[data-status="have-a-question"] .column-count { background: var(--status-have-a-question-bg); color: var(--status-have-a-question); border-color: rgba(251, 191, 36, 0.2); }
.board-column[data-status="done"] .column-count { background: var(--status-done-bg); color: var(--status-done); border-color: rgba(52, 211, 153, 0.2); }

.border-new { border-bottom-color: var(--status-new); }
.border-in-progress { border-bottom-color: var(--status-in-progress); }
.border-have-a-question { border-bottom-color: var(--status-have-a-question); }
.border-done { border-bottom-color: var(--status-done); }

.column-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-grow: 1;
  transition: var(--transition);
  border: 2px solid transparent;
}

.column-cards.drag-over {
  background: rgba(99, 102, 241, 0.03);
  border: 2px dashed rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-sm);
}

.board-grid.is-dragging .board-column * {
  pointer-events: none;
}
.board-grid.is-dragging .bug-card.dragging {
  pointer-events: auto !important;
}

/* Kanban Cards (Premium cards inside columns) */
.bug-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), 
              border-color 0.2s ease, 
              background-color 0.2s ease, 
              box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
  color: var(--text-main);
}

.bug-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  background: var(--bg-surface);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35), 0 0 15px var(--primary-glow);
}

.bug-card.dragging {
  opacity: 0.35;
  border-style: dashed;
  border-color: var(--text-light);
}

.card-priority-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
}

.card-priority-high { background-color: var(--priority-high); }
.card-priority-medium { background-color: var(--priority-medium); }
.card-priority-low { background-color: var(--priority-low); }

.bug-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.bug-id-text {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-light);
}

.bug-card-thumbnail {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  border: 1px solid var(--border);
}

.bug-card-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bug-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.bug-card-creator {
  font-weight: 600;
}

.bug-card-date {
  color: var(--text-light);
}

/* List View Table */
.list-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.list-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.list-table th,
.list-table td {
  padding: 1rem 1.5rem;
}

.list-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.list-table td {
  border-bottom: 1px solid var(--border);
  color: var(--text-main);
}

.list-table tbody tr {
  cursor: pointer;
  transition: var(--transition);
}

.list-table tbody tr:hover {
  background: var(--bg-surface-hover);
}

.list-thumbnail {
  width: 60px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.list-url-cell {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Badges */
.badge {
  display: inline-flex;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-low { background: var(--priority-low-bg); color: var(--priority-low); }
.badge-medium { background: var(--priority-medium-bg); color: var(--priority-medium); }
.badge-high { background: var(--priority-high-bg); color: var(--priority-high); }

.badge-status {
  padding: 0.2rem 0.5rem;
}
.badge-new { background: var(--status-new-bg); color: var(--status-new); }
.badge-in-progress { background: var(--status-in-progress-bg); color: var(--status-in-progress); }
.badge-have-a-question { background: var(--status-have-a-question-bg); color: var(--status-have-a-question); }
.badge-done { background: var(--status-done-bg); color: var(--status-done); }

/* Modals & Overlays */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  color: var(--text-main);
}

.modal-large {
  max-width: 1100px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.modal-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modal-header-left h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}

.id-badge {
  background: var(--bg-app);
  border: 1px solid var(--border);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-main);
}

.btn-close-modal:not(.btn) {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.75rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-close-modal:not(.btn):hover {
  color: var(--text-main);
}

.modal-card > form {
  padding: 1.5rem;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Modal Body Split (Detailed View) */
.modal-body-split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  flex-grow: 1;
  overflow: hidden;
}

.modal-details-left {
  padding: 1.5rem;
  border-right: 1px solid var(--border);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.modal-details-right {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  gap: 1.5rem;
}

.screenshot-container {
  width: 100%;
  position: relative;
}

.bug-main-image {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  cursor: pointer;
}

.image-placeholder {
  width: 100%;
  height: 200px;
  background: var(--bg-app);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.metadata-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.meta-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.meta-val {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
}

.url-bar-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: var(--bg-app);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.detail-link-url {
  color: #818CF8;
  font-size: 0.8125rem;
  word-break: break-all;
  text-decoration: none;
  font-weight: 600;
}

.detail-link-url:hover {
  text-decoration: underline;
}

.attachments-list-section h4,
.logs-section h4,
.description-section h4,
.comments-section h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
}

.attachments-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.attachment-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-app);
  border: 1px solid var(--border);
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
}

.attachment-item a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
  max-width: 70%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-item a:hover {
  text-decoration: underline;
}

/* Logs Terminal Viewport */
.logs-terminal {
  background: #090D16;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  max-height: 250px;
  overflow-y: auto;
  font-family: Consolas, Monaco, "Lucida Console", monospace;
  font-size: 0.75rem;
  line-height: 1.4;
}

.log-entry {
  margin-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding-bottom: 0.5rem;
}

.log-entry:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.log-meta {
  display: flex;
  justify-content: space-between;
  color: var(--text-light);
  margin-bottom: 0.2rem;
  font-weight: 600;
}

.log-console_error .log-meta span:first-child { color: #F87171; }
.log-runtime_error .log-meta span:first-child { color: #EF4444; }
.log-network_error .log-meta span:first-child { color: #FBBF24; }

.log-msg {
  word-break: break-all;
  white-space: pre-wrap;
  color: #E5E7EB;
}

.log-console_error .log-msg,
.log-runtime_error .log-msg {
  color: #FCA5A5;
}

.log-network_error .log-msg {
  color: #FCD34D;
}

/* Discussion / Comments Section */
.comments-feed {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 0.25rem;
  margin-bottom: 0.75rem;
}

.comment-card {
  background: var(--bg-app);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
}

.comment-author {
  font-weight: 700;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.comment-author-role {
  font-size: 0.625rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

.comment-date {
  color: var(--text-light);
}

/* Markdown Rendering Inside Comments */
.markdown-body {
  font-size: 0.8125rem;
  color: var(--text-main);
  line-height: 1.4;
}

.markdown-body p {
  margin-bottom: 0.5rem;
}

.markdown-body p:last-child {
  margin-bottom: 0;
}

.markdown-body strong {
  color: #ffffff;
  font-weight: 700;
}

.markdown-body code {
  font-family: monospace;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.15rem 0.3rem;
  border-radius: 4px;
  color: #F472B6;
}

.markdown-body pre {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  padding: 0.6rem;
  border-radius: 6px;
  overflow-x: auto;
  margin: 0.5rem 0;
}

.markdown-body pre code {
  background: none;
  padding: 0;
  color: #E5E7EB;
}

/* User Management Modal Splitting */
.user-mgmt-split {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  flex-grow: 1;
  overflow: hidden;
}

.user-create-form-section {
  padding: 1.5rem;
  border-right: 1px solid var(--border);
  overflow-y: auto;
}

.user-create-form-section h3,
.user-list-section h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.user-list-section {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.table-scroll-container {
  flex-grow: 1;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-app);
}

.user-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.8125rem;
}

.user-table th,
.user-table td {
  padding: 0.75rem 1rem;
}

.user-table th {
  background: var(--bg-app);
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
}

.user-table td {
  border-bottom: 1px solid var(--border);
  color: var(--text-main);
}

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

/* Global Empty State placeholder design */
.empty-state {
  padding: 3rem;
  text-align: center;
  color: var(--text-muted);
}

.column-cards .image-placeholder {
  background: var(--bg-app);
  border: 1px dashed var(--border);
  color: var(--text-muted);
  height: 60px;
  font-size: 0.75rem;
}

/* Comment Form Stacked Layout */
#comment-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  margin-top: 0.5rem;
}

#comment-input {
  width: 100%;
  min-height: 90px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 0.75rem 1rem;
  font-family: var(--font-family);
  font-size: 0.875rem;
  resize: vertical;
  transition: var(--transition);
}

#comment-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

#comment-form .btn {
  align-self: flex-end;
}

/* Premium styling for Change Request (CR) cards */
.bug-card.type-cr:hover {
  border-color: #10B981;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35), 0 0 15px rgba(16, 185, 129, 0.25);
}

.bug-card.type-cr .bug-id-text {
  color: #34D399;
}

/* Custom Type Badges */
.badge-type-cr {
  background-color: rgba(16, 185, 129, 0.15) !important;
  color: #34D399 !important;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-type-bug {
  background-color: rgba(239, 68, 68, 0.15) !important;
  color: #F87171 !important;
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* Chrome Extension Installation Guide Premium Styling */
.guide-step {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.75rem;
  margin-bottom: 1rem;
}
.guide-step:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}
.guide-header-group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0.75rem;
}
.guide-step-badge {
  background: rgba(99, 102, 241, 0.15) !important;
  color: #818CF8 !important;
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
}
.guide-step-title {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}
.guide-step code {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.875rem;
  color: #818CF8;
}
.guide-mock-chrome {
  background: #0D111A;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.25rem;
  border-radius: 8px;
  font-family: system-ui, -apple-system, sans-serif;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 500px;
  margin: 1rem auto 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.guide-mock-actions {
  background: #0D111A;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.25rem;
  border-radius: 8px;
  font-family: system-ui, -apple-system, sans-serif;
  display: flex;
  gap: 0.75rem;
  max-width: 500px;
  margin: 1rem auto 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.guide-mock-actions button {
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: not-allowed;
  transition: var(--transition);
}
.guide-mock-actions .btn-unpacked {
  background: var(--primary);
  color: white;
  border: none;
  box-shadow: 0 0 8px var(--primary-glow);
}
.guide-mock-actions .btn-disabled {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.guide-mock-extension {
  background: #0F172A;
  border: 1px solid rgba(16, 185, 129, 0.3);
  width: 290px;
  padding: 1.5rem;
  border-radius: 12px;
  font-family: system-ui, sans-serif;
  margin: 1rem auto 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(16, 185, 129, 0.15);
}

/* Custom Scrollbar for Guide */
.guide-scrollable::-webkit-scrollbar {
  width: 6px;
}
.guide-scrollable::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 4px;
}
.guide-scrollable::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}
.guide-scrollable::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* Close Button circular hover */
.modal-header .btn-close-modal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  transition: var(--transition);
}
.modal-header .btn-close-modal:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* Select element hover animations */
.filter-group select:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background-color: rgba(255, 255, 255, 0.02);
}

