* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(145deg, #0b2b5c, #1e4b8a);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: white;
    padding: 30px 25px;
    border-radius: 30px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.logo-container img {
    max-width: 180px;
    max-height: 70px;
}

h1 {
    color: #1f3c88;
    font-size: 24px;
    text-align: center;
    margin-bottom: 25px;
    border-bottom: 2px solid #f28c28;
    padding-bottom: 15px;
}

.status-bar {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.led {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.led.green {
    background: #28a745;
    box-shadow: 0 0 10px #28a745;
}

.led.red {
    background: #dc3545;
    box-shadow: 0 0 10px #dc3545;
}

.led.yellow {
    background: #ffc107;
    box-shadow: 0 0 10px #ffc107;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-weight: 600;
    color: #1f3c88;
    margin-bottom: 5px;
}

label i {
    color: #f28c28;
    margin-right: 5px;
}

/* ===== ESTILOS UNIFICADOS PARA INPUTS ===== */
input, select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: border 0.3s;
}

input:focus, select:focus {
    border-color: #f28c28;
    outline: none;
}

/* ===== ESTILOS ESPECÍFICOS PARA BUSCADORES ===== */
#buscador, #buscadorPersonal {
    width: 100%;
    padding: 12px 12px 12px 40px;  /* ← Aumenta este valor si quieres más espacio (ej: 50px) */
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border 0.3s;
}


#buscador:focus, #buscadorPersonal:focus {
    border-color: #f28c28;
    outline: none;
}

/* ===== ESTILOS PARA CONTENEDORES DE BÚSQUEDA ===== */
.search-container {
    position: relative;
    margin-bottom: 15px;
}

.search-container i {
    position: absolute;
    left: 12px;
    top: 12px;
    color: #999;
}

/* ===== ESTILOS PARA RESULTADOS DE BÚSQUEDA ===== */
#resultadosBusqueda, #resultadosPersonal {
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-bottom: 20px;
    background: white;
    display: none;
}



/* Items de resultados (unificado) */
.producto-item, .resultado-item {
    padding: 12px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.3s;
}

.producto-item:hover, .resultado-item:hover {
    background: #f0f7ff;
    border-left: 3px solid #f28c28;
}

.producto-item:last-child, .resultado-item:last-child {
    border-bottom: none;
}

.producto-nombre, .resultado-nombre {
    font-weight: 600;
    color: #1f3c88;
}

.producto-gtin {
    font-size: 12px;
    color: #666;
}

.producto-presentacion {
    font-size: 11px;
    color: #999;
}

/* ===== ESTILOS PARA ELEMENTOS SELECCIONADOS ===== */
.producto-seleccionado, #personalSeleccionado {
    background: #d4edda;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.producto-seleccionado i, #personalSeleccionado i {
    margin-right: 5px;
}

/* Scroll personalizado */
#resultadosBusqueda::-webkit-scrollbar, #resultadosPersonal::-webkit-scrollbar {
    width: 8px;
}

#resultadosBusqueda::-webkit-scrollbar-track, #resultadosPersonal::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

#resultadosBusqueda::-webkit-scrollbar-thumb, #resultadosPersonal::-webkit-scrollbar-thumb {
    background: #f28c28;
    border-radius: 4px;
}

.cantidad-control {
    display: flex;
    gap: 10px;
}

.cantidad-control button {
    width: 50px;
    height: 50px;
    border: none;
    background: #f28c28;
    color: white;
    font-size: 24px;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
}

.cantidad-control button:hover {
    background: #e67e22;
}

.cantidad-control input {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}

button[type="submit"] {
    width: 100%;
    padding: 15px;
    background: #1f3c88;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

button[type="submit"]:hover {
    background: #2952a3;
    transform: translateY(-2px);
}

button[type="submit"]:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.mensaje {
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
    display: none;
}

.mensaje.exito {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.mensaje.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.info-box {
    background: #e3f2fd;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    text-align: center;
}

.info-box h3 {
    color: #1f3c88;
    margin-bottom: 10px;
}

#solicitudNumero {
    font-size: 32px;
    color: #f28c28;
    display: block;
    margin: 10px 0;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.notificacion {
    transition: all 0.3s ease;
}

.notificacion:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}