/* Toast notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 20000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 420px;
}

.toast-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  font-size: 14px;
  font-weight: 500;
  animation: toast-in 0.25s ease;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.toast-info {
  background: #1f2937;
  color: #f9fafb;
  border: 1px solid #374151;
}

.toast-success {
  background: #064e3b;
  color: #ecfdf5;
  border: 1px solid #059669;
}

.toast-error {
  background: #7f1d1d;
  color: #fef2f2;
  border: 1px solid #dc2626;
}

.toast-warning {
  background: #78350f;
  color: #fffbeb;
  border: 1px solid #d97706;
}

.toast-dismiss {
  background: transparent;
  border: none;
  color: inherit;
  opacity: 0.7;
  cursor: pointer;
  padding: 2px;
  margin-left: auto;
}

.toast-dismiss:hover {
  opacity: 1;
}

/* Confirm dialog */
.confirm-dialog-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 15000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.confirm-dialog {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  min-width: 320px;
  max-width: 400px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.confirm-dialog-message {
  margin: 0 0 20px;
  font-size: 15px;
  color: #374151;
  line-height: 1.5;
  white-space: pre-line;
}

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

.confirm-dialog-cancel,
.confirm-dialog-confirm {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
}

.confirm-dialog-cancel {
  background: #f3f4f6;
  color: #374151;
}

.confirm-dialog-confirm {
  background: #064b36;
  color: #fff;
}

/* Right panel empty state */
.right-panel-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 40px;
  text-align: center;
  gap: 12px;
}

.right-panel-empty-title {
  font-size: 18px;
  font-weight: 700;
  color: #374151;
}

.right-panel-empty-desc {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
  max-width: 280px;
}

.right-panel-reset-btn {
  margin-top: 8px;
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid #064b36;
  background: transparent;
  color: #064b36;
  font-weight: 600;
  cursor: pointer;
}


/* Single monitor inline detail */
.app.single-inline .right {
  display: block;
  flex: 0 0 clamp(400px, 35vw, 600px);
  width: clamp(400px, 35vw, 600px);
}

.app.single-inline .right.detail-open {
  display: block;
}

.app.single-inline.detail-docked .main {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
}

.app.single-inline.detail-docked {
  display: flex;
  flex-direction: row;
}

/* Data load error */
.data-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 16px;
  color: #374151;
}

.data-error button {
  padding: 10px 20px;
  border-radius: 8px;
  background: #064b36;
  color: #fff;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

/* Focus visible for keyboard navigation */
button:focus-visible,
[role='button']:focus-visible,
.compact-project-card:focus-visible,
.project-thumbnail-card:focus-visible {
  outline: 2px solid #00c896;
  outline-offset: 2px;
}

.context-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  text-align: left;
}

.context-menu-item.delete {
  color: #dc2626;
}
