/* ============================================================================
   CUSTOM SELECT - MODERN STYLE
   Estilo universal moderno para todos os selects NATIVOS em MODAIS
   Paleta Venlyx: Ciano (#00BCD4), Verde (#1FD084), Laranja (#FF9800)
   
   IMPORTANTE: Este CSS NÃO deve afetar os custom selects das páginas de
   Clientes e Fornecedores. Apenas selects dentro de modais.
   ============================================================================ */

/* Select Base - APENAS EM MODAIS */
.modal-overlay select,
.client-modal select,
.supplier-modal select,
.project-modal select,
.service-modal select,
.form-modal select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  
  width: 100%;
  padding: 10px 12px;
  padding-right: 36px;
  
  border: 2px solid #1FD084;
  border-radius: 12px;
  background-color: white;
  
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  
  cursor: pointer;
  transition: all 0.2s ease;
  
  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='%231FD084' 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 8px center;
  background-size: 20px;
  
  padding-right: 36px;
}

/* Select Hover - APENAS EM MODAIS */
.modal-overlay select:hover,
.client-modal select:hover,
.supplier-modal select:hover,
.project-modal select:hover,
.service-modal select:hover,
.form-modal select:hover {
  border-color: #1FD084;
  background-color: #f0fff4;
}

/* Select Focus - APENAS EM MODAIS */
.modal-overlay select:focus,
.client-modal select:focus,
.supplier-modal select:focus,
.project-modal select:focus,
.service-modal select:focus,
.form-modal select:focus {
  outline: none;
  border-color: #1FD084;
  background-color: #f0fff4;
}

/* Select Disabled */
select:disabled {
  background-color: #f5f5f5;
  color: #999;
  cursor: not-allowed;
  opacity: 0.6;
}

/* Option Styling */
option {
  padding: 8px 12px;
  background-color: white;
  color: #333;
  font-size: 14px;
}

option:hover {
  background: linear-gradient(#e6ffed, #e6ffed);
  background-color: #e6ffed;
  color: #1FD084;
}

option:checked {
  background: linear-gradient(#1FD084, #1FD084);
  background-color: #1FD084;
  color: white;
}

/* Select com tamanho pequeno */
select.select-sm {
  padding: 6px 10px;
  padding-right: 32px;
  font-size: 12px;
  border-radius: 6px;
}

/* Select com tamanho grande */
select.select-lg {
  padding: 12px 14px;
  padding-right: 40px;
  font-size: 16px;
  border-radius: 10px;
}

/* Select com cor primária (Ciano) */
select.select-primary {
  border-color: #00BCD4;
}

select.select-primary:focus {
  box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.2);
}

/* Select com cor sucesso (Verde) */
select.select-success {
  border-color: #1FD084;
}

select.select-success:focus {
  box-shadow: 0 0 0 3px rgba(31, 208, 132, 0.2);
}

select.select-success {
  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='%231FD084' 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");
}

/* Select com cor warning (Laranja) */
select.select-warning {
  border-color: #FF9800;
}

select.select-warning:focus {
  box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.2);
}

select.select-warning {
  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='%23FF9800' 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");
}

/* Select com cor danger (Vermelho) */
select.select-danger {
  border-color: #F44336;
}

select.select-danger:focus {
  box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.2);
}

select.select-danger {
  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='%23F44336' 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");
}

/* Select em formulários */
.form-group select,
.form-group-detail select {
  width: 100%;
}

/* Select em linhas de formulário */
.form-row select,
.form-row-detail select {
  width: 100%;
}

/* Responsivo */
@media (max-width: 768px) {
  select {
    padding: 10px 12px;
    padding-right: 36px;
    font-size: 14px;
  }
  
  select.select-sm {
    padding: 8px 10px;
    padding-right: 32px;
  }
  
  select.select-lg {
    padding: 10px 12px;
    padding-right: 36px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  select {
    padding: 10px 12px;
    padding-right: 36px;
    font-size: 14px;
    border-radius: 6px;
  }
  
  select.select-lg {
    padding: 10px 12px;
    font-size: 14px;
  }
}
