/* Calculadora de Rescisão Trabalhista - Estilos Específicos */

/* Estilos para Select customizado */
select {
  width: 100%;
  padding: 12px 16px;
  background: #111;
  border: 2px solid #333;
  border-radius: 8px;
  color: #e1e1e1;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  cursor: pointer;
  appearance: none; /* Remove estilo nativo */
  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='%23667eea' 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;
  padding-right: 40px;
}

select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

select:hover {
  border-color: #4a5bc4;
}

select option {
  background: #1a1a1a;
  color: #e1e1e1;
  padding: 8px;
}

/* Checkbox customizado */
.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checkbox-container label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1.4;
  color: #e1e1e1;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.checkbox-container label:hover {
  color: #f0f0f0;
}

.checkbox-container input[type='checkbox']:checked + span {
  color: #667eea;
}

.checkbox-container input[type='checkbox'] {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #333;
  border-radius: 4px;
  background: #111;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  flex-shrink: 0;
  margin: 0;
}

.checkbox-container input[type='checkbox']:hover {
  border-color: #4a5bc4;
  background: #1a1a1a;
}

.checkbox-container input[type='checkbox']:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.checkbox-container input[type='checkbox']:checked {
  background: #667eea;
  border-color: #667eea;
}

.checkbox-container input[type='checkbox']:checked:hover {
  background: #5a6fd8;
  border-color: #5a6fd8;
}

.checkbox-container input[type='checkbox']:checked::before {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
  line-height: 1;
}

.checkmark {
  display: none; /* Não usado mais - usando checkbox customizado */
}

/* Grid de breakdown de verbas */
.breakdown-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  border-left: 4px solid #667eea;
}

.item-label {
  font-weight: 500;
  color: #e1e1e1;
}

.item-value {
  font-weight: 600;
  color: #00d4aa;
  font-size: 1.1rem;
}

/* Período trabalhado */
.work-period {
  background: rgba(0, 212, 170, 0.1);
  border: 1px solid rgba(0, 212, 170, 0.3);
  border-radius: 8px;
  padding: 16px;
  margin: 20px 0;
}

.work-period h4 {
  color: #00d4aa;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.work-period p {
  color: #e1e1e1;
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0;
}

/* Detalhes do cálculo */
.calculation-details {
  background: rgba(102, 126, 234, 0.1);
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: 8px;
  padding: 16px;
  margin-top: 20px;
}

.calculation-details h4 {
  color: #667eea;
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.calculation-details ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.calculation-details li {
  color: #b0b0b0;
  margin-bottom: 6px;
  line-height: 1.4;
  position: relative;
  padding-left: 18px;
}

.calculation-details li::before {
  content: '•';
  color: #00d4aa;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

/* Informações legais */
.legal-info {
  margin-top: 30px;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.legal-item {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-item h4 {
  color: #667eea;
  margin-bottom: 12px;
  font-size: 1.1rem;
  font-weight: 600;
}

.legal-item ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.legal-item li {
  color: #c0c0c0;
  margin-bottom: 8px;
  line-height: 1.4;
  font-size: 0.95rem;
  position: relative;
  padding-left: 20px;
}

.legal-item li::before {
  content: '▸';
  color: #667eea;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

/* Responsividade específica */
@media (max-width: 768px) {
  .legal-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .breakdown-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    text-align: left;
  }

  .item-value {
    align-self: flex-end;
    font-size: 1.2rem;
  }

  .checkbox-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .checkbox-container label {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  /* Ajustes para select em mobile */
  select {
    font-size: 16px; /* Evita zoom no iOS */
    background-size: 14px;
    background-position: right 10px center;
    padding-right: 35px;
  }

  .legal-item {
    padding: 16px;
  }

  .work-period {
    padding: 12px;
  }

  .calculation-details {
    padding: 12px;
  }
}

@media (max-width: 480px) {
  .breakdown-grid {
    gap: 8px;
  }

  .breakdown-item {
    padding: 10px 12px;
  }

  .item-value {
    font-size: 1rem;
  }

  .checkbox-container input[type='checkbox'] {
    width: 18px;
    height: 18px;
  }

  .checkbox-container label {
    font-size: 0.9rem;
    gap: 8px;
  }

  .legal-grid {
    gap: 12px;
  }

  .legal-item {
    padding: 12px;
  }

  .legal-item h4 {
    font-size: 1rem;
  }

  .legal-item li {
    font-size: 0.85rem;
    padding-left: 16px;
  }
}
