/* ===== KRONOS KANBAN — Design System ===== */
:root {
  --azul: #131F33;
  --azul-medio: #1C2D47;
  --azul-claro: #243455;
  --ouro: #B89A5A;
  --ouro-claro: #D4B878;
  --ouro-escuro: #8A7040;
  --bege: #E8E3D0;
  --bege-suave: #F3F0E6;
  --bege-escuro: #C4BC9F;
  --branco: #FFFFFF;
  --erro: #D8613C;
  --sucesso: #B1C5A4;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(19, 31, 51, 0.15);
  --shadow-lg: 0 8px 32px rgba(19, 31, 51, 0.25);
  --transition: all 0.2s ease;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--azul);
  color: var(--bege);
  min-height: 100vh;
  overflow-x: auto;
}

/* ===== LOGIN PAGE ===== */
.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--azul) 0%, var(--azul-medio) 100%);
}

.login-box {
  background: var(--azul-medio);
  border: 1px solid rgba(184, 154, 90, 0.12);
  border-radius: 12px;
  padding: 48px 40px;
  width: 400px;
  max-width: 90vw;
  box-shadow: var(--shadow-lg);
}

.login-box h1 {
  color: var(--ouro);
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 4px;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 8px;
}

.login-box .subtitle {
  color: var(--bege-escuro);
  text-align: center;
  font-size: 13px;
  letter-spacing: 1px;
  margin-bottom: 36px;
}

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

.form-group label {
  display: block;
  color: var(--bege-escuro);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--azul);
  border: 1px solid rgba(184, 154, 90, 0.12);
  border-radius: var(--radius);
  color: var(--bege);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--ouro);
  box-shadow: 0 0 0 2px rgba(184, 154, 90, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--ouro);
  color: var(--azul);
  width: 100%;
}

.btn-primary:hover {
  background: var(--ouro-claro);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(184, 154, 90, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--bege-escuro);
  border: 1px solid rgba(184, 154, 90, 0.12);
}

.btn-ghost:hover {
  border-color: var(--ouro);
  color: var(--ouro);
}

.btn-danger {
  background: var(--erro);
  color: white;
}

.btn-danger:hover {
  opacity: 0.9;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 11px;
}

.login-error {
  color: var(--erro);
  text-align: center;
  font-size: 13px;
  margin-top: 12px;
  display: none;
}

/* ===== HEADER ===== */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  background: var(--azul-medio);
  border-bottom: 1px solid rgba(184, 154, 90, 0.1);
}

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

.logo {
  color: var(--ouro);
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.board-selector {
  background: var(--azul);
  border: 1px solid rgba(184, 154, 90, 0.12);
  border-radius: var(--radius);
  color: var(--bege);
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
  outline: none;
}

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

.user-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--bege-escuro);
  font-size: 13px;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--azul);
}

img.avatar {
  object-fit: cover;
}

.avatar-sm {
  width: 24px;
  height: 24px;
  font-size: 11px;
}

/* ===== BOARD ===== */
.board {
  display: flex;
  gap: 20px;
  padding: 24px 28px;
  min-height: calc(100vh - 65px);
  overflow-x: auto;
}

/* ===== COLUMN ===== */
.column {
  min-width: 300px;
  max-width: 300px;
  background: var(--azul-medio);
  border-radius: 10px;
  border: 1px solid rgba(184, 154, 90, 0.08);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 110px);
}

.column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(184, 154, 90, 0.08);
}

.column-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--bege);
}

.column-count {
  background: rgba(184, 154, 90, 0.15);
  color: var(--ouro);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}

.column-cards {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.column-cards::-webkit-scrollbar {
  width: 4px;
}

.column-cards::-webkit-scrollbar-thumb {
  background: rgba(184, 154, 90, 0.2);
  border-radius: 4px;
}

.add-card-btn {
  margin: 12px;
  padding: 10px;
  background: transparent;
  border: 1px dashed rgba(184, 154, 90, 0.15);
  border-radius: var(--radius);
  color: var(--bege-escuro);
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.add-card-btn:hover {
  border-color: var(--ouro);
  color: var(--ouro);
  background: rgba(184, 154, 90, 0.05);
}

/* ===== CARD ===== */
.card {
  background: var(--azul-claro);
  border: 1px solid rgba(184, 154, 90, 0.08);
  border-radius: var(--radius);
  padding: 14px;
  cursor: grab;
  transition: var(--transition);
}

.card:hover {
  border-color: rgba(184, 154, 90, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.card:active {
  cursor: grabbing;
}

.card-label {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.card-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--bege-suave);
  margin-bottom: 10px;
  line-height: 1.4;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card-due {
  font-size: 11px;
  color: var(--bege-escuro);
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-due.overdue {
  color: var(--erro);
}

.card-due.soon {
  color: var(--ouro);
}

.card-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-icon {
  font-size: 11px;
  color: var(--bege-escuro);
  display: flex;
  align-items: center;
  gap: 3px;
}

/* Drag ghost */
.sortable-ghost {
  opacity: 0.4;
  border: 1px dashed var(--ouro);
}

.sortable-chosen {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Add column */
.add-column {
  min-width: 300px;
  max-width: 300px;
  display: flex;
  align-items: flex-start;
  padding-top: 16px;
}

.add-column-btn {
  width: 100%;
  padding: 14px;
  background: transparent;
  border: 1px dashed rgba(184, 154, 90, 0.12);
  border-radius: 10px;
  color: var(--bege-escuro);
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
}

.add-column-btn:hover {
  border-color: var(--ouro);
  color: var(--ouro);
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 20, 35, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--azul-medio);
  border: 1px solid rgba(184, 154, 90, 0.12);
  border-radius: 12px;
  width: 600px;
  max-width: 92vw;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform 0.2s ease;
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(184, 154, 90, 0.08);
}

.modal-header h2 {
  font-size: 16px;
  font-weight: 500;
  color: var(--bege-suave);
}

.modal-close {
  background: none;
  border: none;
  color: var(--bege-escuro);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}

.modal-close:hover {
  color: var(--ouro);
  background: rgba(184, 154, 90, 0.1);
}

.modal-body {
  padding: 24px;
}

.modal-body .form-group {
  margin-bottom: 18px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 16px 24px;
  border-top: 1px solid rgba(184, 154, 90, 0.08);
}

/* ===== COMMENTS ===== */
.comments-section {
  margin-top: 20px;
  border-top: 1px solid rgba(184, 154, 90, 0.08);
  padding-top: 16px;
}

.comments-section h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--bege-escuro);
  margin-bottom: 12px;
}

.comment {
  display: flex;
  gap: 10px;
  margin-bottom: 4px;
  padding: 10px 12px;
  border-radius: var(--radius);
  transition: var(--transition);
  position: relative;
}

.comment:hover {
  background: rgba(184, 154, 90, 0.04);
}

.comment-body {
  flex: 1;
}

.comment-author {
  font-size: 12px;
  font-weight: 600;
  color: var(--ouro);
}

.comment-edited {
  font-size: 10px;
  color: var(--bege-escuro);
  font-style: italic;
  margin-left: 6px;
}

.comment-text {
  font-size: 13px;
  color: var(--bege);
  margin-top: 2px;
  line-height: 1.5;
}

.comment-text .mention {
  color: var(--ouro);
  font-weight: 500;
}

.comment-time {
  font-size: 11px;
  color: var(--bege-escuro);
  margin-top: 2px;
}

.comment-actions {
  display: none;
  position: absolute;
  top: 8px;
  right: 8px;
  gap: 4px;
}

.comment:hover .comment-actions {
  display: flex;
}

.comment-action-btn {
  background: var(--azul);
  border: 1px solid rgba(184, 154, 90, 0.15);
  color: var(--bege-escuro);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  transition: var(--transition);
}

.comment-action-btn:hover {
  border-color: var(--ouro);
  color: var(--ouro);
}

.comment-action-btn.delete:hover {
  border-color: var(--erro);
  color: var(--erro);
}

.comment-input {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  position: relative;
}

.comment-input input {
  flex: 1;
  padding: 10px 14px;
  background: var(--azul);
  border: 1px solid rgba(184, 154, 90, 0.12);
  border-radius: var(--radius);
  color: var(--bege);
  font-size: 13px;
  outline: none;
  transition: var(--transition);
}

.comment-input input:focus {
  border-color: var(--ouro);
  box-shadow: 0 0 0 2px rgba(184, 154, 90, 0.1);
}

.comment-input input::placeholder {
  color: var(--bege-escuro);
}

/* @Mention dropdown */
.mention-dropdown {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 60px;
  background: var(--azul-medio);
  border: 1px solid rgba(184, 154, 90, 0.2);
  border-radius: var(--radius);
  max-height: 160px;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  z-index: 10;
  display: none;
  margin-bottom: 4px;
}

.mention-dropdown.active {
  display: block;
}

.mention-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 13px;
  color: var(--bege);
  transition: var(--transition);
}

.mention-item:hover {
  background: rgba(184, 154, 90, 0.1);
}

/* ===== INLINE COMMENT EDIT ===== */
.comment-edit-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.comment-edit-input {
  width: 100%;
  padding: 8px 12px;
  background: var(--azul);
  border: 1px solid var(--ouro);
  border-radius: var(--radius);
  color: var(--bege);
  font-size: 13px;
  outline: none;
  box-shadow: 0 0 0 2px rgba(184, 154, 90, 0.15);
}

.comment-edit-actions {
  display: flex;
  gap: 6px;
}

.comment-edit-save, .comment-edit-cancel {
  padding: 4px 12px !important;
  font-size: 11px !important;
}

/* ===== ATTACHMENTS ===== */
.attachments-section {
  margin-top: 16px;
}

.attachment-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--azul);
  border-radius: 6px;
  margin-bottom: 6px;
  font-size: 13px;
}

.attachment-item a {
  color: var(--ouro);
  text-decoration: none;
  flex: 1;
}

.attachment-item a:hover {
  color: var(--ouro-claro);
}

.attachment-delete {
  background: none;
  border: none;
  color: var(--bege-escuro);
  font-size: 16px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: var(--transition);
  opacity: 0;
}

.attachment-item:hover .attachment-delete {
  opacity: 1;
}

.attachment-delete:hover {
  color: var(--erro);
}

/* ===== CARD MEMBERS (EQUIPE) ===== */
.card-members-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 0;
}

.member-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--azul);
  border: 1px solid rgba(184, 154, 90, 0.12);
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  color: var(--bege-escuro);
  transition: var(--transition);
  user-select: none;
}

.member-checkbox:hover {
  border-color: var(--ouro);
  color: var(--bege);
}

.member-checkbox:has(input:checked) {
  border-color: var(--ouro);
  background: rgba(184, 154, 90, 0.1);
  color: var(--ouro);
}

.member-checkbox input[type="checkbox"] {
  display: none;
}

/* Card avatar group on board */
.card-avatars {
  display: flex;
  align-items: center;
  gap: 0;
}

.card-avatars .avatar {
  margin-left: -6px;
  border: 2px solid var(--azul-claro);
}

.card-avatars .avatar:first-child {
  margin-left: 0;
}

.avatar-xs {
  width: 20px;
  height: 20px;
  font-size: 9px;
}

.avatar-extra {
  background: var(--azul-medio) !important;
  color: var(--bege-escuro) !important;
  font-size: 9px;
  font-weight: 600;
}

/* ===== ADMIN PANEL ===== */
.admin-panel {
  padding: 28px;
}

.admin-panel h2 {
  color: var(--ouro);
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

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

.admin-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--bege-escuro);
  border-bottom: 1px solid rgba(184, 154, 90, 0.12);
}

.admin-table td {
  padding: 12px 16px;
  font-size: 13px;
  border-bottom: 1px solid rgba(184, 154, 90, 0.06);
}

.role-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.role-admin { background: rgba(184, 154, 90, 0.2); color: var(--ouro); }
.role-member { background: rgba(177, 197, 164, 0.2); color: var(--sucesso); }

/* Label colors */
.label-urgente { background: #D8613C; color: white; }
.label-importante { background: #B89A5A; color: #131F33; }
.label-normal { background: #B1C5A4; color: #131F33; }
.label-baixa { background: #B5BDBC; color: #131F33; }
.label-bug { background: #C0392B; color: white; }
.label-feature { background: #2980B9; color: white; }
.label-melhoria { background: #8E44AD; color: white; }

/* Tabs */
.tabs {
  display: flex;
  gap: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.tab {
  padding: 10px 20px;
  background: none;
  border: none;
  color: var(--bege-escuro);
  font-size: 13px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.tab.active {
  color: var(--ouro);
  border-bottom-color: var(--ouro);
}

.tab:hover {
  color: var(--ouro-claro);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--azul-claro);
  border: 1px solid rgba(184, 154, 90, 0.2);
  border-radius: var(--radius);
  padding: 14px 20px;
  color: var(--bege);
  font-size: 13px;
  box-shadow: var(--shadow-lg);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 2000;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ===== NOTIFICATIONS ===== */
.notification-bell {
  position: relative;
  background: none;
  border: none;
  color: var(--bege-escuro);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  transition: var(--transition);
}

.notification-bell:hover {
  color: var(--ouro);
}

.notification-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--erro);
  color: white;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.notification-wrapper {
  position: relative;
}

.notification-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 340px;
  max-height: 400px;
  overflow-y: auto;
  background: var(--azul-medio);
  border: 1px solid rgba(184, 154, 90, 0.15);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  z-index: 1001;
  display: none;
}

.notification-panel.active {
  display: block;
}

.notification-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(184, 154, 90, 0.08);
}

.notification-panel-header h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--bege-escuro);
  font-weight: 600;
}

.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 1px solid rgba(184, 154, 90, 0.04);
}

.notification-item:hover {
  background: rgba(184, 154, 90, 0.06);
}

.notification-item.unread {
  background: rgba(184, 154, 90, 0.04);
  border-left: 3px solid var(--ouro);
}

.notification-text {
  font-size: 13px;
  color: var(--bege);
  line-height: 1.4;
}

.notification-card-title {
  font-size: 11px;
  color: var(--ouro);
  margin-top: 2px;
}

.notification-time {
  font-size: 11px;
  color: var(--bege-escuro);
  margin-top: 4px;
}

/* Google Calendar button */
.google-cal-btn.connected {
  border-color: var(--sucesso);
  color: var(--sucesso);
}

.google-cal-btn.connected:hover {
  border-color: var(--erro);
  color: var(--erro);
}

/* ===== PROFILE ===== */
.avatar-lg {
  width: 64px;
  height: 64px;
  font-size: 26px;
  font-weight: 600;
}

.profile-avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(184, 154, 90, 0.08);
}

.profile-avatar-actions {
  display: flex;
  gap: 8px;
}

.profile-avatar-colors {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.color-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}

.color-dot:hover {
  transform: scale(1.15);
}

.color-dot.active {
  border-color: var(--bege-suave);
  box-shadow: 0 0 0 2px var(--azul), 0 0 0 4px var(--bege-suave);
}

/* ===== BOARD MEMBERS PANEL ===== */
.board-members-add {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  align-items: center;
}

.board-member-select {
  flex: 1;
  padding: 10px 14px;
  background: var(--azul);
  border: 1px solid rgba(184, 154, 90, 0.12);
  border-radius: var(--radius);
  color: var(--bege);
  font-size: 13px;
  outline: none;
  transition: var(--transition);
}

.board-member-select:focus {
  border-color: var(--ouro);
}

.board-members-panel {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.board-member-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius);
  transition: var(--transition);
}

.board-member-item:hover {
  background: rgba(184, 154, 90, 0.04);
}

.board-member-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.board-member-name {
  font-size: 13px;
  color: var(--bege);
  font-weight: 500;
}

.board-member-email {
  font-size: 11px;
  color: var(--bege-escuro);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-member-perm {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  color: var(--ouro);
  background: rgba(184, 154, 90, 0.1);
  padding: 3px 10px;
  border-radius: 4px;
  white-space: nowrap;
}

/* ===== CUSTOM DIALOG ===== */
.dialog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 20, 35, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.dialog-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.dialog-box {
  background: var(--azul-medio);
  border: 1px solid rgba(184, 154, 90, 0.15);
  border-radius: 12px;
  padding: 28px;
  width: 400px;
  max-width: 90vw;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.2s ease;
}

.dialog-overlay.active .dialog-box {
  transform: translateY(0) scale(1);
}

.dialog-box h3 {
  font-size: 15px;
  font-weight: 500;
  color: var(--bege-suave);
  margin-bottom: 12px;
}

.dialog-box p {
  font-size: 13px;
  color: var(--bege-escuro);
  line-height: 1.6;
}

.dialog-input {
  width: 100%;
  padding: 10px 14px;
  background: var(--azul);
  border: 1px solid rgba(184, 154, 90, 0.12);
  border-radius: var(--radius);
  color: var(--bege);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}

.dialog-input:focus {
  border-color: var(--ouro);
  box-shadow: 0 0 0 2px rgba(184, 154, 90, 0.1);
}

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

/* ===== NOTIFICATION BODY ===== */
.notification-body {
  flex: 1;
  min-width: 0;
}

/* ===== ATTACHMENT ICON ===== */
.attachment-icon {
  color: var(--ouro);
  flex-shrink: 0;
}

/* ===== COLUMN HEADER ACTIONS ===== */
.column-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.column-delete-btn {
  background: none;
  border: none;
  color: var(--bege-escuro);
  font-size: 16px;
  cursor: pointer;
  opacity: 0;
  transition: var(--transition);
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1;
}

.column:hover .column-delete-btn { opacity: 0.6; }
.column-delete-btn:hover { opacity: 1 !important; color: var(--erro); background: rgba(216, 97, 60, 0.1); }

/* ===== ARCHIVED CARDS ===== */
.archived-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--azul);
  border: 1px solid rgba(184, 154, 90, 0.08);
  border-radius: var(--radius);
  margin-bottom: 8px;
  gap: 12px;
}

.archived-card-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.archived-card-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--bege);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.archived-card-meta {
  font-size: 11px;
  color: var(--bege-escuro);
}

.archived-card-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

/* ===== DANGER GHOST BUTTON ===== */
.btn-danger-ghost {
  color: var(--erro) !important;
  opacity: 0.8;
}

.btn-danger-ghost:hover {
  opacity: 1;
  background: rgba(216, 97, 60, 0.1) !important;
}

/* Responsive */
@media (max-width: 768px) {
  .header { padding: 12px 16px; flex-wrap: wrap; gap: 10px; }
  .board { padding: 16px; }
  .column { min-width: 280px; }
  .modal { width: 95vw; }
}

/* Loading */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(184, 154, 90, 0.2);
  border-top-color: var(--ouro);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }
