body {
  font-family: "Inter", sans-serif;
  background-color: #111827;
  color: #d1d5db;
}

body.shift-active {
  user-select: none; /* Prevent text selection when holding shift */
  -webkit-user-select: none; /* For Safari */
}

#glow-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-shadow: inset 0 0 20px 8px rgba(239, 68, 68, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.1s ease-in-out;
  z-index: 9999;
}
body.shift-active #glow-overlay {
  opacity: 1;
}

.glass-card {
  background: rgba(31, 41, 55, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.pr-owner-me {
  background: rgba(55, 65, 81, 0.6);
  border: 1px solid rgba(167, 139, 250, 0.2);
}
.recent-repo-card {
  background: rgba(31, 41, 55, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}
.recent-repo-card:hover {
  background: rgba(55, 65, 81, 1);
  border-color: rgba(167, 139, 250, 0.3);
  transform: translateY(-2px);
}
.delete-recent-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.1);
  color: #9ca3af;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  opacity: 0.5;
  transition: all 0.2s ease-in-out;
}
.delete-recent-btn:hover {
  opacity: 1;
  background: #ef4444;
  color: #ffffff;
  transform: scale(1.1);
}
.filter-dropdown {
  position: relative;
}
.filter-btn {
  background-color: #374151;
  border: 1px solid #4b5563;
  color: #d1d5db;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.filter-dropdown-panel {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 4px;
  background-color: #1f2937;
  border: 1px solid #4b5563;
  border-radius: 8px;
  width: 280px;
  max-height: 400px;
  overflow-y: auto;
  z-index: 10;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.filter-clear-btn {
  padding: 8px 12px;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: #9ca3af;
  cursor: pointer;
  border-bottom: 1px solid #4b5563;
}
.filter-clear-btn:hover {
  color: #e5e7eb;
}
.filter-dropdown-item {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  cursor: pointer;
  position: relative;
}
.filter-dropdown-item:hover {
  background-color: #374151;
}
.filter-dropdown-item:last-child {
  border-bottom: none;
}
.filter-dropdown-item input {
  display: none; /* Hide the default checkbox */
}
.filter-item-checkmark {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}
.filter-dropdown-item input:checked ~ .filter-item-checkmark {
  opacity: 1;
}
.filter-item-label {
  padding-left: 24px;
}
.filter-dropdown-separator {
  height: 1px;
  background-color: #4b5563;
  margin: 4px 0;
}
.label-color-dot {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  margin-right: 8px;
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.pr-action-btn {
  background: none;
  border: 1px solid #4b5563;
  color: #9ca3af;
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease-in-out;
}
.pr-action-btn:hover {
  border-color: #a78bfa;
  color: #a78bfa;
}
.pr-number {
  color: #9ca3af;
  margin-right: 2px;
}
.jira-link {
  font-size: 11px;
  font-weight: 600;
  background-color: #273142;
  color: #8a9cb0;
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid #3c4a60;
  white-space: nowrap;
  transition: all 0.2s ease-in-out;
}
.jira-link:hover {
  color: #d1d5db;
  background-color: #3c4a60;
  border-color: #5d708a;
  text-decoration: none;
}
.pr-action-btn.active {
  background-color: #a78bfa;
  border-color: #a78bfa;
  color: #111827;
  font-weight: 600;
}
.pr-date-container {
  /* No special styles needed now, just a hover target */
}
.date-swap-grid {
  display: inline-grid;
  vertical-align: middle; /* Aligns grid with the "by user" text */
}
.date-swap-grid > span {
  grid-area: 1 / 1;
  transition: opacity 0.2s ease-in-out;
}
.pr-date-container .created-date {
  opacity: 0;
  pointer-events: none;
}
.pr-date-container:hover .created-date {
  opacity: 1;
}
.pr-date-container:hover .updated-date {
  opacity: 0;
}
.pr-actions-container {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem; /* Match the parent's gap for symmetry */
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pr-labels-container {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  flex: 1;
}
.pr-label-badge {
  background-color: #1f2937;
  border: 1px solid;
  color: #d1d5db;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}
.pr-label-badge:hover {
  transform: translateY(-1px);
  border-color: #e5e7eb;
}
body.shift-active .pr-label-badge:hover {
  background-color: #ef4444;
  border-color: #ef4444 !important;
  color: #ffffff;
}
#logo {
  position: relative;
}
.logo-letter {
  color: #4b5563; /* Dim color by default */
  transition: color 0.3s ease-in-out;
}
.logo-letter.scrambling {
  color: #6b7280; /* Slightly brighter while scrambling */
}
.logo-letter.revealed {
  color: #a78bfa;
  text-shadow: 0 0 5px rgba(167, 139, 250, 0.5),
    0 0 10px rgba(167, 139, 250, 0.3);
}
.logo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  background: radial-gradient(
    circle,
    rgba(167, 139, 250, 0.2) 0%,
    rgba(167, 139, 250, 0) 60%
  );
  animation: pulse 4s infinite ease-in-out;
  z-index: -1;
}

@keyframes pulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.7;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0.3;
  }
}
.input-field {
  background-color: #1f2937;
  border: 1px solid #4b5563;
  color: #d1d5db;
  transition: all 0.2s ease-in-out;
}
.input-field:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
}
.btn-primary {
  background-color: #a78bfa;
  color: #ffffff;
  transition: background-color 0.2s ease-in-out;
}
.btn-primary:hover {
  background-color: #8868e8;
}
.btn-secondary {
  background-color: #4b5563;
  color: #e5e7eb;
  transition: background-color 0.2s ease-in-out;
}
.btn-secondary:hover {
  background-color: #6b7280;
}
.btn-danger {
  background-color: #ef4444;
  color: #ffffff;
  transition: background-color 0.2s ease-in-out;
}
.btn-danger:hover {
  background-color: #dc2626;
}
.btn-icon {
  background: none;
  border: none;
  color: #9ca3af;
  border-radius: 9999px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.4s ease-in-out;
  transform: translateY(-40%);
}
.btn-icon svg {
  transition: all 0.4s ease-in-out;
}
.btn-icon:hover {
  background-color: #374151;
  color: #e5e7eb;
}
.btn-icon:not(:disabled):hover svg {
  transform: rotate(179deg);
}
#todo-count {
  background-color: #8b5cf6;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 4px;
}
#todo-count.zero {
  background-color: #4b5563;
}
.btn-icon:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.loader {
  border-color: #4b5563;
  border-top-color: #3b82f6;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.status-badge {
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}
.decision-APPROVED {
  background-color: #10b981;
  color: #ffffff;
}
.decision-CHANGES_REQUESTED {
  background-color: #7e463b;
  color: #ffffff;
}
.decision-REVIEW_REQUIRED {
  background-color: #f59e0b;
  color: #1f2937;
}
.decision-MY_REVIEW_REQUIRED {
  background-color: #8b5cf6;
  color: #ffffff;
}
.decision-DRAFT {
  background-color: #6b7280;
  color: #e5e7eb;
}
.decision-OWNER_WAITING {
  background-color: #3b82f6;
  color: #ffffff;
}
.decision-OWNER_ACTION_REQUIRED {
  background-color: #ef4444;
  color: #ffffff;
}
.decision-AWAITING_MERGE {
  background-color: #10b981;
  color: #ffffff;
}

.state-APPROVED {
  color: #34d399;
}
.state-CHANGES_REQUESTED {
  color: #f87171;
}
.status-CURRENT {
  color: #60a5fa;
}
.status-OUTDATED {
  color: #fbbf24;
}
.status-REQUESTED {
  color: #9ca3af;
}
.status-REREQUESTED {
  color: #dac39a;
}
.user-me {
  color: #a78bfa;
  font-weight: 600;
}

.reviewer-me-action {
  background: rgba(139, 92, 246, 0.2);
  border-radius: 4px;
  padding: 2px 6px;
  margin: -2px -6px;
}
.reviewer-me-no-action {
  background: rgba(139, 92, 246, 0.08);
  border-radius: 4px;
  padding: 2px 6px;
  margin: -2px -6px;
}

.fade-in {
  animation: fadeIn 0.5s ease-in-out forwards;
}
.fade-out {
  animation: fadeOut 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.sort-btn {
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  background-color: #374151;
  color: #d1d5db;
  border: 1px solid transparent;
  transition: all 0.2s ease-in-out;
}
.sort-btn:hover {
  background-color: #4b5563;
}
.sort-btn.active {
  background-color: #3b82f6;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.4);
}
