/* style.css - Design System Grupo CRI (Corrigido) */
:root {
  /* Paleta de Cores Oficial */
  --cri-blue: #002B5C;       /* Azul Marinho Profundo */
  --cri-blue-light: #1a4c85;
  --cri-gold: #C6A87C;       /* Dourado Nobre */
  --cri-gold-hover: #D4B78C;
  --white: #ffffff;
  --bg-body: #F0F2F5;
  --text-main: #1A202C;
  --text-light: #718096;
  --danger: #E53E3E;
  --success: #38A169;

  /* Efeitos */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0, 43, 92, 0.15);
  --shadow-lg: 0 15px 30px rgba(0, 43, 92, 0.2);
  --radius: 16px;
  --gradient-cri: linear-gradient(135deg, var(--cri-blue) 0%, #001A38 100%);
}

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Roboto, sans-serif; }
body { background-color: var(--bg-body); color: var(--text-main); height: 100vh; overflow-x: hidden; }
a { text-decoration: none; transition: 0.3s; }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; outline: none; }

/* ========== ANIMAÇÕES ========== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 0.8s ease forwards; }
.slide-up { animation: slideUp 0.6s ease forwards; }

/* ========== PÁGINA DE LOGIN (Correção da Logo) ========== */
.login-container {
  min-height: 100vh;
  background: var(--gradient-cri);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.login-content {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex;
  overflow: hidden;
  width: 1000px;
  max-width: 100%;
  min-height: 600px;
}

.login-hero {
  flex: 1;
  background: var(--gradient-cri);
  color: var(--white);
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

/* CORREÇÃO DA LOGO: Caixa branca para destacar a logo colorida */
.logo-wrapper {
  background: var(--white);
  padding: 15px 25px;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  width: fit-content;
}

.hero-logo-img {
  height: 45px; /* Tamanho controlado */
  width: auto;
  display: block;
  /* Removemos filtros estranhos para manter a cor original */
}

.hero-features li { margin-bottom: 15px; display: flex; align-items: center; gap: 12px; font-size: 1.1rem; }
.hero-features i { color: var(--cri-gold); font-size: 1.2rem; }

.login-form-side { flex: 1; padding: 4rem; display: flex; flex-direction: column; justify-content: center; }
.login-card h2 { color: var(--cri-blue); margin-bottom: 0.5rem; font-size: 2rem; }
.login-card p { color: var(--text-light); margin-bottom: 2rem; }

.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; color: var(--cri-blue); font-weight: 600; }
.input-container input {
  width: 100%; padding: 14px 16px; border: 2px solid #E2E8F0; border-radius: 10px;
  transition: 0.3s; font-size: 1rem;
}
.input-container input:focus { border-color: var(--cri-gold); }

button[type="submit"] {
  width: 100%; padding: 14px; background: var(--cri-blue); color: white; border: none;
  border-radius: 10px; font-weight: 700; cursor: pointer; transition: 0.3s; font-size: 1rem;
}
button[type="submit"]:hover { background: var(--cri-blue-light); transform: translateY(-2px); }

/* ========== SELEÇÃO DE EMPRESA (Correção dos Cards) ========== */
.empresa-container {
  min-height: 100vh;
  background: var(--gradient-cri);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 1rem;
}

.empresa-title { color: var(--white); margin-bottom: 3rem; font-size: 2.2rem; text-align: center; }

/* CORREÇÃO DA GRADE: Usando Flex para centralizar e não esticar */
.empresa-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  width: 100%;
  max-width: 1200px;
  margin-bottom: 3rem;
}

.empresa-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  width: 300px; /* Largura fixa ideal */
  flex-grow: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-md);
  border-bottom: 5px solid var(--cri-blue);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.empresa-card:hover {
  transform: translateY(-10px);
  border-bottom-color: var(--cri-gold);
  box-shadow: var(--shadow-lg);
}

.empresa-card i { font-size: 3rem; color: var(--cri-blue); margin-bottom: 1rem; transition: 0.3s; }
.empresa-card:hover i { color: var(--cri-gold); transform: scale(1.1); }
.empresa-card span { font-weight: 700; font-size: 1.3rem; color: var(--cri-blue); margin-bottom: 5px; }
.empresa-card small { color: var(--text-light); font-weight: 500; }

/* Ações Rápidas (Botões menores abaixo) */
.empresa-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.action-card {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  transition: 0.3s;
}
.action-card:hover { background: var(--cri-gold); color: var(--cri-blue); border-color: var(--cri-gold); transform: translateY(-3px); }

/* ========== LAYOUT DO DASHBOARD (Sidebar) ========== */
.dashboard-container { display: flex; height: 100vh; overflow: hidden; }
.sidebar { width: 260px; background: var(--cri-blue); color: white; display: flex; flex-direction: column; flex-shrink: 0; }
.logo-container { padding: 1.5rem; display: flex; align-items: center; gap: 10px; background: rgba(0,0,0,0.1); }
.logo-icon { font-size: 1.8rem; color: var(--cri-gold); }
.logo-text { font-weight: 700; font-size: 1.1rem; }
.sidebar-nav { padding: 1rem; }
.nav-link { display: flex; align-items: center; padding: 12px; color: rgba(255,255,255,0.7); border-radius: 8px; margin-bottom: 5px; }
.nav-link:hover, .nav-link.active { background: rgba(255,255,255,0.15); color: white; border-left: 4px solid var(--cri-gold); }
.nav-link i { margin-right: 10px; font-size: 1.2rem; }

.main-content { flex: 1; display: flex; flex-direction: column; background: #f4f7fc; }
.main-header { background: white; padding: 1rem 2rem; display: flex; justify-content: space-between; align-items: center; box-shadow: var(--shadow-sm); }
.content-area { flex: 1; padding: 2rem; overflow-y: auto; }
.content-panel { display: none; height: 100%; }
.content-panel.active { display: block; }
iframe { width: 100%; height: 100%; border: none; border-radius: 12px; background: white; }

/* ========== KANBAN ========== */
.kanban-container { display: flex; gap: 1.5rem; height: 100%; overflow-x: auto; align-items: flex-start; padding-bottom: 1rem; }
.kanban-column { background: #EBECF0; border-radius: 12px; padding: 1rem; min-width: 300px; max-width: 350px; flex-shrink: 0; display: flex; flex-direction: column; max-height: 100%; }
.kanban-column[data-status="em_andamento"] { border-top: 4px solid var(--cri-gold); }
.kanban-cards { flex: 1; overflow-y: auto; padding-right: 4px; min-height: 50px; }
.kanban-card { background: white; padding: 1rem; border-radius: 8px; margin-bottom: 10px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); cursor: grab; }
.kanban-card:hover { box-shadow: 0 4px 8px rgba(0,0,0,0.15); }

/* Responsividade */
@media (max-width: 768px) {
  .login-content { flex-direction: column; min-height: auto; }
  .login-hero, .login-form-side { padding: 2rem; }
  .dashboard-container { flex-direction: column; }
  .sidebar { width: 100%; height: auto; }
  .sidebar-nav ul { display: flex; overflow-x: auto; }
  .empresa-card { width: 100%; }
}
/* style.css - Atualização de Formulários */

/* ... (Mantenha as variáveis :root e reset do topo igual ao anterior) ... */

/* Adicione ou Substitua esta seção de Formulários */

/* CONTAINER DO FORMULÁRIO (Caixa Branca) */
.form-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 700px; /* Limita a largura para não ficar esticado */
  margin: 0 auto; /* Centraliza */
  border-top: 5px solid var(--cri-blue); /* Detalhe da marca no topo */
  position: relative;
}

.form-card h2 {
  color: var(--cri-blue);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 1rem;
}

/* GRUPOS DE INPUTS */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--cri-blue);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ESTILO DOS CAMPOS (INPUTS, SELECTS, TEXTAREAS) */
.input-container {
  position: relative;
}

.input-container input,
.input-container select,
.input-container textarea,
/* Garante estilo mesmo se esquecer a div input-container */
form input[type="text"],
form input[type="date"],
form input[type="email"],
form input[type="number"],
form select,
form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #E2E8F0;
  border-radius: 8px;
  font-size: 1rem;
  color: var(--text-main);
  background: #F8FAFC;
  transition: all 0.3s ease;
  font-family: inherit;
}

/* Foco (Quando clica) */
.input-container input:focus,
.input-container select:focus,
.input-container textarea:focus,
form input:focus,
form select:focus,
form textarea:focus {
  background: #fff;
  border-color: var(--cri-gold);
  box-shadow: 0 0 0 4px rgba(198, 168, 124, 0.15); /* Brilho Dourado Suave */
  outline: none;
}

/* Botões de Formulário */
.form-card button[type="submit"] {
  width: 100%;
  padding: 14px;
  background: var(--gradient-cri);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 1rem;
}

.form-card button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 43, 92, 0.3);
}

/* Layout em Linha (para colocar inputs lado a lado) */
.form-row {
  display: flex;
  gap: 1.5rem;
}

.form-row .form-group {
  flex: 1;
}

/* Responsivo para formulários */
@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  .form-card {
    padding: 1.5rem;
  }
}
