body {
    margin: 0;
    padding: 0;
    background-image: url('../img/BackgroundImg.png'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 320px;
    text-align: center;
}

.logo {
    width: 150px; /* Tamaño ajustado para el logo */
    height: auto;
    margin-bottom: 20px;
}

h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.5em;
}

.input-group {
    margin-bottom: 15px;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
    font-size: 0.9em;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1em;
}

button {
    width: 100%;
    padding: 12px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    margin-top: 10px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #45a049;
}
/* ========== ESTILOS ESPECÍFICOS PARA REGISTRO ========== */
/* Contenedor principal */
/* Estilos base */


/* Contenedor principal */
.container {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

/* Títulos */
.title-container h5 {
    margin: 0;
    font-weight: normal;
    font-size: 1.2rem;
    color: #66b3b7;
    margin-bottom: 5px;
}

.title-container h2 {
    margin: 0;
    font-weight: normal;
    font-size: 1.8rem;
    color: #000000;
    margin-bottom: 40px;
}

/* Botones */
.button-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-custom {
    padding: 15px;
    border-radius: 10px;
    font-size: 1rem;
    text-align: center;
    width: 250px;
    background-color: #66b3b7;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.btn-custom:hover {
    background-color: #4e8c8f;
}

.btn-icon {
    margin-right: 10px;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Usuario en esquina derecha */
  .top-right {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center; /* Alineación horizontal */
    gap: 15px; /* Esto separa los elementos entre sí */
}

.user-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
    border: 2px solid #66b3b7;
    
}
.logout-icon:hover {
    transform: scale(1.1);
    opacity: 0.8;
}
.logout-icon {
    width: 35px;
    height: 35px;
    cursor: pointer;
    margin-top: 10px; /* Aumenta el espacio vertical */
    transition: transform 0.2s;
    gap: 8px; /* Esto separa todos los elementos */

}

.username {
    font-size: 1rem;
    font-weight: bold;
    color: #ffffff;
}
/*seleccion_lote*/
/* ========== TABLA DE LOTES ========== */
.lotes-container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
}

.search-bar {
    display: flex;
    margin-bottom: 1.5rem;
}

.search-input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px 0 0 6px;
    font-size: 1rem;
    border-right: none;
}

.search-btn {
    padding: 0 1.2rem;
    background-color: #66b3b7;
    color: white;
    border: none;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-btn:hover {
    background-color: #4e8c8f;
}

.table-container {
    overflow-x: auto;
}

.lotes-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.lotes-table th {
    background-color: #66b3b7;
    color: white;
    padding: 1rem;
    text-align: left;
}

.lotes-table td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #eee;
}

.lotes-table tr:hover {
    background-color: #f5f9fa;
}

.lotes-table .estado {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.estado-activo {
    background-color: #e0f7f8;
    color: #2a7d7f;
}

.estado-inactivo {
    background-color: #fde8e8;
    color: #c53030;
}

.acciones-btn {
    background: none;
    border: none;
    color: #66b3b7;
    cursor: pointer;
    margin-right: 0.5rem;
    font-size: 1rem;
}

.acciones-btn:hover {
    color: #4e8c8f;
}

/* Paginación */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.pagination-btn {
    background-color: #66b3b7;
    color: white;
    border: none;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.pagination-btn:hover {
    background-color: #4e8c8f;
    transform: scale(1.1);
}

.pagination-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

#page-info {
    font-weight: 500;
    color: #555;
}

/* Barra de acciones */
.actions-bar {
    display: flex;
    justify-content: space-between;
    padding: 1rem 2rem;
    background-color: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    bottom: 0;
}

.btn-primary {
    background-color: #66b3b7;
    color: white;
}

.btn-primary:hover {
    background-color: #4e8c8f;
}

.btn-secondary {
    background-color: white;
    color: #2c3e50;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background-color: #f8f9fa;
}
/*AQUI VA SWEETALERT*/
        .swal2-popup {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }
        
        .swal2-title {
            color: #2c3e50;
            font-size: 1.5rem;
            font-weight: 600;
        }
        
        .swal2-confirm {
            background-color: #2ecc71 !important;
            border: none !important;
            border-radius: 6px !important;
            padding: 10px 25px !important;
            font-weight: 600 !important;
            transition: all 0.3s ease !important;
        }
        
        .swal2-confirm:hover {
            background-color: #27ae60 !important;
            transform: translateY(-2px) !important;
        }
        
        .swal2-cancel {
            background-color: #95a5a6 !important;
            border: none !important;
            border-radius: 6px !important;
            padding: 10px 25px !important;
            font-weight: 600 !important;
            transition: all 0.3s ease !important;
        }
        
        .swal2-cancel:hover {
            background-color: #7f8c8d !important;
            transform: translateY(-2px) !important;
        }
        
        /* Estilos para los tags de motivo en la tabla */
        .motivo-tag {
            display: inline-block;
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
            margin-left: 8px;
        }
        
        .motivo-cosmetica {
            background-color: #ffeaa7;
            color: #d35400;
        }
        
        .motivo-electronica {
            background-color: #a29bfe;
            color: #2d3436;
        }
        
        .motivo-infestado {
            background-color: #fab1a0;
            color: #c23616;
        }
