:root {
  --bg-app: #13162b;
  --bg-white: #1d2138;
  --text-main: #ffffff;
  --text-muted: #8e95bf;
  --primary-color: #6b62d6;
  
  --color-soft-blue: rgba(33, 150, 243, 0.12);
  --color-soft-green: rgba(76, 175, 80, 0.12);
  --color-soft-orange: rgba(255, 152, 0, 0.12);
  --color-soft-purple: rgba(156, 39, 176, 0.12);
  --color-soft-pink: rgba(233, 30, 99, 0.12);
  --color-soft-red: rgba(244, 67, 54, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}

body {
  background-color: var(--bg-app);
  color: var(--text-main);
  height: 100vh;
  display: flex;
  overflow: hidden;
}

/* Base Layout */
.app-container {
  display: flex;
  width: 100%;
  height: 100%;
}

/* Sidebar */
.sidebar {
  width: 260px;
  background-color: var(--bg-app);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px 24px;
  flex-shrink: 0;
}

.logo-icon {
  font-size: 32px;
  color: var(--text-main);
  margin-bottom: 40px;
  margin-left: 20px;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex-grow: 1;
}

.nav-item {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 0 20px;
  gap: 16px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-item:hover, .nav-item.active {
  background-color: var(--primary-color);
  color: var(--bg-white);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.nav-text {
  font-size: 15px;
  font-weight: 500;
}

/* Tooltip for Sidebar removido pois agora temos os textos visíveis */

/* Main Content Area */
.main-content {
  flex-grow: 1;
  background-color: var(--bg-white);
  border-radius: 40px 0 0 40px;
  display: flex;
  flex-direction: column;
  box-shadow: -5px 0 20px rgba(0,0,0,0.02);
  overflow-x: auto;
  overflow-y: hidden;
}

.board-wrapper {
  display: flex;
  flex-direction: column;
  width: max-content;
  min-width: 100%;
  height: 100%;
  padding: 32px 40px;
}

/* Top Header */
.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.header-title-container {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-logo {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
}

.top-header h1 {
  font-size: 28px;
  font-weight: 700;
}

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

.btn-primary {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(107, 98, 214, 0.4);
}

.search-bar {
  background-color: var(--bg-app);
  border-radius: 20px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-bar input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  width: 200px;
  color: var(--text-main);
}

.search-bar span {
  color: var(--text-muted);
}

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

.actions > span {
  cursor: pointer;
  color: var(--text-main);
  transition: color 0.2s;
}

.actions > span:hover {
  color: #555;
}

.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  cursor: pointer;
}

.profile img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

/* Indicators */
.indicators-section {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.indicator-card {
  padding: 16px 20px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center; /* Centraliza o conteúdo para a borda ficar simétrica */
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.indicator-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.04);
}

.indicator-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.indicator-label {
  font-size: 13px;
  color: var(--text-muted);
}

.highlight-blue   { border-left: 3px solid #2196F3; }
.highlight-orange { border-left: 3px solid #FF9800; }
.highlight-green  { border-left: 3px solid #4CAF50; }
.highlight-purple { border-left: 3px solid #9C27B0; }
.highlight-red    { border-left: 3px solid #F44336; }
.highlight-pink   { border-left: 3px solid #e91e63; background: rgba(233,30,99,0.08); }

/* Kanban Board Container */
.kanban-board {
  display: flex;
  gap: 24px;
  padding-bottom: 20px;
  flex: 1;
  min-height: 0;
}

/* Kanban Columns */
.kanban-column {
  min-width: 320px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.column-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  padding: 0 4px;
}

.header-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.column-header h3 {
  font-size: 16px;
  font-weight: 600;
}

.column-count {
  font-size: 13px;
  color: var(--text-muted);
}

.column-header > span, .filter-trigger {
  color: var(--text-muted);
  cursor: pointer;
}

/* Dropdown Filters */
.dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--bg-white);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  border-radius: 8px;
  min-width: 180px;
  z-index: 100;
  padding: 8px 0;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-title {
  padding: 8px 16px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 4px;
}

.dropdown-item {
  padding: 8px 16px;
  font-size: 13px;
  cursor: pointer;
  color: var(--text-main);
  transition: background 0.2s;
}

.dropdown-item:hover, .dropdown-item.active {
  background-color: var(--primary-color);
  color: #fff;
}

.filtered-out {
  display: none !important;
}

.column-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  padding: 4px;
  flex: 1;
  min-height: 0;
  padding-right: 8px;
}

.column-body::-webkit-scrollbar {
  width: 6px;
}
.column-body::-webkit-scrollbar-track {
  background: transparent;
}
.column-body::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
}

/* ======================== */
/* MODAL STYLES             */
/* ======================== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.modal-content {
  background: var(--bg-white);
  padding: 24px;
  border-radius: 16px;
  width: 400px;
  max-width: 90%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transform: translateY(20px);
  transition: transform 0.3s;
}
.modal-overlay.open .modal-content {
  transform: translateY(0);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.modal-header h2 { font-size: 18px; font-weight: 600; color: var(--text-main); margin: 0; }
.close-modal { cursor: pointer; color: var(--text-muted); transition: color 0.2s; }
.close-modal:hover { color: var(--text-main); }

.form-group { margin-bottom: 16px; display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 13px; font-weight: 500; color: var(--text-muted); }
.form-group input, .form-group textarea, .form-group select {
  background: var(--bg-app);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-main);
  padding: 10px 12px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--primary-color);
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}
.btn-secondary {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.05); color: var(--text-main); }
.paste-area:hover { background: rgba(255,255,255,0.02); border-color: var(--primary-color) !important; color: var(--text-main) !important; }


/* Kanban Cards corresponding to User's pastel colored image style */
.kanban-card {
  padding: 24px;
  border-radius: 20px;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: grab;
}

.kanban-card.dragging {
  cursor: grabbing;
  opacity: 0.5;
  transform: scale(0.98);
}

.column-body.drag-over {
  background-color: rgba(255,255,255,0.03);
  border-radius: 20px;
  border: 1px dashed rgba(255,255,255,0.2);
}

.column-body.drag-invalid {
  background-color: rgba(244, 67, 54, 0.05);
  border-radius: 20px;
}

.kanban-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

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

/* Colors matching the inspiration */
.color-soft-blue { background-color: var(--color-soft-blue); }
.color-soft-green { background-color: var(--color-soft-green); }
.color-soft-orange { background-color: var(--color-soft-orange); }
.color-soft-purple { background-color: var(--color-soft-purple); }
.color-soft-pink { background-color: var(--color-soft-pink); }
.color-soft-red { background-color: var(--color-soft-red); }

.card-date {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.card-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.card-progress {
  margin-bottom: 20px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 6px;
  color: #555;
}

.progress-bar {
  height: 6px;
  background-color: rgba(255,255,255,0.1);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 3px;
}

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

.avatars {
  display: flex;
  align-items: center;
}

.avatars img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--bg-white);
  margin-right: -10px;
}

.avatar-add {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.05);
  color: var(--text-main);
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid var(--bg-white);
  z-index: 1;
  cursor: pointer;
  margin-left: 2px;
}

.avatar-add span {
  font-size: 18px;
}

.pill {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.pill.blue { background-color: rgba(33, 150, 243, 0.15); color: #1565C0; }
.pill.green { background-color: rgba(76, 175, 80, 0.15); color: #2E7D32; }
.pill.orange { background-color: rgba(255, 152, 0, 0.15); color: #EF6C00; }
.pill.purple { background-color: rgba(156, 39, 176, 0.15); color: #6A1B9A; }
.pill.pink { background-color: rgba(233, 30, 99, 0.15); color: #AD1457; }

.pill.red {
  background-color: rgba(244, 67, 54, 0.15);
  color: #F44336;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pill.red::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #F44336;
}

/* Custom Scrollbar */
.main-content::-webkit-scrollbar {
  height: 8px;
}
.main-content::-webkit-scrollbar-track {
  background: var(--bg-app); 
  border-radius: 10px;
}
.main-content::-webkit-scrollbar-thumb {
  background: #3e4466; 
  border-radius: 10px;
}
.main-content::-webkit-scrollbar-thumb:hover {
  background: #505886; 
}

/* ======================== */
/* MONITOR DE GRUPOS (LIST) */
/* ======================== */
.monitor-list {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background-color: var(--bg-white); /* using the same panel color */
  border-radius: 16px;
  padding: 12px 24px;
  margin-top: -10px;
  width: 2040px;
  max-width: 2040px;
}

.list-header {
  display: flex;
  padding: 16px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.col-client {
  flex: 0 0 350px;
}

.col-resume {
  flex: 1;
  min-width: 0;
}

.list-container {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  max-height: calc(100vh - 280px);
  padding-bottom: 40px;
}

/* Scrollbar table custom */
.list-container::-webkit-scrollbar {
  width: 6px;
}
.list-container::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
}

.list-row {
  display: flex;
  padding: 24px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background-color 0.2s, transform 0.2s;
  cursor: pointer;
}

.list-row:hover {
  background-color: rgba(255,255,255,0.02);
  transform: translateX(4px);
}

.list-cell {
  padding-right: 20px;
}

/* ======================== */
/* TELA DE LOGIN            */
/* ======================== */
.login-screen {
  position: fixed;
  inset: 0;
  background: var(--bg-app);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  background-image: radial-gradient(ellipse at 20% 50%, rgba(107,98,214,0.15) 0%, transparent 60%),
                    radial-gradient(ellipse at 80% 20%, rgba(33,150,243,0.08) 0%, transparent 50%);
}

.login-card {
  background: var(--bg-white);
  border-radius: 24px;
  padding: 48px 44px;
  width: 420px;
  max-width: 90vw;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.06);
  text-align: center;
  animation: loginFadeIn 0.4s ease;
}

.login-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
}

@keyframes loginFadeIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
