@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');
@import url("main-section.css");
:root {
    --verde: #5D9C59;
    --vermelho: #DF2E38;
    --branco: #DDF7E3;
    --font-principal: 'Poppins', sans-serif;
}

html {
    font-family: var(--font-principal);
}

/* Efecto hover para filas de tabla */
#miTabla tbody tr:hover {
    background-color: #f0f0f0;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

.navbar {
    transition: all 0.3s ease-in-out;
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--branco);
}

.navbar-nav .nav-link {
    font-size: 1.1rem;
    transition: color 0.3s ease-in-out;
}

.navbar-nav .nav-link:hover {
    color: var(--verde);
}

.btn-danger {
    transition: background 0.3s ease-in-out;
}

.btn-danger:hover {
    background-color: var(--vermelho);
    border-color: var(--vermelho);
}

body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    color: #333;
    margin: 0;
    padding: 20px;
}

#horarios-container {
    margin-top: 20px;
}

button {
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #e63939;
}

#agregar-horario {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    margin-bottom: 20px;
}

#agregar-horario:hover {
    background-color: #45a049;
}

.horario-item select,
.horario-item input {
    font-size: 14px;
}

.horario-item button {
    font-size: 18px;
    line-height: 1;
}

.is-invalid {
    border-color: red !important;
    box-shadow: 0 0 3px red;
}
input.observaciones {
    min-width: 200px;
}

#tablaPlanta tr:hover {
    background-color: #FFD700 !important; /* Dorado */
}

#tablaHistorial tr:hover {
    background-color: #FFD700 !important; /* Dorado */
}
.ui-autocomplete {
    width: auto !important;
    min-width: 30% !important; /* mínimo el ancho del input */
    max-width: 30% !important; /* que no se pase */
    box-sizing: border-box; /* incluye padding y borde en el cálculo */
}
.ui-menu-item-wrapper {
  padding: 8px 12px;
  cursor: pointer;
}
.ui-state-active {
  background: #007bff !important;
  color: white !important;
}
/* =====================
   Animación fade-in
===================== */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

/* =====================
   Badge Hombreadores
===================== */
.badge {
    display: inline-flex;
    align-items: center;
    background-color: #0d6efd;
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.4rem 0.6rem;
    border-radius: 0.5rem;
    margin-bottom: 0.4rem;
}

.badge .btn-close {
    font-size: 0.6rem;
    padding: 0;
    margin-left: 0.3rem;
    opacity: 0.7;
}

.badge .btn-close:hover {
    opacity: 1;
}

/* =====================
   Autocomplete Scroll
===================== */
.ui-autocomplete {
    max-height: 200px !important;
    overflow-y: auto !important;
    overflow-x: hidden;
    border-radius: 0.4rem;
    border: 1px solid #ccc;
    background-color: white;
    font-size: 0.9rem;
    z-index: 9999 !important;
}

.ui-menu-item {
    padding: 0.4rem 0.6rem;
    cursor: pointer;
}

.ui-menu-item:hover {
    background-color: #f0f0f0;
}
