/* index.css - Modern Dark Glassmorphism Styling System */

/* ========================================================= */
/* 1. Variables & Global Resets                             */
/* ========================================================= */
:root {
  color-scheme: dark;
  --bg-primary: #090a0f;
  --bg-secondary: #12131b;
  --bg-glass: rgba(20, 22, 33, 0.6);
  --bg-glass-card: rgba(28, 30, 46, 0.45);
  --border-glass: rgba(255, 255, 255, 0.07);
  --border-glass-focused: rgba(255, 255, 255, 0.18);
  
  /* Harmonized HSL Brand Colors */
  --color-primary: #3b82f6;      /* Blue */
  --color-primary-rgb: 59, 130, 246;
  --color-accent: #f43f5e;       /* Rose (Urgent) */
  --color-accent-rgb: 244, 63, 94;
  --color-success: #10b981;      /* Emerald */
  --color-warning: #eab308;      /* Amber */
  --color-info: #8b5cf6;         /* Violet (To Do) */
  
  /* Text and details */
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dark: #1f2937;
  
  /* Fonts & Shadows */
  --font-family: 'Outfit', sans-serif;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 16px -2px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 15px rgba(59, 130, 246, 0.15);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-family);
  height: 100vh;
  overflow: hidden;
  background-image: 
    radial-gradient(at 10% 20%, rgba(59, 130, 246, 0.08) 0px, transparent 50%),
    radial-gradient(at 90% 80%, rgba(244, 63, 94, 0.06) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(139, 92, 246, 0.04) 0px, transparent 50%);
  background-attachment: fixed;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* ========================================================= */
/* 2. Login Wrapper & Forms                                  */
/* ========================================================= */
.login-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  background-color: rgba(6, 7, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow-lg), 0 0 30px rgba(59, 130, 246, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.logo-badge {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-info));
  color: white;
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 16px;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.login-header h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 6px;
}

.login-header p {
  color: var(--text-muted);
  font-size: 14px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

input[type="text"],
input[type="password"],
input[type="url"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 14px;
  transition: all 0.25s ease;
  outline: none;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="url"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
  border-color: var(--color-primary);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

:root {
  color-scheme: dark;
}

select, option, optgroup, .select-field, .subtask-status-select, .board-selector select {
  color-scheme: dark !important;
}

select option, select optgroup, .subtask-status-select option, .select-field option {
  background-color: #12131c !important;
  color: #f8fafc !important;
}

select option:hover, select option:focus, select option:active, select option:checked {
  background-color: #1e1f30 !important;
  color: #ffffff !important;
}

.btn-delete-comment:hover {
  transform: scale(1.15);
}

/* ========================================================= */
/* 3. Layout & Navigation                                    */
/* ========================================================= */
.app-layout {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  background: rgba(18, 19, 27, 0.5);
  border-bottom: 1px solid var(--border-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo-badge-sm {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-info));
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.header-left h1 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.board-selector {
  display: flex;
  gap: 6px;
  background: rgba(0, 0, 0, 0.25);
  padding: 4px;
  border-radius: 8px;
  border: 1px solid var(--border-glass);
}

.nav-tab {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-tab:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.nav-tab.active {
  color: var(--text-main);
  background: var(--bg-glass-card);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 10px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.user-profile:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-glass);
}

.user-profile:active {
  transform: scale(0.98);
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-info), var(--color-primary));
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  font-size: 15px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.mc-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

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

.user-name {
  font-size: 13px;
  font-weight: 600;
}

.user-role {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* ========================================================= */
/* 4. Kanban Workspace & Columns                             */
/* ========================================================= */
.workspace {
  flex: 1;
  padding: 24px 32px;
  overflow-y: auto;
}

.board-view {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  gap: 20px;
}

.board-action-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.board-action-header h2 {
  font-size: 22px;
  font-weight: 600;
}

.kanban-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-content: stretch;
  flex: 1;
  min-height: 500px;
}

.kanban-column {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: all 0.25s ease;
}

/* Column Header Gradient Borders */
.kanban-column.column-urgent { border-top: 4px solid var(--color-accent); }
.kanban-column.column-todo { border-top: 4px solid var(--color-info); }
.kanban-column.column-inprogress { border-top: 4px solid var(--color-warning); }
.kanban-column.column-done { border-top: 4px solid var(--color-success); }

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

.column-header h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
}

.column-urgent .column-header h3 { color: var(--color-accent); }
.column-todo .column-header h3 { color: var(--color-info); }
.column-inprogress .column-header h3 { color: var(--color-warning); }
.column-done .column-header h3 { color: var(--color-success); }

.card-count {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 99px;
  border: 1px solid var(--border-glass);
}

.column-cards-container {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 200px;
  border-radius: 10px;
  padding: 2px;
}

.column-cards-container.drag-over {
  background: rgba(255, 255, 255, 0.03);
  outline: 2px dashed rgba(255, 255, 255, 0.15);
  outline-offset: -2px;
}

/* ========================================================= */
/* 5. Kanban Cards                                           */
/* ========================================================= */
.kanban-card {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 16px;
  cursor: grab;
  user-select: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.kanban-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), 0 0 10px rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.18);
}

.kanban-card:active {
  cursor: grabbing;
}

/* Left Indicator Strip */
.kanban-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
}

.column-urgent .kanban-card::before { background: var(--color-accent); }
.column-todo .kanban-card::before { background: var(--color-info); }
.column-inprogress .kanban-card::before { background: var(--color-warning); }
.column-done .kanban-card::before { background: var(--color-success); }

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.card-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.card-id {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
}

.card-body {
  margin-bottom: 14px;
}

.card-body h4 {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-main);
}

.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 11px;
}

.subtasks-icon {
  display: flex;
  align-items: center;
  gap: 4px;
}

.subtasks-icon svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.card-assignee-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-info));
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  cursor: default;
  overflow: hidden;
}

/* ========================================================= */
/* 6. Native Modals / Dialogs                                */
/* ========================================================= */
.glass-dialog {
  margin: auto;
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  background: var(--bg-glass);
  color: var(--text-main);
  padding: 0;
  max-width: 600px;
  width: calc(100% - 32px);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(0,0,0,0.6);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  outline: none;
  animation: modalSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.glass-dialog::backdrop {
  background-color: rgba(6, 7, 10, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-glass);
}

.header-details {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dialog-id-tag {
  font-size: 12px;
  font-weight: 700;
  background: var(--color-primary);
  color: white;
  padding: 3px 8px;
  border-radius: 6px;
}

.dialog-id-bug {
  background: var(--color-accent);
}

.dialog-header h3 {
  font-size: 18px;
  font-weight: 600;
}

.btn-close {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 28px;
  cursor: pointer;
  transition: color 0.2s ease;
  line-height: 1;
}

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

.glass-dialog form {
  padding: 24px;
}

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

.dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 10px;
}

/* Detailed Inspection Layout */
.inspect-dialog {
  max-width: 860px;
}

.inspect-layout {
  display: grid;
  grid-template-columns: 3fr 2fr;
  height: 520px;
}

.inspect-left {
  padding: 24px;
  overflow-y: auto;
  border-right: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.inspect-right {
  padding: 24px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.inspect-section h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

/* Editable Textareas */
.editable-desc {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-main);
  resize: none;
  min-height: 100px;
  transition: all 0.2s ease;
}

.editable-desc:focus {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--border-glass-focused);
}

.save-indicator {
  margin-top: 8px;
  animation: fadeIn 0.2s ease;
}

/* Progress bar inside Inspect Modal */
.progress-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.progress-bar-track {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 99px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-info));
  border-radius: 99px;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.progress-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

/* Sub-tasks list inside Inspection */
.subtask-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.subtask-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.subtask-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.subtask-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.subtask-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.subtask-title {
  font-size: 13.5px;
}

.subtask-item.completed .subtask-title {
  text-decoration: line-through;
  color: var(--text-muted);
}

.btn-remove-subtask {
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
  padding: 2px 6px;
  border-radius: 4px;
}

.btn-remove-subtask:hover {
  color: var(--color-accent);
  background: rgba(255, 255, 255, 0.05);
}

.add-subtask-inline input {
  background: rgba(255, 255, 255, 0.01);
  border: 1px dashed var(--border-glass);
}

.add-subtask-inline input:focus {
  border-style: solid;
}

/* Linked Items */
.linked-items-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.link-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  background: rgba(0, 0, 0, 0.1);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-glass);
}

.link-relation {
  color: var(--text-muted);
  font-style: italic;
}

.link-ref {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}

.link-ref:hover {
  text-decoration: underline;
}

/* Sidebar details */
.metadata-group label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.reporter-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  flex-wrap: wrap;
}

.reporter-info span[id] {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}


.user-avatar-sm {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-info));
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 10px;
  font-weight: 600;
  overflow: hidden;
}

.priority-label {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
}

.reported-by-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(244, 63, 94, 0.1);
  color: var(--color-accent);
  border: 1px solid rgba(244, 63, 94, 0.2);
}

/* Comments thread styling */
.comments-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comments-feed {
  max-height: 200px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 6px;
}

.comment-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.comment-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}

.comment-author {
  font-weight: 600;
  color: var(--color-primary);
}

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

.comment-text {
  font-size: 13px;
  line-height: 1.4;
}

.comment-input-area {
  display: flex;
  gap: 8px;
}

.comment-input-area-extended {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  padding: 10px;
}

.comment-input-row {
  display: flex;
  gap: 8px;
}

.comment-attachment-row {
  width: 100%;
}

.comment-attachment-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 6px;
  padding: 6px 10px;
  color: var(--text-color);
  font-size: 11px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.comment-attachment-input:focus {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.comment-attachment-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--color-primary);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: 6px;
  padding: 4px 8px;
  margin-top: 6px;
  width: fit-content;
  transition: background 0.2s, border-color 0.2s;
}

.comment-attachment-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Media preview block */
.media-preview-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.media-thumbnail-card {
  width: 120px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
  position: relative;
  background: #000;
}

.media-thumbnail-card img,
.media-thumbnail-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-link-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-main);
  text-decoration: none;
  transition: all 0.2s ease;
}

.media-link-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--color-primary);
}

/* ========================================================= */
/* 7. General Badges & Utility Components                     */
/* ========================================================= */
.badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-admin {
  background: rgba(244, 63, 94, 0.15);
  color: #fb7185;
}

.badge-member {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.badge-done {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.btn {
  font-family: var(--font-family);
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-info));
  color: white;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.25);
}

.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

.btn-accent {
  background: linear-gradient(135deg, var(--color-accent), #f97316);
  color: white;
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.25);
}

.btn-accent:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 15px rgba(244, 63, 94, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-glass-focused);
}

.btn-danger {
  background: rgba(244, 63, 94, 0.1);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.2);
}

.btn-danger:hover {
  background: var(--color-accent);
  color: white;
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.3);
}

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

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 6px;
}

.btn-xs {
  padding: 4px 8px;
  font-size: 10.5px;
  border-radius: 4px;
}

.subtask-creation-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}

.subtask-row {
  display: flex;
  gap: 8px;
}

.btn-remove-row {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
}

.btn-remove-row:hover {
  color: var(--color-accent);
}

.alert {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
}

.alert-error {
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #fda4af;
}

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

/* ========================================================= */
/* 8. Mobile Responsiveness                                  */
/* ========================================================= */
@media (max-width: 1024px) {
  .kanban-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .kanban-grid {
    grid-template-columns: 1fr;
  }
  
  .app-header {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  
  .header-left {
    justify-content: space-between;
  }
  
  .header-right {
    justify-content: space-between;
  }
  
  .inspect-layout {
    grid-template-columns: 1fr;
    height: auto;
  }
  
  .inspect-left {
    border-right: none;
    border-bottom: 1px solid var(--border-glass);
  }
}

/* ========================================================= */
/* 9. Nav Logo & Branding Image Support                      */
/* ========================================================= */
.logo-container-login {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.login-logo-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 16px;
}

.nav-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 8px;
}

.logo-nav-container {
  display: flex;
  align-items: center;
}

/* ========================================================= */
/* 10. Subtask Status Dropdown & Status Colour Dots          */
/* ========================================================= */

/* Subtask status indicator dot */
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: background 0.2s ease;
}
.status-dot.todo      { background: var(--text-muted); }
.status-dot.inprogress{ background: var(--color-info); }
.status-dot.urgent    { background: var(--color-warning); }
.status-dot.completed { background: var(--color-success); }

/* Subtask inline select dropdown */
.subtask-status-select {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-glass);
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s ease;
  max-width: 108px;
}

.subtask-status-select:hover {
  border-color: var(--color-primary);
}

.subtask-status-select option {
  background: var(--bg-panel);
  color: var(--text-main);
}

/* Status-tinted subtask items */
.subtask-item[data-status="URGENT"] {
  border-left: 3px solid var(--color-warning);
}
.subtask-item[data-status="IN PROGRESS"] {
  border-left: 3px solid var(--color-info);
}
.subtask-item[data-status="COMPLETED"] {
  border-left: 3px solid var(--color-success);
}
.subtask-item[data-status="TO DO"] {
  border-left: 3px solid transparent;
}

/* ========================================================= */
/* 11. Undo / Save Inline Row Group                          */
/* ========================================================= */
.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.section-title-row h4 {
  margin-bottom: 0 !important;
}

.undo-save-group {
  display: flex;
  gap: 6px;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-glass);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.06);
  color: var(--text-main);
}

.metadata-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-glass);
}

/* ========================================================= */
/* 12. Admin Panel Layout                                    */
/* ========================================================= */
.admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 0;
  flex-wrap: wrap;
}

.admin-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-family);
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  border-radius: 6px 6px 0 0;
}

.admin-tab:hover {
  color: var(--text-main);
  background: rgba(255,255,255,0.03);
}

.admin-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  background: rgba(59,130,246,0.05);
}

/* Admin sub-panel content */
.admin-panel-content {
  animation: fadeIn 0.2s ease;
}

.admin-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.admin-section-header h3 {
  font-size: 18px;
  font-weight: 600;
}

/* Inline form cards for create user/role */
.inline-form-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  animation: modalSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.inline-form-card h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.inline-form-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

/* Users Table */
.users-table-container {
  overflow-x: auto;
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  overflow: hidden;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.admin-table th {
  background: rgba(255,255,255,0.03);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-glass);
}

.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-glass);
  color: var(--text-main);
  vertical-align: middle;
}

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

.admin-table tbody tr:hover td {
  background: rgba(255,255,255,0.02);
}

.table-actions-cell {
  display: flex;
  gap: 6px;
}

/* Roles Grid */
.roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.role-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.role-card:hover {
  border-color: var(--color-primary);
  background: rgba(59,130,246,0.04);
}

.role-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.role-card-name {
  font-size: 16px;
  font-weight: 700;
}

.role-card-actions {
  display: flex;
  gap: 6px;
}

.role-permissions-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.perm-badge {
  background: rgba(59,130,246,0.1);
  color: #60a5fa;
  border: 1px solid rgba(59,130,246,0.2);
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
}

.perm-badge.no-perms {
  background: rgba(255,255,255,0.04);
  color: var(--text-muted);
  border-color: var(--border-glass);
}

/* Permissions checkboxes */
.permissions-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.perm-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  cursor: pointer;
}

.perm-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

/* ========================================================= */
/* 13. Branding / Logo Upload Zone                           */
/* ========================================================= */
.branding-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
}

.branding-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 24px;
}

.branding-card h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.logo-preview-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  background: rgba(0,0,0,0.2);
  border-radius: 10px;
  border: 1px dashed var(--border-glass);
}

.logo-preview-img {
  max-width: 160px;
  max-height: 160px;
  object-fit: contain;
  border-radius: 12px;
}

.logo-preview-placeholder {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 12px;
}

/* Drag & drop zone */
.logo-drop-zone {
  border: 2px dashed var(--border-glass);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.25s ease;
  cursor: pointer;
  background: rgba(255,255,255,0.01);
}

.logo-drop-zone:hover,
.logo-drop-zone.drag-over {
  border-color: var(--color-primary);
  background: rgba(59,130,246,0.05);
}

.drop-zone-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.drop-icon {
  font-size: 36px;
}

.drop-zone-inner p {
  font-size: 14px;
  font-weight: 500;
}

.drop-zone-inner span {
  font-size: 12px;
  color: var(--text-muted);
}

.upload-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 10px;
  text-align: center;
}

.logo-upload-preview {
  max-width: 100%;
  max-height: 160px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid var(--border-glass);
  margin-bottom: 12px;
  display: block;
}

.upload-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* ========================================================= */
/* 14. Nav Tab Admin Accent                                  */
/* ========================================================= */
.nav-tab-admin {
  border-color: transparent !important;
}

.nav-tab-admin.active {
  color: #c084fc !important;
  background: rgba(192,132,252,0.08) !important;
  border-bottom-color: #c084fc !important;
  border: 2px solid rgba(192,132,252,0.3) !important;
}

/* ========================================================= */
/* 15. Admin Responsive                                      */
/* ========================================================= */
@media (max-width: 860px) {
  .branding-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .admin-tabs {
    flex-direction: column;
  }
  .roles-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ========================================================= */
/* 16. Profile Card & Password Change Page                   */
/* ========================================================= */
.profile-card-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 20px;
  width: 100%;
}

.profile-card {
  width: 100%;
  max-width: 480px;
  background: var(--bg-glass-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.profile-avatar-large-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-glass);
}

.profile-avatar-large {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--color-info), var(--color-primary));
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  font-size: 28px;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
  overflow: hidden;
}

.profile-avatar-large img.mc-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.profile-user-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-user-meta h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-main);
}

.profile-password-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ========================================================= */
/* 17. Team Workload Section                                 */
/* ========================================================= */
.workload-section-container {
  margin-top: 40px;
  background: rgba(18, 19, 27, 0.4);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.workload-header h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-main);
}

.workload-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 20px;
  min-height: 250px;
}

.workload-users-panel {
  border-right: 1px solid var(--border-glass);
  padding-right: 20px;
}

.workload-users-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.workload-user-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.workload-user-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

.workload-user-item.active {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
  color: var(--color-primary);
}

.workload-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  font-size: 13px;
}

.workload-user-name {
  font-weight: 500;
  font-size: 14px;
}

.workload-user-count {
  margin-left: auto;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 10px;
  color: var(--text-muted);
}

.workload-details-panel {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  max-height: 400px;
}

.workload-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-muted);
  font-size: 14px;
  font-style: italic;
}

.workload-details-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 8px;
}

.workload-items-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.workload-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.workload-item-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.workload-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.workload-item-type {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.workload-item-type.task {
  background: rgba(59, 130, 246, 0.15);
  color: var(--color-info);
}

.workload-item-type.bug {
  background: rgba(244, 63, 94, 0.15);
  color: var(--color-accent);
}

.workload-item-id {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.workload-item-tag {
  font-size: 14px;
  font-weight: 500;
}

.workload-item-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.workload-item-relation {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
}

.workload-item-relation.assigned {
  background: rgba(59, 130, 246, 0.1);
  color: var(--color-info);
}

.workload-item-relation.reported {
  background: rgba(168, 85, 247, 0.1);
  color: #c084fc;
}

.workload-item-relation.both {
  background: rgba(236, 72, 153, 0.1);
  color: #f472b6;
}

/* ========================================================= */
/* 18. Mobile Responsiveness & Highlight Animations         */
/* ========================================================= */
@keyframes highlightPulseGlow {
  0% {
    outline: 3px solid #3b82f6;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.9);
    background-color: rgba(59, 130, 246, 0.25);
  }
  50% {
    outline: 3px solid #60a5fa;
    box-shadow: 0 0 30px rgba(96, 165, 250, 1);
    background-color: rgba(96, 165, 250, 0.35);
  }
  100% {
    outline: 1px solid transparent;
    box-shadow: 0 0 0px transparent;
    background-color: transparent;
  }
}

.highlight-pulse {
  animation: highlightPulseGlow 2.5s ease-in-out forwards;
  border-radius: 8px;
}

@media (max-width: 860px) {
  .app-header {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 14px;
    gap: 12px;
  }
  .header-left {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
  }
  .header-left h1 {
    font-size: 18px;
    text-align: center;
  }
  .board-selector {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .nav-tabs {
    width: 100%;
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .nav-tab {
    flex: 1;
    min-width: 90px;
    text-align: center;
    padding: 8px 6px;
    font-size: 12px;
    white-space: nowrap;
  }
  .header-right {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 4px;
    border-top: 1px solid var(--border-glass);
    padding-top: 10px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .kanban-grid, .kanban-grid-3 {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 14px !important;
    padding-bottom: 14px;
  }
  .kanban-column {
    flex: 0 0 85vw !important;
    max-width: 340px !important;
    min-width: 270px !important;
    scroll-snap-align: start;
  }
  .notifications-dropdown {
    width: 92vw !important;
    max-width: 380px !important;
    right: 8px !important;
    left: auto !important;
    top: 55px !important;
  }
  .glass-dialog {
    width: 95vw !important;
    max-width: 95vw !important;
    margin: 10px auto !important;
    padding: 16px !important;
    max-height: 92vh !important;
    overflow-y: auto !important;
  }
  .inspect-layout {
    grid-template-columns: 1fr !important;
    height: auto !important;
    gap: 16px !important;
  }
  .inspect-left, .inspect-right {
    overflow-y: visible !important;
    height: auto !important;
    padding: 12px !important;
  }
  .workload-layout {
    grid-template-columns: 1fr;
  }
  .workload-users-panel {
    border-right: none;
    border-bottom: 1px solid var(--border-glass);
    padding-right: 0;
    padding-bottom: 16px;
  }
}

@media (max-width: 480px) {
  .login-card {
    padding: 20px 14px;
  }
  .btn-primary, .btn-secondary {
    padding: 8px 12px;
    font-size: 13px;
  }
}

/* ========================================================= */
/* Player Reports Custom Styling                             */
/* ========================================================= */
.kanban-grid-3 {
  grid-template-columns: repeat(3, 1fr) !important;
}

/* Player Report Column Gradient Borders */
.kanban-column.column-open { border-top: 4px solid var(--color-info); }
.kanban-column.column-investigating { border-top: 4px solid var(--color-warning); }
.kanban-column.column-closed { border-top: 4px solid var(--color-success); }

.column-open .column-header h3 { color: var(--color-info); }
.column-investigating .column-header h3 { color: var(--color-warning); }
.column-closed .column-header h3 { color: var(--color-success); }

/* Player Report Cards styling */
.kanban-card.kanban-card-report {
  border-left: 3px solid var(--color-warning);
}
.card-id-report {
  background: rgba(243, 156, 18, 0.15);
  color: var(--color-warning) !important;
}
.card-tag-report {
  color: var(--color-warning) !important;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.dialog-id-report {
  background: var(--color-warning);
}

/* ========================================================= */
/* Notifications Center Styling                              */
/* ========================================================= */
.notifications-container {
  position: relative;
  margin-right: 15px;
  display: flex;
  align-items: center;
}

#btn-notifications {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  font-size: 18px;
}

#btn-notifications:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-glass-focused);
}

.badge-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--color-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 10px;
  padding: 2px 6px;
  line-height: 1;
}

.notifications-dropdown {
  position: absolute;
  top: 50px;
  right: 0;
  width: 320px;
  max-height: 400px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color-scheme: dark !important;
}

.notifications-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
}

.notifications-header h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}

.btn-clear-all {
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 12px;
  cursor: pointer;
  font-weight: 500;
}

.btn-clear-all:hover {
  text-decoration: underline;
}

.notifications-list {
  overflow-y: auto;
  max-height: 340px;
  flex-grow: 1;
}

.no-notifications {
  padding: 28px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.no-notifications span:first-child {
  font-size: 28px;
  opacity: 0.5;
}

.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-main);
  transition: background 0.2s ease;
  position: relative;
}

.notification-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

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

.notif-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  line-height: 1;
}

.notif-body {
  flex: 1;
  min-width: 0;
}

.notif-message {
  color: var(--text-main);
  font-size: 13px;
  line-height: 1.45;
  word-break: break-word;
}

.notif-time {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
}

.notif-dismiss {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  padding: 0 2px;
  border-radius: 4px;
  flex-shrink: 0;
  line-height: 1;
  transition: color 0.15s, background 0.15s;
  opacity: 0;
}

.notification-item:hover .notif-dismiss {
  opacity: 1;
}

.notif-dismiss:hover {
  color: var(--color-accent);
  background: rgba(244, 63, 94, 0.1);
}


/* ========================================================= */
/* Multiple Assignee Layout & Styling                        */
/* ========================================================= */
.assignees-list-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 5px;
}

.assignee-row-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
}

.assignee-left-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.assignee-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
}

.assignee-name-tag {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.assignee-role-badge {
  font-size: 10px;
  text-transform: uppercase;
  padding: 1px 4px;
  border-radius: 4px;
  font-weight: 700;
}

.btn-remove-assignee {
  background: none;
  border: none;
  color: var(--color-accent);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-remove-assignee:hover {
  background: rgba(244, 63, 94, 0.15);
}

.assignee-add-control {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.assignee-avatars-group {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  position: relative;
}

.assignee-mini-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
}


/* ========================================================= */
/* Subtask Transfer Styling                                  */
/* ========================================================= */
.btn-transfer-subtask {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-transfer-subtask:hover {
  color: var(--color-primary);
  background: rgba(59, 130, 246, 0.15);
}

