/* ==========================================================================
   1. CORE: VARIÁVEIS & RESET (System Token)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* --- LIGHT MODE --- */
  --bg-app: #FFFFFF;
  --bg-surface: #FAFAFA;
  --bg-panel: #FFFFFF;
  --bg-input: #FFFFFF;
  
  --text-primary: #09090B;
  --text-secondary: #71717A;
  --text-tertiary: #A1A1AA;
  
  --border-color: #E4E4E7;
  
  /* Botões Principais (Azul/Ciano + Texto Branco) */
  --btn-primary-bg: #0099ae;
  --btn-primary-fg: #FFFFFF;
  
  /* Status Colors */
  --status-late-bg: #FEF2F2;
  --status-late-border: #FECACA;
  --status-late-fg: #991B1B;
  
  --status-done-bg: #F0FDF4;
  --status-done-border: #86EFAC;
  --status-done-fg: #166534;
  
  --status-approval-bg: #FEFCE8;
  --status-approval-border: #FEF08A;
  --status-approval-fg: #854D0E;
  
  --priority-badge-bg: #DC2626;
  --priority-badge-fg: #FFFFFF;

  /* Cores de Ação (Danger) */
  --danger-bg: #DC2626;        /* Vermelho Base */
  --danger-fg: #FFFFFF;        /* Texto Branco */
  --danger-hover: #EF4444;     /* Vermelho Mais Claro (Hover) */
  --danger-soft-bg: #FEF2F2;   /* Fundo suave para ícone */

  /* Dimensões */
  --header-height: 80px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --input-height: 48px; 
}

/* --- DARK MODE --- */
[data-theme="dark"] {
  --bg-app: #101010;       
  --bg-surface: #1C1C1C;   
  --bg-panel: #1C1C1C;     
  --bg-input: #262626;
  
  --text-primary: #EDEDED; 
  --text-secondary: #A1A1AA;
  --text-tertiary: #52525B;
  
  --border-color: #2A2A2A;
  
  /* Botões Principais (Roxo/Azulado + Texto Branco) */
  --btn-primary-bg: #6464a7;
  --btn-primary-fg: #FFFFFF;
  
  /* Status */
  --status-late-bg: #381515;
  --status-late-border: #5C2222;
  --status-late-fg: #FCA5A5;
  
  --status-done-bg: #0F291E;
  --status-done-border: #184532;
  --status-done-fg: #86EFAC;
  
  --status-approval-bg: #332608;
  --status-approval-border: #5C430B;
  --status-approval-fg: #FDE047;

  /* Danger Dark */
  --danger-soft-bg: #381515;
}

* { margin: 0; padding: 0; box-sizing: border-box; outline: none; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-app);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--text-primary); letter-spacing: -0.02em; }

/* ==========================================================================
   2. BOTÕES (GLOBAL)
   ========================================================================== */
/* Estilo Base (Neutro) */
button, .btn {
  font-family: 'Inter', sans-serif;
  height: var(--input-height);
  padding: 0 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  transition: all 0.2s;
  white-space: nowrap;
  background-color: var(--bg-panel);
  color: var(--text-primary);
}

/* Hover Genérico (Não aplica em Danger) */
/* Hover Genérico (Não aplica em Danger NEM em Primary) */
button:not(.btn-danger):not(.btn-primary):hover, 
.btn:not(.btn-danger):not(.btn-primary):hover {
  background-color: var(--bg-input);
  border-color: var(--text-primary);
}

button#themeToggleBtn {
    border: 1px solid var(--border-color);
}


   .logo-img {
      height: 32px; /* Ajuste a altura conforme necessário para o header */
      width: auto;
      object-fit: contain;
    }

    /* Padrão (Modo Claro): Mostra logo04, Esconde logo03 */
    .logo-dark-mode { display: none; }
    .logo-light-mode { display: block; }

    /* Modo Escuro: Inverte a visibilidade */
    [data-theme="dark"] .logo-light-mode { display: none; }
    [data-theme="dark"] .logo-dark-mode { display: block; }

/* BOTÃO PRIMÁRIO (Criar, Salvar, Arquivar) */
.btn-primary, 
.create-job-btn,
.modal-actions button:not(.btn-ghost) { /* Removido o '>' para funcionar em divs aninhadas */
  background-color: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
  border: none;
}

/* Hover Específico para Primários (Evita ficar cinza/branco) */
.btn-primary:hover,
.create-job-btn:hover,
.modal-actions button:not(.btn-ghost):hover {
  background-color: var(--btn-primary-bg) !important;
  color: var(--btn-primary-fg) !important;
  opacity: 0.9; /* Leve transparência para indicar clique */
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Botão Ghost (Fechar, Limpar Filtros) */
.btn-ghost {
  background-color: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
}
.btn-ghost:hover {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-color);
}

/* BOTÃO DE EXCLUSÃO (VERMELHO SÓLIDO SEMPRE) */
.btn-danger {
  background-color: var(--danger-bg) !important;
  color: var(--danger-fg) !important;
  border: none !important;
}
.btn-danger:hover {
  background-color: var(--danger-hover) !important; /* Vermelho mais claro */
  color: #FFFFFF !important;
  opacity: 1;
}

/* ÍCONE DE LIXEIRA (GLOBAL) */
.delete-icon {
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  color: var(--text-tertiary);
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  border: 1px solid transparent;
}
.delete-icon:hover {
  background-color: var(--danger-soft-bg) !important;
  color: var(--danger-bg) !important;
  border-color: transparent !important;
}

/* ==========================================================================
   3. TOPBAR & PERFIL
   ========================================================================== */
.topbar {
  height: var(--header-height);
  background-color: var(--bg-app);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.app-title {
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}

.avatar {
  width: 40px;
  height: 40px;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  cursor: pointer;
}

.profile-menu {
  position: absolute;
  top: 120%;
  right: 0;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  width: 220px;
  display: none;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  border-radius: var(--radius-md);
  padding: 8px;
  gap: 8px;
  z-index: 101;
}
.profile-menu.active { display: flex; }

div#profileName {
    font-weight: 700;
    margin-left: 5px;
}

.profile-menu button {
  width: 100%;
  justify-content: flex-start;
  height: 40px;
  padding: 0 12px;
}

/* ==========================================================================
   4. LAYOUT & FILTROS
   ========================================================================== */
.app {
  max-width: 1600px;
  width: 95%;
  margin: 0 auto;
  padding: 40px 0;
}

.dashboard-header {
  margin-bottom: 48px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.filters-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
}

.filters {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  background: var(--bg-surface);
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
}

.field {
  height: 40px;
  padding: 0 20px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-primary);
  min-width: 160px;
  font-family: inherit;
}
.field:focus { border-color: var(--text-primary); }

select.field {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2371717A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}
/* [data-theme="dark"] select.field {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23EDEDED' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
} */

/* Stats */
.stats { display: flex; justify-content: center; gap: 64px; }
.stat { display: flex; flex-direction: column; align-items: center; text-align: center; }
.stat span {
  font-size: 36px; font-weight: 800; color: var(--text-primary);
  line-height: 1; margin-bottom: 8px;
}
.stat small {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-secondary); font-weight: 700;
}

/* ==========================================================================
   5. JOBS
   ========================================================================== */
.jobs-toolbar { margin-bottom: 40px; }
.jobs-header { display: flex; justify-content: space-between; align-items: center; }
.jobs-title { display: flex; align-items: center; gap: 24px; }
.jobs-title h2 { font-size: 24px; font-weight: 700; margin: 0; }

.view-toggle {
  display: flex; gap: 4px; padding: 4px;
  background: var(--bg-surface);
  border-radius: var(--radius-sm); border: 1px solid var(--border-color);
}
.view-btn {
  height: 32px; padding: 0 16px;
  background: transparent; color: var(--text-tertiary); border: none;
}
.view-btn:hover { color: var(--text-primary); }

/* TOGGLE ATIVO (Cores Primárias) */
.view-btn.active { 
  background: var(--btn-primary-bg); 
  color: var(--btn-primary-fg); 
}
/* Hover Seguro para o Toggle */
.view-btn.active:hover {
  background-color: var(--btn-primary-bg) !important;
  color: var(--btn-primary-fg) !important;
  opacity: 0.9;
}

.jobs-sections { display: flex; flex-direction: column; gap: 64px; }

.jobs-group h3 {
  font-size: 14px; text-transform: uppercase; color: var(--text-primary);
  margin-bottom: 24px; font-weight: 700;
  display: flex; align-items: center; gap: 16px;
}
.jobs-group h3::after { content: ""; flex: 1; height: 1px; background: var(--border-color); }

.jobs.cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px;
}

/* CARD */
.job {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 24px; cursor: pointer; position: relative;
  transition: all 0.2s ease;
}
.job:hover {
  transform: translateY(-2px);
  border-color: var(--text-secondary);
  /* Sombra removida conforme pedido "antes não tinha" */
}

/* HEADER JOB - TRUNCAGEM */
.job-header strong {
    font-size: 16px;
    line-height: 1.4;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 100%;
}
.job-header strong { 
  font-size: 16px; 
  line-height: 1.4; 
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  max-width: 100%;
}

.job small { display: block; font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; }
.job-label { font-weight: 600; color: var(--text-primary); margin-right: 4px; }

/* ÍCONE DE EDITAR */
.edit-icon {
  position: absolute; top: 16px; right: 55px !important;
  font-size: 14px; padding: 6px;
  background: var(--bg-panel); border: 1px solid var(--border-color);
  border-radius: 4px; opacity: 0; transition: 0.2s; z-index: 10;
}
.job:hover .edit-icon { opacity: 1; }

/* ÍCONE DE LIXEIRA (CARD) */
.job .delete-icon {
  position: absolute; top: 16px; right: 16px;
  background: var(--bg-panel); border: 1px solid var(--border-color);
  font-size: 14px;
  opacity: 0; z-index: 10;
}
.job:hover .delete-icon { opacity: 1; }

/* STATUS */
.job.priority::after {
  content: '!'; position: absolute; top: 24px; right: 24px;
  width: 20px; height: 20px;
  background: var(--priority-badge-bg); color: var(--priority-badge-fg);
  border-radius: 50%; font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; z-index: 5;
}
.job.priority:hover .delete-icon { right: 52px; }
.job.priority:hover .edit-icon { right: 55px; }
.job.concluido:hover .edit-icon { right: 55px; }


.job.late { background-color: var(--status-late-bg); border-color: var(--status-late-border); }
.job.late strong { color: var(--status-late-fg); }

#aprovacao .job, #aprovacao .job.late {
  background-color: var(--status-approval-bg) !important;
  border-color: var(--status-approval-border) !important;
}
#aprovacao .job strong, #aprovacao .job.late strong { color: var(--status-approval-fg) !important; }

.job.done { background-color: var(--status-done-bg); border-color: var(--status-done-border); }
.job.done strong { color: var(--status-done-fg); }

.job.concluido { opacity: 0.5; filter: grayscale(100%); background: transparent; border-style: dashed; }

/* LIST VIEW */
.jobs.list { display: flex; flex-direction: column; gap: 1px; }
.jobs.list .job {
    display: flex;
    grid-template-columns: 2fr 1fr 1fr auto auto;
    padding: 16px 24px;
    transform: none !important;
    box-shadow: none !important;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
}
.jobs.list .job-header {
    margin: 10px 0;
    padding: 0;
    overflow: hidden;
    display: block;
    width: 100%;
    display: flex;
}
.jobs.list .job small {
    margin: 0 15px;
    display: flex;
    align-items: center;
}
.jobs.list .job.priority::after { position: static; display: inline-flex; margin-left: 12px; }

.jobs.list .edit-icon {
    position: static;
    margin-left: auto;
    margin-right: 12px;
    background: transparent;
    border: none;
}
.jobs.list .delete-icon {
  position: static; opacity: 0; margin: 0;
  border: none; background: transparent; font-size: 16px; color: var(--text-secondary);
}
.jobs.list .job:hover .edit-icon, 
.jobs.list .job:hover .delete-icon { opacity: 1; }
/* MOVIMENTO NA LISTA RESTAURADO (removido transform: none) */
.jobs.list .job:hover {

  transform: translateY(-1px) scale(1.005) !important;

}

/* ==========================================================================
   6. MODALS
   ========================================================================== */
.modal {
  display: none; position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.85); backdrop-filter: blur(5px);
  z-index: 1000; align-items: center; justify-content: center;
  padding: 20px;
}

.modal-content {
  background: var(--bg-panel);
  width: 500px; max-width: 100%;
  border: 1px solid var(--border-color); border-radius: var(--radius-md);
  display: flex; flex-direction: column; max-height: 95vh;
  box-shadow: 0 40px 80px rgba(0,0,0,0.4); padding: 0;
}

/* Header Modal */
.modal-content h3 {
  padding: 24px 32px; border-bottom: 1px solid var(--border-color);
  font-size: 18px; font-weight: 700;
  display: flex; justify-content: space-between; align-items: center;
  background: var(--bg-surface); margin: 0;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.modal-body { padding: 32px; overflow-y: auto; flex: 1; }

.modal-body p { margin-bottom: 24px; color: var(--text-primary); font-size: 14px; }
.modal-body b, .modal-body label {
  display: block; font-size: 11px; text-transform: uppercase;
  color: var(--text-secondary); margin-bottom: 8px; font-weight: 700;
  letter-spacing: 0.05em;
}

/* INPUTS */
.modal-content input:not(#editTitle),
.modal-content textarea,
.modal-content select {
  width: 100%; height: var(--input-height); padding: 0 16px; margin-bottom: 24px;
  background: var(--bg-input); border: 1px solid var(--border-color);
  color: var(--text-primary); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 14px; display: block;
}
.modal-content textarea { height: auto; min-height: 120px; padding-top: 14px; resize: vertical; }
.modal-content input:focus, .modal-content select:focus, .modal-content textarea:focus {
  border-color: var(--text-primary);
}

#editTitle {
  font-size: 18px; font-weight: 700; background: var(--bg-input);
  border: 1px solid var(--border-color); border-radius: var(--radius-sm);
  width: 100%; padding: 6px 12px; color: var(--text-primary);
}
#editTitle:focus { border-color: var(--text-primary); }

/* ACTIONS */
.modal-actions {
  padding: 24px 32px; background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  display: flex; flex-direction: column; gap: 12px; align-items: center;
}

.modal-actions select {
  width: 100%; max-width: 100%; height: var(--input-height);
  padding: 0 16px; padding-right: 40px; margin: 0;
  appearance: none; -webkit-appearance: none;
  background-color: var(--bg-panel);
  border: 1px solid var(--border-color); border-radius: var(--radius-sm);
  color: var(--text-primary); font-family: inherit; font-size: 14px; font-weight: 500;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2371717A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 16px;
}
[data-theme="dark"] .modal-actions select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23EDEDED' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
}
.modal-actions select:hover { border-color: var(--text-primary); background-color: var(--bg-input); }

/* Botões Internos (Prioridade/Feito) - NEUTROS */
.modal-actions > div {
  display: flex; gap: 12px; width: 100%; justify-content: center; flex-wrap: wrap;
}
.modal-actions > div > button {
  flex: 1; min-width: 140px; max-width: 240px; margin: 0;
  background-color: var(--bg-panel); border: 1px solid var(--border-color); color: var(--text-primary);
}
.modal-actions > div > button:hover { background-color: var(--bg-input) !important; border-color: var(--text-primary); }

/* GARANTE que a lixeira/botão de excluir no modal fique vermelha */
.modal-actions > div > .btn-danger:hover {
  background-color: var(--danger-hover) !important;
  color: #FFFFFF !important;
  opacity: 1;
}

/* BOTÃO SALVAR (Principal) - Usa cor primária */
.modal-actions > button:not(.btn-ghost) { width: 100%; }

/* FECHAR */
.modal-content > button.btn-ghost {
  width: 100%; margin: 0; padding: 16px;
  background: var(--bg-panel); color: var(--text-secondary);
  border: none; border-top: 1px solid var(--border-color);
  font-size: 13px; font-weight: 500;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  cursor: pointer; display: flex; justify-content: center; align-items: center;
}
.modal-content > button.btn-ghost:hover { background: var(--bg-surface); color: var(--text-primary); }

/* JOB LINK */
.job-link-wrapper { display: flex; margin-top: 8px; }
.job-link-field { border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; margin-bottom: 0 !important; }
.job-link-btn {
  height: var(--input-height); padding: 0 20px;
  background: var(--bg-surface); border: 1px solid var(--border-color);
  border-left: none; font-weight: 600; color: var(--text-primary);
  border-top-right-radius: var(--radius-sm); border-bottom-right-radius: var(--radius-sm);
  margin-bottom: 0 !important;
}

/* CREATE MODAL */
#createModal .modal-content { padding: 0 32px; }
#createModal h3, #createModal .modal-actions {
  margin-left: -32px; margin-right: -32px; padding-left: 32px; padding-right: 32px;
  width: calc(100% + 64px);
}
#createModal input:nth-of-type(1) { margin-top: 32px; }
#createModal .modal-actions { display: flex; flex-direction: column; align-items: center; }


.custom-dropdown {
  position: relative;
  display: inline-block;
}

.icon-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  height: 40px; /* Mesma altura dos inputs */
}

/* O Menu Flutuante */
.dropdown-menu {
  display: none; /* Escondido por padrão */
  position: absolute;
  top: 110%; /* Logo abaixo do botão */
  left: 0;
  min-width: 220px;
  background-color: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  padding: 8px;
  z-index: 200;
  flex-direction: column;
  gap: 4px;
}

/* Exibir quando ativo */
.custom-dropdown.active .dropdown-menu {
  display: flex;
}

/* Itens do Menu */
.dropdown-item {
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}

.dropdown-item:hover {
  background-color: var(--bg-input);
}

/* Item Selecionado */
.dropdown-item.active {
  background-color: var(--bg-surface);
  color: var(--btn-primary-bg); /* Usa a cor principal do tema */
  font-weight: 700;
}
/* ÍCONE DE ARQUIVAR (Só aparece em jobs concluídos) */
.archive-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
}

.archive-btn:hover {
  background-color: var(--bg-input);
  color: var(--btn-primary-bg); /* Fica da cor da marca ao passar o mouse */
  border-color: var(--btn-primary-bg);
}

/* Ajuste na lista para o botão não ficar flutuando */
.jobs.list .archive-btn {
  position: static;
  margin-left: auto;
  margin-right: 12px;
  background: transparent;
  border: none;
}

/* Estilo para o campo de arquivo ficar igual aos outros */
input[type="file"] {
    background: var(--surface-soft); /* Usa a cor do tema */
    color: var(--text-main);
    padding: 10px;
    height: auto; /* Deixa a altura se ajustar */
    cursor: pointer;
}

/* Tenta estilizar o botão "Escolher arquivo" (Funciona no Chrome/Edge) */
input[type="file"] {
    background: var(--surface-soft);
    color: var(--text-main);
    padding: 10px;
    height: auto;
    cursor: pointer;
    
    /* MÁGICA DO ALINHAMENTO */
    display: flex;              /* Transforma o input em container flex */
    align-items: center;        /* Centraliza Verticalmente (alinha texto com botão) */
    justify-content: center;    /* Centraliza Horizontalmente (o conjunto todo) */
    gap: 10px;                  /* Dá um respiro entre o botão e o texto */
    text-align: center;         /* Garante para navegadores antigos */
}

/* Opcional: Melhora o botão interno para combinar */
input[type="file"]::file-selector-button {
    background-color: var(--primary);
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 0; /* Remove a margem padrão pois usamos gap agora */
    font-weight: 500;
}
#usersList .job span.edit-icon {
    right: 55px;
}
/* Ajuste específico para o checkbox de exclusão não ficar grudado no texto */
#wrapperDeleteFile input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--danger-bg); /* Faz o check ficar vermelho no Chrome/Edge */
}

/* ========================
   CALENDÁRIO (SCHEDULE)
======================== */
.calendar-wrapper {
    padding: 20px;
    border-radius: var(--radius);
    overflow: hidden;
}

.calendar-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.calendar-header-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: bold;
    color: var(--text-secondary);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 10px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.calendar-day {
    min-height: 120px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px;
    background: var(--surface-soft);
    position: relative;
    cursor: pointer;
    transition: 0.2s;
}

.calendar-day:hover {
    border-color: var(--primary);
    background: var(--surface);
}

.calendar-day.empty {
    background: transparent;
    border: none;
    cursor: default;
}

.day-number {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
    color: var(--text-secondary);
}

.day-number.today {
    color: var(--primary);
    font-size: 1.1em;
}

/* Etiquetas dos Eventos */
.event-pill {
    background: var(--primary);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-bottom: 4px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.event-pill.priority {
    background: #e74c3c; /* Vermelho para prioridade */
}

.event-pill:hover {
    filter: brightness(1.1);
    transform: scale(1.02);
}