/* ================= Reset e Base ================= */
* { box-sizing: border-box; margin: 0; padding: 0; }body { font-family: 'Inter', sans-serif; background-color: #f5f6f8; color: #333; overflow-x: hidden; }

.app-container { display: flex; min-height: 100vh; }

/* Auxiliar: Imagens com atributo src vazio mostram fundo cinza para marcação visual */
img:not([src]), img[src=""] {
    background-color: #d1d5db;
    border-radius: 4px;
    display: inline-block;
}

/* ================= Menu Lateral (Sidebar) ================= */
.sidebar {
    width: 250px;
    background-color: #f6f3fc; 
    display: flex; flex-direction: column;
    padding: 30px 20px; position: fixed; height: 100vh;
    border-right: 1px solid rgba(0,0,0,0.03);
    z-index: 10;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(121, 12, 230, 0.3) transparent;
}

.sidebar-logo { display: flex; align-items: center; justify-content: center; margin-bottom: 35px; }
/* Trava o tamanho da logo */
.sidebar-logo img { width: 80px; height: auto; object-fit: contain; }

.menu-group { margin-bottom: 25px; }
.menu-title {
    font-size: 11px; font-weight: 700; color: #999;
    text-transform: uppercase; margin-bottom: 10px; padding-left: 10px;
}

.menu-item {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px;
    text-decoration: none; color: #444; font-size: 14px; font-weight: 600; 
    border-radius: 8px; margin-bottom: 5px; transition: 0.2s;
}

/* Trava o tamanho dos ícones do menu */
.menu-item img { width: 22px; height: 22px; object-fit: contain; opacity: 0.7; }

.menu-item.active {
    background-color: #ffffff; box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    color: #7b00ff;
}

/* Deixa o ícone ativo totalmente opaco e aplica a cor roxa (caso a imagem seja preta) */
.menu-item.active img { 
    opacity: 1; 
    filter: brightness(0) saturate(100%) invert(18%) sepia(93%) saturate(5833%) hue-rotate(264deg) brightness(85%) contrast(110%);
}

.sidebar-footer {
    margin-top: auto; padding-top: 15px; border-top: 1px solid rgba(0,0,0,0.05); 
    display: flex; flex-direction: column; gap: 15px;
}

.user-info { display: flex; align-items: center; gap: 10px; padding-left: 10px; }

/* Trava o tamanho da foto de perfil */
.user-info img { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }

.user-name { font-size: 13px; font-weight: 700; color: #000; }
.logout-btn {
    display: flex; align-items: center; gap: 10px; padding-left: 10px;
    color: #444; text-decoration: none; font-size: 13px; font-weight: 600;
}

/* Trava o tamanho do ícone de sair */
.logout-btn img { width: 16px; height: 16px; object-fit: contain; opacity: 0.7; }

/* Trava o tamanho do ícone de sair */
.logout-btn img { width: 16px; height: 16px; object-fit: contain; opacity: 0.7; }

/* ================= Conteúdo Principal ================= */
.main-content { margin-left: 250px; flex: 1; display: flex; flex-direction: column; }

/* ================= Cabeçalho Superior ================= */
.header {
    background-color: #8338ec; /* Roxo vibrante da imagem */
    height: 80px; padding: 0 40px;
    display: flex; justify-content: space-between; align-items: center;
}
.search-container {
    display: flex; align-items: center; background-color: #ffffff; border-radius: 40px;
    padding: 5px 20px; width: 100%; max-width: 600px; height: 46px;
}
.search-icon { width: 18px; height: 18px; opacity: 0.5; }
.search-input {
    border: none; outline: none; padding: 0 15px; font-size: 14px;
    font-family: 'Inter', sans-serif; font-style: normal; color: #333; flex: 1;
}
.search-input::placeholder { color: #9ca3af; font-size: 15px;}
.filter-btn {
    display: flex; align-items: center; gap: 8px; background: none; border: none; 
    font-size: 14px; font-weight: 500; color: #8338ec; cursor: pointer;
    padding-left: 15px; border-left: 1px solid #eee; height: 24px;
}
.filter-icon { width: 16px; height: 16px; object-fit: contain; }
.arrow-icon { width: 12px; height: 12px; object-fit: contain; }

.header-user-avatar { 
    width: 40px; height: 40px; border-radius: 6px; 
    background-color: #fff; display: flex; justify-content: center; align-items: center;
    font-weight: 800; font-size: 14px; color: #000;
}

/* ================= Conteúdo Principal ================= */
.main-content {
    margin-left: 220px !important; /* Ajustado exatamente para a largura da nova sidebar */
    width: calc(100% - 220px) !important;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ================= Cabeçalho Superior ================= */
.header {
    background-color: #8338ec; /* Roxo vibrante */
    height: 80px; padding: 0 40px;
    display: flex; justify-content: space-between; align-items: center;
}

.search-container {
    display: flex; align-items: center; background-color: #ffffff; border-radius: 40px;
    padding: 5px 20px; width: 100%; max-width: 600px; height: 46px;
}

.search-icon { width: 18px; height: 18px; opacity: 0.5; }

.search-input {
    border: none; outline: none; padding: 0 15px; font-size: 14px;
    font-family: 'Inter', sans-serif; font-style: normal; color: #333; flex: 1;
}

.search-input::placeholder { color: #9ca3af; font-size: 15px; font-style: italic;}

.filter-btn {
    display: flex; align-items: center; gap: 8px; background: none; border: none;
    font-size: 14px; font-weight: 600; color: #8338ec; cursor: pointer; font-style: italic;
    padding-left: 15px; border-left: 1px solid #eee; height: 24px;
}

.filter-icon { width: 16px; height: 16px; object-fit: contain; }

.arrow-icon { width: 12px; height: 12px; object-fit: contain; }

.header-user-avatar { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }

/* ================= Dashboard Area ================= */
.dashboard-wrapper { padding: 40px; max-width: 1400px; margin: 0 auto; width: 100%; }

/* Título e Botão Novo Candidato */
.page-title-row {
    display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 25px;
}

.page-title-row h1 { font-size: 26px; font-weight: 800; color: #111827; margin-bottom: 6px; }

.page-title-row p { font-size: 15px; color: #6b7280; font-weight: 500; }

.btn-primary {
    background-color: #8b5cf6; color: #fff; border: none; border-radius: 8px;
    padding: 12px 24px; font-size: 13px; font-weight: 700; cursor: pointer; transition: 0.2s;
}

.btn-primary:hover { background-color: #7c3aed; }

/* Linha de Métricas */
.metrics-row {
    display: flex; gap: 20px; margin-bottom: 40px;
}

.metric-card {
    background: #fff; border: 1px solid #f0f0f0; border-radius: 12px;
    padding: 20px; display: flex; align-items: center; gap: 15px;
    flex: 1; max-width: 250px; box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.metric-square {
    width: 45px; height: 45px; border-radius: 10px;
}

.metric-info { display: flex; flex-direction: column; }

.metric-val { font-size: 24px; font-weight: 800; color: #111827; line-height: 1; margin-bottom: 4px; }

.metric-label { font-size: 12px; font-weight: 500; color: #6b7280; }

/* ================= Kanban ================= */
.pipeline-title {
    font-size: 18px; font-weight: 800; color: #111827; margin-bottom: 20px;
}

.kanban-board {
    display: flex; gap: 20px; align-items: flex-start;
}

/* Colunas */
.kanban-col {
    background: #fff; border-radius: 12px; padding: 20px; flex: 1;
    min-width: 240px; box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.kanban-header {
    font-size: 15px; font-weight: 800; color: #111827; margin-bottom: 12px;
}

.kanban-line {
    height: 4px; width: 100%; border-radius: 4px; margin-bottom: 20px;
}

/* Cards */
.kanban-card {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 8px;
    padding: 16px; margin-bottom: 15px;
}

.kanban-card:last-child { margin-bottom: 0; }

.kanban-card-name {
    font-size: 13px; font-weight: 800; color: #111827; margin-bottom: 4px;
}

.kanban-card-meta {
    font-size: 11px; font-weight: 500; color: #6b7280;
}

/* Ações no Card (Botão Abrir) */
.kanban-card-action {
    display: flex; justify-content: flex-end; margin-top: 15px;
}

.btn-abrir {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 20px;
    padding: 6px 16px; font-size: 11px; font-weight: 700; cursor: pointer; transition: 0.2s;
}

.btn-abrir:hover { background-color: #f9fafb; }

/* ================= Cores Globais ================= */
.bg-purple { background-color: #8b5cf6; }

.c-purple-text { color: #8b5cf6; }

.bg-blue { background-color: #3b82f6; }

.c-blue-text { color: #3b82f6; }

.bg-green { background-color: #10b981; }

.c-green-text { color: #10b981; }

.bg-orange { background-color: #f59e0b; }

.c-orange-text { color: #f59e0b; }

/* Telas Médias (Tablets) - Abaixo de 1024px */
@media (max-width: 1024px) {
  .dashboard-wrapper {
    padding: 30px 20px;
  }

/* Permite que os cards de métricas quebrem linha e preencham o espaço */
  .metrics-row {
    flex-wrap: wrap;
  }

.metric-card {
    max-width: none;
    min-width: 200px;
  }

/* Transforma o Kanban num carrossel horizontal */
  .kanban-board {
    overflow-x: auto;
    padding-bottom: 15px; /* Espaço para a barra de rolagem não cortar os cards */
    scroll-snap-type: x mandatory; /* Suaviza a rolagem horizontal no mobile */
  }

.kanban-col {
    scroll-snap-align: start; /* Faz as colunas "encaixarem" ao deslizar */
  }
}

/* Telas Pequenas (Celulares) - Abaixo de 768px */
@media (max-width: 768px) {
  /* Força a sobrescrita das regras !important da sidebar e main content */
  .sidebar {
    transform: translateX(-100%) !important;
    transition: transform 0.3s ease;
  }

.main-content {
    margin-left: 0 !important;
    width: 100% !important;
  }

/* Ajustes da barra superior (Header) */
  .header {
    padding: 0 20px;
  }

.search-container {
    padding: 5px 10px;
  }

.search-input {
    font-size: 13px;
    padding: 0 10px;
  }

.filter-btn {
    font-size: 0;
    padding-left: 10px;
  }

.filter-btn .arrow-icon {
    display: none;
  }

/* Cabeçalho da página e Botão Novo Candidato */
  .page-title-row {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
    text-align: center;
  }

.page-title-row h1 {
    font-size: 24px;
  }

.page-title-row .btn-primary {
    width: 100%;
  }

/* Empilha os cards de métricas um embaixo do outro */
  .metrics-row {
    flex-direction: column;
  }
}